/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #eff6ff;
  --success:        #16a34a;
  --success-light:  #f0fdf4;
  --error:          #dc2626;
  --error-light:    #fef2f2;
  --text:           #1e293b;
  --text-muted:     #64748b;
  --border:         #e2e8f0;
  --bg:             #f8fafc;
  --white:          #ffffff;
  --radius:         12px;
  --shadow:         0 4px 24px rgba(0,0,0,.08);
  --font:           'Inter', system-ui, sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   HEADER / LOGO
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Placeholder visual — remova quando inserir a logo real */
.logo-placeholder {
  height: 56px;
  min-width: 200px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ============================================================
   MAIN CONTENT — 2 COLUNAS
   ============================================================ */
.main-content {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 40px;
  gap: 40px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.col {
  flex: 1;
}

/* ---- COLUNA ESQUERDA: Formulário ---- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  height: 100%;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Grupos de campo */
.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.required {
  color: var(--error);
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.field-group textarea {
  resize: vertical;
  min-height: 96px;
}

/* Botão */
.btn-submit {
  width: 100%;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .1s;
  margin-top: 8px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-submit:active:not(:disabled) {
  transform: scale(.98);
}

.btn-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Garante que o atributo hidden sempre oculte o elemento,
   independente de qualquer display definido por outras regras */
[hidden] {
  display: none !important;
}

/* Alertas */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert--success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.alert--success strong {
  display: block;
  margin-bottom: 2px;
}

.alert--error {
  background: var(--error-light);
  color: var(--error);
  border: 1px solid #fecaca;
}

/* ---- COLUNA DIREITA: Info institucional ---- */
.col-info {
  display: flex;
  align-items: start;
}

.info-content {
  padding: 20px 0;
}

.info-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.info-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.info-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.info-content > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.info-list li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}

.info-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 18px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVO — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 14px 20px;
  }

  .main-content {
    flex-direction: column;
    padding: 24px 16px;
    gap: 24px;
  }

  .form-card {
    padding: 28px 20px;
  }

  .col-info {
    order: 0; /* Info já é a primeira no HTML, mantém a ordem natural */
  }

  .info-content {
    text-align: center;
  }

  .info-list {
    align-items: flex-start;
    text-align: left;
  }

  .info-badge {
    margin: 0 auto;
  }

  .site-footer {
    padding: 16px 20px;
  }
}
