/*
 * Camada visual da aplicação.
 * Mantém os seletores históricos usados pelos JavaScript, alterando apenas a
 * apresentação. Carregada depois de style.css e dos estilos de produto.
 */

:root {
  --ft-orange: #ff6600;
  --ft-navy: #021f5f;
  --ft-ink: #17213a;
  --ft-muted: #64748b;
  --ft-surface: #ffffff;
  --ft-canvas: #f3f7fd;
  --ft-line: #d9e3f0;
  --ft-danger: #c62828;
  --ft-radius-sm: 10px;
  --ft-radius: 16px;
  --ft-radius-lg: 24px;
  --ft-shadow-sm: 0 8px 24px rgba(2, 31, 95, 0.08);
  --ft-shadow: 0 24px 70px rgba(2, 31, 95, 0.14);
}

html {
  scroll-behavior: smooth;
  background: var(--ft-canvas);
}

body.app-shell {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ft-ink);
  background: var(--ft-canvas);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.app-shell *,
body.app-shell *::before,
body.app-shell *::after {
  box-sizing: border-box;
}

body.app-shell img {
  max-width: 100%;
}

body.app-shell a,
body.app-shell button,
body.app-shell input,
body.app-shell select,
body.app-shell textarea {
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

body.app-shell :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary-color) 35%, white);
  outline-offset: 3px;
}

#conteudo-principal {
  min-height: 48vh;
}

.ft-home-intro {
  min-height: 54vh;
  padding: clamp(52px, 9vw, 108px) 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(43, 114, 238, 0.16), transparent 33%),
    radial-gradient(circle at 88% 16%, rgba(255, 102, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #edf4fd 100%);
}

.ft-home-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid rgba(43, 114, 238, 0.15);
  border-radius: var(--ft-radius-lg);
  background: #fff;
  box-shadow: var(--ft-shadow);
  text-align: center;
}

.ft-home-eyebrow,
.ft-form-kicker {
  margin: 0 0 8px;
  color: var(--ft-orange);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ft-home-card h1 {
  margin: 0 0 18px;
  color: var(--ft-navy);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
}

.ft-home-card > p:not(.ft-home-eyebrow) {
  max-width: 650px;
  margin: 0 auto;
  color: var(--ft-muted);
  font-size: 1rem;
}

.ft-home-cta {
  max-width: 330px;
  margin: 30px auto 0;
  text-decoration: none;
}

.ft-insurance-page .form-simulador {
  max-width: 680px;
}

.ft-insurance-header {
  justify-content: flex-start;
}

.ft-insurance-header .container-header-textos {
  max-width: 100%;
}

.ft-insurance-header .ft-form-kicker {
  text-align: left;
}

.ft-optional {
  color: var(--ft-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.ft-form-response {
  margin: 8px 0 14px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.ft-form-response.is-error {
  border: 1px solid #ef9a9a;
  color: #991b1b;
  background: #fff1f2;
}

.ft-form-response.is-success {
  border: 1px solid #86efac;
  color: #166534;
  background: #f0fdf4;
}

.ft-success-card {
  text-align: center;
}

.ft-success-card .ft-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: #16a34a;
  font-size: 2rem;
  font-weight: 800;
}

.ft-success-card > p:not(.ft-form-kicker) {
  color: var(--ft-muted);
}

.ft-success-card .bg-next {
  max-width: 330px;
  margin-right: auto;
  margin-left: auto;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(2, 31, 95, 0.14);
}

.site-header .topo {
  display: flex;
  min-height: 92px;
  height: auto;
  padding: 12px 0;
  background: linear-gradient(120deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 84%, var(--ft-navy)) 100%);
}

.container-header-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.brand-link img {
  display: block;
  max-width: min(282px, 62vw);
  object-fit: contain;
}

#logo-responsivo {
  display: none;
}

.header-product {
  max-width: 360px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
  backdrop-filter: blur(8px);
}

#preloader {
  background: rgba(255, 255, 255, 0.96);
}

.preloader-img {
  width: min(260px, 70vw);
}

.bg-simulador {
  position: relative;
  min-height: 620px !important;
  margin-top: 0;
  padding: clamp(34px, 6vw, 78px) 18px clamp(52px, 8vw, 96px);
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--primary-color) 14%, transparent) 0, transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(255, 102, 0, 0.10) 0, transparent 27%),
    linear-gradient(180deg, #f8fbff 0%, #edf4fd 100%);
}

.form-simulador,
#msg-aviso-inicio {
  position: relative;
  width: min(100%, 760px);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(43, 114, 238, 0.13);
  border-radius: var(--ft-radius-lg);
  background: var(--ft-surface);
  box-shadow: var(--ft-shadow);
}

.form-simulador form {
  margin-top: 0;
}

.form-simulador h1,
.form-simulador h2,
.form-simulador h3 {
  color: var(--primary-color-fade);
  font-family: inherit;
}

.form-simulador h1 {
  margin-bottom: 28px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 750;
  line-height: 1.18;
}

.form-simulador h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 650;
  line-height: 1.3;
}

.form-simulador h3 {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.container-header-form {
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 38px);
  margin: calc(clamp(24px, 5vw, 48px) * -1) calc(clamp(24px, 5vw, 48px) * -1) 36px;
  padding: clamp(24px, 5vw, 40px);
  overflow: hidden;
  border-bottom: 1px solid rgba(43, 114, 238, 0.12);
  border-radius: var(--ft-radius-lg) var(--ft-radius-lg) 0 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 8%, white), #fff 62%);
}

.container-header-form-img {
  width: auto;
  max-width: 180px;
  height: 126px;
  object-fit: contain;
}

.container-header-textos {
  align-items: flex-start;
  max-width: 410px;
}

.container-header-textos > h1,
.container-header-textos > h2,
.container-header-textos > h3 {
  text-align: left;
}

.container-header-textos > h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 750;
  line-height: 1.2;
}

.container-header-textos > h3,
.container-header-textos > h3:nth-child(3) {
  margin: 4px 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

.texto-lateral {
  display: none;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label,
.form-label {
  display: block;
  margin-bottom: 9px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}

.form-control,
.nice-select,
body.app-shell select.form-control,
body.app-shell textarea.form-control {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius-sm);
  color: var(--ft-ink) !important;
  background: #fff !important;
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

textarea.form-control {
  min-height: 120px;
}

.form-control:hover,
.nice-select:hover {
  border-color: color-mix(in srgb, var(--primary-color) 45%, var(--ft-line));
}

.form-control:focus,
.nice-select.open,
.nice-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 13%, transparent);
}

body.app-shell input[type="email"],
body.app-shell input[type="url"] {
  text-transform: none;
}

.nice-select {
  height: 52px;
  margin-bottom: 12px;
  line-height: 27px;
}

.nice-select .list {
  padding-top: 54px;
  border: 1px solid var(--ft-line);
  border-radius: 12px;
  box-shadow: var(--ft-shadow-sm);
}

.campo-obrigatorio {
  float: none;
  margin: 6px 0 0;
  color: var(--ft-danger);
  font-size: 0.82rem;
  font-weight: 600;
}

.campo-obrigatorio-2 {
  float: none;
  margin-left: 4px;
  color: var(--ft-danger) !important;
}

/* A faixa legada escondia o campo com problema, principalmente no celular.
 * As regras dos formulários continuam acionando os mesmos marcadores; a camada
 * comum os apresenta perto do botão que iniciou a validação. */
.msg_informacao_obrigatorio {
  display: none !important;
}

.ft-validation-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 10px 0 14px;
  padding: 16px 18px;
  border: 1px solid #ef9a9a;
  border-left: 5px solid var(--ft-danger);
  border-radius: 12px;
  color: #7f1d1d;
  background: #fff1f2;
  box-shadow: 0 8px 22px rgba(127, 29, 29, 0.09);
}

.ft-validation-summary-copy {
  min-width: 0;
}

.ft-validation-summary strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.96rem;
  line-height: 1.4;
}

.ft-validation-summary p {
  margin: 0;
  color: #991b1b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ft-validation-jump {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #b91c1c;
  border-radius: 9px;
  color: #fff;
  background: #b91c1c;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.ft-validation-jump:hover {
  color: #fff;
  background: #991b1b;
}

.ft-validation-target {
  border-color: var(--ft-danger) !important;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.13) !important;
}

.form-simulador .form-group > div[class^="btn-"],
.form-simulador .form-group > div[class*=" btn-"],
.form-simulador .estado-civil,
.form-simulador .tempo-servico,
.form-simulador .objetivo,
.form-simulador .prazo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.form-simulador .bg-modelo {
  flex: 1 1 132px;
  min-width: 0;
  min-height: 48px;
  margin: 0 !important;
  padding: 10px 13px;
  border: 1px solid var(--ft-line);
  border-radius: 12px;
  color: #475569;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  white-space: normal;
  box-shadow: none;
}

.form-simulador .bg-modelo:hover {
  border-color: var(--primary-color-fade);
  color: var(--primary-color-fade);
  transform: translateY(-1px);
}

.form-simulador .bg-modelo.active,
.form-simulador .bg-modelo.active:hover {
  border-color: var(--primary-color-fade);
  color: #fff;
  background: var(--primary-color-fade);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color) 24%, transparent);
}

.bg-next,
.bg-enviar-proposta,
.bg-resultado,
.bg-resultado2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 24px 0 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary-color), color-mix(in srgb, var(--secondary-color) 78%, var(--primary-color)));
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
  text-transform: none;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--secondary-color) 25%, transparent);
}

.bg-next:hover,
.bg-enviar-proposta:hover,
.bg-resultado:hover,
.bg-resultado2:hover {
  color: #fff;
  background: var(--secondary-color);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--secondary-color) 22%, transparent);
  transform: translateY(-1px);
}

.bg-next:disabled,
.bg-next[disabled],
#btn-enviar-proposta:disabled,
#btn-enviar-proposta[disabled] {
  border: 1px solid #cbd5e1;
  color: #64748b;
  background: #e2e8f0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.progresso-inicio ul,
.progresso ul,
.progresso-imoveis ul,
.progresso-giro ul,
.progresso-resposivo ul,
.progresso-resposivo-imoveis ul,
.progresso-resposivo-giro ul {
  margin-bottom: 0;
  background-color: #dbe5f2;
}

.resultado_espaco > div,
.msg-restricao-cpf,
.msg-restricao-cidade,
.msg-simulacao-preenchida,
.msg-boas-vindas {
  border-radius: var(--ft-radius);
}

.new_duvidas {
  padding: clamp(48px, 7vw, 88px) 18px;
  background: #fff;
}

.new_duvidas .container {
  max-width: 900px;
}

.new_duvidas h1 {
  margin-bottom: 30px;
  color: var(--ft-navy);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
}

.new_duvidas p.app-duvidas-titulo {
  margin: 12px 0 0;
  padding: 17px 20px;
  border: 1px solid var(--ft-line);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(2, 31, 95, 0.05);
}

.new_duvidas p.app-duvidas-titulo:hover {
  border-color: color-mix(in srgb, var(--primary-color) 45%, var(--ft-line));
  box-shadow: var(--ft-shadow-sm);
}

.new_duvidas p.app-duvidas-titulo + span {
  padding: 16px 20px 4px;
  color: #526077;
  font-size: 0.96rem;
  line-height: 1.7;
}

.back-top-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ft-orange);
  box-shadow: 0 8px 22px rgba(255, 102, 0, 0.3);
}

.site-footer.rodape {
  height: auto;
  padding: 52px 18px 26px !important;
  color: #fff;
  background: linear-gradient(145deg, var(--rodape-color), color-mix(in srgb, var(--rodape-color) 82%, #000)) !important;
  font-family: inherit;
}

.site-footer .container-geral {
  max-width: 1180px;
}

.site-footer .contatos-rodape {
  gap: 28px;
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer .img-container-rodape {
  display: inline-flex;
}

.site-footer .img-container-rodape img {
  width: min(242px, 64vw);
}

.site-footer .redes-sociais-container-rodape {
  gap: 12px;
}

.site-footer .redes-sociais-container-rodape > .fa-brands {
  width: 48px;
  height: 48px;
  margin: 0;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.site-footer .selos-rodape {
  gap: 20px;
}

.site-footer .selo-google {
  width: 142px;
  height: auto;
}

.site-footer .informacoes-legais-rodape {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 34px;
}

.site-footer .informacoes-legais-rodape > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.75;
  text-align: left;
}

.site-footer .informacoes-legais-rodape > p:nth-child(3),
.site-footer .informacoes-legais-rodape > p:nth-child(4),
.site-footer .informacoes-legais-rodape > p:nth-child(5) {
  grid-column: 1 / -1;
}

.site-footer .informacoes-legais-rodape a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.security-notice {
  position: relative;
  z-index: 60;
  border-bottom: 1px solid #e45100;
  color: #fff;
  background: linear-gradient(105deg, #e45100 0%, var(--ft-orange) 52%, #f47a24 100%);
  box-shadow: 0 5px 18px rgba(99, 36, 0, 0.18);
}

.security-notice[hidden] {
  display: none !important;
}

.security-notice-inner {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.security-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.security-notice p {
  margin: 0;
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.45;
  text-align: center;
}

.security-notice p strong {
  font-weight: 800;
}

#close-security-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  color: #fff;
  background: rgba(2, 31, 95, 0.28);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

#close-security-notice:hover {
  border-color: #fff;
  background: rgba(2, 31, 95, 0.5);
}

#close-security-notice:focus-visible {
  outline-color: #fff;
}

#cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: auto;
  display: none;
  align-items: center;
  gap: 18px;
  width: min(640px, calc(100vw - 40px));
  margin: 0;
  padding: 18px;
  border: 1px solid var(--ft-line);
  border-radius: 16px;
  color: var(--ft-ink);
  background: #fff;
  box-shadow: 0 22px 60px rgba(2, 31, 95, 0.24);
  z-index: 9999;
}

#cookie p {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

#cookie a {
  color: var(--primary-color);
}

#cookie button {
  flex: 0 0 auto;
  width: auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--primary-color);
  font-size: 0.86rem;
  font-weight: 700;
}

.partner-footer {
  padding: 34px 18px;
}

.partner-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.partner-footer img {
  width: auto;
  max-width: min(250px, 60vw);
  max-height: 86px;
  object-fit: contain;
}

.not-found {
  max-width: 720px;
  padding: 100px 18px;
  text-align: center;
}

.not-found-code {
  display: block;
  color: var(--primary-color);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  line-height: 1;
  opacity: 0.15;
}

.not-found h1 {
  margin-top: -20px;
  color: var(--ft-navy);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 750;
}

.not-found p {
  color: var(--ft-muted);
}

.not-found .bg-next {
  max-width: 320px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .security-notice-inner {
    grid-template-columns: 26px minmax(0, 1fr) 38px;
    gap: 8px;
    min-height: 64px;
  }

  .security-notice-icon {
    width: 24px;
    height: 24px;
    font-size: 0.88rem;
  }

  .security-notice p {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  #close-security-notice {
    width: 36px;
    height: 36px;
  }

  .site-header .topo {
    min-height: 78px;
    padding: 10px 0;
  }

  .container-header-logo {
    min-height: 58px;
    gap: 12px;
  }

  #logo {
    display: none;
  }

  #logo-responsivo {
    display: inline-flex;
  }

  .header-product {
    max-width: 46vw;
    padding: 7px 10px;
    font-size: 0.7rem;
  }

  .bg-simulador {
    padding-right: 12px;
    padding-left: 12px;
  }

  .form-simulador,
  #msg-aviso-inicio {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .container-header-form {
    flex-direction: column;
    align-items: center;
    margin: -24px -18px 28px;
    padding: 26px 18px;
    border-radius: 18px 18px 0 0;
    text-align: center;
  }

  .container-header-form-img {
    width: auto;
    max-width: min(210px, 75vw);
    height: 110px;
    scale: 1 !important;
  }

  .container-header-textos {
    align-items: center;
  }

  .container-header-textos > h1,
  .container-header-textos > h2,
  .container-header-textos > h3 {
    text-align: center;
  }

  .ft-insurance-header .ft-form-kicker {
    text-align: center;
  }

  .form-simulador .bg-modelo {
    flex-basis: calc(50% - 8px);
    width: auto !important;
  }

  .site-footer .contatos-rodape,
  .partner-footer .container {
    flex-direction: column;
  }

  .site-footer .informacoes-legais-rodape {
    grid-template-columns: 1fr;
  }

  .site-footer .informacoes-legais-rodape > p {
    grid-column: auto;
  }

  #cookie {
    right: 12px;
    bottom: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    width: auto;
  }

  #cookie button {
    width: 100%;
  }

  .ft-validation-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .ft-validation-jump {
    width: 100%;
  }

}

@media (max-width: 420px) {
  .header-product {
    display: none;
  }

  .container-header-logo {
    justify-content: center;
  }

  .form-simulador .bg-modelo {
    flex-basis: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.app-shell *,
  body.app-shell *::before,
  body.app-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
