#topo.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 24px 0 24px;
  background:
    linear-gradient(
      to bottom right,
      rgba(255,255,255,0.88) 0%,
      rgba(240,246,242,0.82) 55%,
      rgba(255,255,255,0.76) 100%
    ),
    url('hero-background-sem-carro.png') center 40% / cover no-repeat;
  position: relative;
  overflow: hidden;
}
#topo .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 76px;
  align-items: start;
  position: relative;
  z-index: 1;
}
#topo .logo-link { display: inline-block; margin-bottom: 150px }
#topo .hero-logo { width: 170px; height: auto; border-radius: 7px }
#topo h1 {
  font-family: 'Lato', Arial, sans-serif;
  font-size: clamp(40px, 2.75vw, 38px);
  line-height: 1.05;
  letter-spacing: -.8px;
  max-width: 860px;
  white-space: nowrap;
  font-weight: 700;
  color: #101513;
}
#topo .hero-subtitle {
  font-size: 18px;
  line-height: 1.4;
  color: #26312b;
  max-width: 660px;
  margin: 12px 0 0;
  font-weight: 600;
}
#topo .insurer-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 610px;
  margin-top: 30px;
  padding: 11px 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(1,74,35,.12);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(1,74,35,.08);
}
#topo .insurer-strip img { height: 34px; width: 16.66%; object-fit: contain; flex: 1 1 0 }

/* ===== FORM CARD ===== */
#topo .form-card {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(1,74,35,.15);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(1,74,35,.12), 0 2px 8px rgba(17,24,39,.06);
  padding: 27px 20px 20px;
}
#topo .form-card h2 {
  font-family: 'Lato', Arial, sans-serif;
  text-align: center; font-size: 22px; line-height: 1.25;
  margin-bottom: 40px; font-weight: 700; color: #101513;
}
#topo form { display: grid; gap: 4px }
#topo .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px }
#topo .form-group { display: grid; gap: 8px }
#topo label { font-weight: 600; font-size: 13px; color: #000; letter-spacing: 0; text-transform: none }
#topo input, #topo select {
  width: 100%; height: 37px;
  border: 1px solid #cfd7d2; border-radius: 8px;
  background: #f8faf9; padding: 0 12px;
  font: 500 13px 'Open Sans', Arial, sans-serif;
  color: #111; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
#topo input:focus, #topo select:focus {
  border-color: #014a23;
  box-shadow: 0 0 0 3px rgba(1,74,35,.12);
  background: #fff;
}
#topo select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23014a23' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-color: #f8faf9;
  padding-right: 34px; cursor: pointer;
}

#topo .checkbox-group { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; margin-top: -12px }
#topo .checkbox-group input { width: 16px; height: 16px; margin: 2px 0 0; padding: 0; accent-color: #014a23 }
#topo .checkbox-group label { font-weight: 400; font-size: 12px; line-height: 1.35; color: var(--muted) }
#topo .error-message { min-height: 14px; font-size: 12px; color: #b42318; margin-top: -4px }
#topo .form-group.error input, #topo .form-group.error select { border-color: #b42318 }

#topo .submit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px;
  background: #014a23; color: #fff;
  text-decoration: none; font-weight: 400; cursor: pointer;
  transition: .2s ease; font-family: 'Lato', Arial, sans-serif;
  height: 49px; width: 100%; font-size: 16px; margin-top: 6px;
}
#topo .submit-btn:hover { background: #003619; transform: translateY(-1px) }
#topo .submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none }

@media (max-width: 1050px) { #topo.hero { min-height: auto; padding: 34px 0 54px } #topo .hero-grid { grid-template-columns: 1fr; gap: 34px } }
@media (max-width: 720px) {
  #topo .form-group label { display: none }
  #topo .checkbox-group label { display: inline }
  #topo .container { width: min(100% - 28px, 1120px) }
  #topo .form-row { grid-template-columns: 1fr; gap: 8px }
  #topo.hero {
    padding-top: 26px;
    background:
      linear-gradient(
        to bottom,
        rgba(255,255,255,0.80) 0%,
        rgba(236,244,239,0.63) 100%
      ),
      url('hero-background-sem-carro.png') 58% 60% / cover no-repeat;
  }
  #topo h1 { font-size: clamp(10px, 5.2vw, 26px); line-height: 1.25; letter-spacing: -.6px; white-space: nowrap }
  #topo .hero-subtitle { font-size: 16px }
  #topo .hero-logo { width: 145px }
  #topo .insurer-strip { gap: 6px; padding: 9px; margin-top: 10px }
  #topo .insurer-strip img { height: 27px; width: 16.66% }
  #topo .form-card { padding: 24px 16px; border-radius: 16px }
  #topo .form-card h2 { font-size: 20px; margin-bottom: 32px }
  #topo input, #topo select { text-align: center; font-size: 16px; font-weight: 300; border-color: #9c9c9c }
  #topo input::placeholder { color: #000000 }
  #topo select { text-align-last: center }

}
/* Formulário mais compacto apenas no desktop. */
@media (min-width: 1051px) {
  #topo .form-card { padding: 22px 20px 18px; }
  #topo .form-card h2 { margin-bottom: 24px; font-size: 21px; }
  #topo form { gap: 2px; }
  #topo .form-row { gap: 14px; }
  #topo .form-group { gap: 5px; }
  #topo input, #topo select { height: 35px; }
  #topo .submit-btn { height: 44px; margin-top: 4px; }
}
/* Enquadramento mobile independente da altura do formulário. */
@media (max-width: 720px) {
  #topo.hero {
    background-color: #edf3f6;
    background-image:
      linear-gradient(to bottom, rgba(255,255,255,.92) 0px, rgba(255,255,255,.95) 180px, rgba(237,243,246,.99) 320px, #edf3f6 480px),
      url('hero-background-sem-carro.png');
    background-position: center top, right top;
    background-size: 100% 100%, auto 480px;
    background-repeat: no-repeat;
  }
}
/* Tipografia uniforme nos campos e placeholders dos dois formulários. */
#topo .form-group input,
#topo .form-group select {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  color: #333333;
}
#topo .form-group input::placeholder {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  color: #333333;
  opacity: 1;
}
#topo .form-group input::-webkit-datetime-edit {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
}
@media (max-width: 720px) {
  #topo .form-group input,
  #topo .form-group select { font-size: 16px; }
}
/* Mesma tipografia mobile da página saude-v2. */
@media (max-width: 720px) {
  #topo .form-group input,
  #topo .form-group select {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #111;
  }
  #topo .form-group input::placeholder {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: #000;
    opacity: 1;
  }
  #topo .form-group input::-webkit-datetime-edit {
    font-family: inherit;
    font-weight: inherit;
  }
}
/* Scoped resets for the existing Vizela styles. */
#topo { font-family: "Montserrat", Arial, sans-serif; line-height: 1.5; --radius: 20px; --muted: #676767; }
#topo .container { width: min(1120px, calc(100% - 40px)); }
#topo .hero-subtitle { font-family: inherit; }
#topo .form-card h2 { padding: 0; margin-top: 0; }
#topo .form-group label { font-family: inherit; }

@media (max-width: 720px) { #topo .container { width: min(100% - 28px, 1120px); } }

/* Match the light auto-v2 background without the old dark overlay. */
#topo.hero::after { content: none; }

/* Only brand-specific visual difference from auto-v2. */
#topo .hero-logo { width: 90px; height: auto; }
@media (max-width: 720px) { #topo .hero-logo { width: 75px; } }

/* Conditional fields must stay hidden despite grid styles. */
#topo [hidden] { display: none !important; }

/* Mobile field text matches auto-v2, including browser text fill. */
@media (max-width: 720px) {
  #topo .form-group input,
  #topo .form-group select { color: #111; -webkit-text-fill-color: #111; opacity: 1; }
  #topo .form-group input::placeholder { color: #000; -webkit-text-fill-color: #000; opacity: 1; }
  #topo .form-group select:invalid { color: #111; -webkit-text-fill-color: #111; opacity: 1; }
}

/* Regular weight for mobile fields and placeholders. */
@media (max-width: 720px) {
  #topo .form-group input,
  #topo .form-group select,
  #topo .form-group input::placeholder,
  #topo .form-group input::-webkit-datetime-edit { font-weight: 400; }
}
