/* ==========================================================
   SAHL — Cadastro Contagem
   Landing page lead gen — layout de duas colunas.

   Paleta:
     Areia        #F2DDC2  — base calor
     Areia claro  #FAF1E3  — background suave
     Preto        #1A1A1A  — texto
     Manhã        #E7B760  — dourado / acento
     Tarde        #CF6145  — coral / CTA
     Noite        #1E4F78  — azul Sahl (painel do form)
   ========================================================== */

:root {
  --areia: #F2DDC2;
  --areia-claro: #FAF1E3;
  --areia-suave: #F6EFE2;
  --preto: #1A1A1A;
  --manha: #E7B760;
  --tarde: #CF6145;
  --tarde-escuro: #B64E34;
  --noite: #1E4F78;
  --noite-claro: #2A6FA8;
  --noite-escuro: #163E5E;

  --texto: #1A1A1A;
  --texto-claro: #6B6B6B;
  --borda: rgba(26, 26, 26, 0.12);
  --borda-form: rgba(255, 255, 255, 0.22);

  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 4px 24px rgba(30, 79, 120, 0.08);
  --shadow-panel: 0 20px 60px rgba(30, 79, 120, 0.28);
  --shadow-photo: 0 12px 36px rgba(26, 26, 26, 0.18);

  --wrapper: 1080px;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--texto);
  background: var(--areia-claro);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; transition: opacity var(--transition); text-decoration: none; }
a:hover { opacity: 0.75; }

/* ---------- TOPBAR (logo centralizada) ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--borda);
  padding: 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.topbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tarde) 0%, var(--manha) 50%, var(--noite-claro) 100%);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.brand-img {
  height: 54px;
  width: auto;
  display: block;
}

/* ---------- LANDING PAGE ---------- */
.lp {
  padding: 40px 20px 60px;
  min-height: calc(100vh - 82px);
  background:
    radial-gradient(ellipse at top left, rgba(231, 183, 96, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(30, 79, 120, 0.10), transparent 60%),
    var(--areia-claro);
}

.lp-wrapper {
  width: 100%;
  max-width: var(--wrapper);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

/* Coluna esquerda */
.lp-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lp-heading {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--noite);
  margin: 0;
}
.lp-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--tarde);
  margin-top: 14px;
}

.lp-intro {
  font-size: 1.05rem;
  color: var(--texto);
  margin: 0;
  max-width: 440px;
  line-height: 1.55;
}

.lp-image {
  margin: 0;
  position: relative;
}
.lp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-photo);
  display: block;
}
.lp-image-caption {
  font-size: 0.82rem;
  color: var(--texto-claro);
  font-style: italic;
  margin-top: 10px;
  text-align: center;
  padding: 0 6px;
}

.lp-address {
  font-size: 0.95rem;
  color: var(--texto);
  margin: 0;
  padding: 18px 20px;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--manha);
  line-height: 1.55;
  box-shadow: var(--shadow-soft);
}
.lp-address strong {
  color: var(--noite);
  font-weight: 700;
}
.lp-address a {
  color: var(--tarde);
  font-weight: 600;
}

/* Coluna direita: painel do formulário */
.lp-right {
  position: relative;
}

.panel {
  background: var(--noite);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-panel);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--tarde) 0%, var(--manha) 100%);
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 8px 0 6px;
  line-height: 1.15;
}
.panel-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px;
  font-weight: 500;
}

/* ---------- FORM ---------- */
.form { display: block; }

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: #fff;
}
.field .req { color: var(--manha); margin-left: 2px; }

.field-hint {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  display: block;
  margin-top: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--borda-form);
  background: rgba(255, 255, 255, 0.96);
  font-family: inherit;
  font-size: 1rem;
  color: var(--preto);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231E4F78' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--manha);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(231, 183, 96, 0.28);
}

.field input[readonly] {
  background: rgba(255, 255, 255, 0.72);
  color: var(--texto-claro);
  cursor: not-allowed;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.45;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Lista de checkbox/radio (estilo simples, não pill) */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  transition: all var(--transition);
  user-select: none;
}
.check-row:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}
.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  margin: 0;
}
.check-row input[type="checkbox"] { border-radius: 5px; }
.check-row input[type="radio"] { border-radius: 50%; }

.check-row input[type="checkbox"]:checked,
.check-row input[type="radio"]:checked {
  background: var(--manha);
  border-color: var(--manha);
}
.check-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--noite);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.check-row input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--noite);
  transform: translate(-50%, -50%);
}
.check-row:has(input:checked) {
  background: rgba(231, 183, 96, 0.2);
  border-color: var(--manha);
}

/* Submit button — coral */
.btn-submit {
  width: 100%;
  min-height: 54px;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--tarde);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(207, 97, 69, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.btn-submit:hover {
  background: var(--tarde-escuro);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(207, 97, 69, 0.55);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { cursor: not-allowed; opacity: 0.8; }

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.loading .btn-label { opacity: 0.7; }
.btn-submit.loading .btn-spinner { display: inline-block; }

.form-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 14px 0 0;
  text-align: center;
}

.form-feedback {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 500;
  display: none;
  text-align: center;
  font-size: 0.94rem;
}
.form-feedback.success {
  display: block;
  background: rgba(139, 207, 165, 0.18);
  color: #B4EBC9;
  border: 1px solid rgba(139, 207, 165, 0.4);
}
.form-feedback.error {
  display: block;
  background: rgba(233, 178, 162, 0.18);
  color: #FFD4C8;
  border: 1px solid rgba(233, 178, 162, 0.4);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--preto);
  color: var(--areia);
  padding: 22px 0;
  text-align: center;
  font-size: 0.82rem;
}
.site-footer .container {
  width: 100%;
  max-width: var(--wrapper);
  margin: 0 auto;
  padding: 0 20px;
}
.site-footer p { margin: 0; }

/* ---------- Desktop (>= 860px): duas colunas ---------- */
@media (min-width: 860px) {
  .topbar { padding: 22px 28px; }
  .brand-img { height: 64px; }

  .lp {
    padding: 60px 32px 80px;
  }
  .lp-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: start;
  }
  .lp-left {
    gap: 24px;
    position: sticky;
    top: 32px;
  }
  .lp-heading {
    font-size: 2.75rem;
  }
  .lp-intro {
    font-size: 1.1rem;
  }
  .panel {
    padding: 44px 40px;
  }
  .panel-title {
    font-size: 1.75rem;
  }
  .panel-sub {
    font-size: 0.98rem;
    margin-bottom: 28px;
  }
}

/* ---------- Telas muito largas ---------- */
@media (min-width: 1200px) {
  .lp-wrapper { gap: 72px; }
}

/* ---------- iOS: impede zoom em inputs focados ---------- */
@media (max-width: 768px) {
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}

/* ---------- Motion reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
