/* ============================================================
   Mapa do Diagnóstico da Maturidade Financeira
   Identidade Visual: Mauro Silvério - Consultor Empresarial
   ============================================================ */

:root {
  --blue-brand: #0071BC;
  --blue-deep:  #0071BC;
  --blue-darker:#005A96;
  --yellow:     #FFD43B;
  --yellow-hover:#FFC400;
  --white:      #ffffff;
  --gray-100:   #F4F6F8;
  --gray-200:   #E2E8F0;
  --gray-500:   #64748B;
  --gray-700:   #334155;
  --gray-900:   #0F172A;
  --shadow-lg:  0 25px 50px -12px rgba(0, 0, 0, 0.35);
  --shadow-md:  0 10px 25px -5px rgba(0, 0, 0, 0.2);
  --radius:     14px;

  --font-display: 'Krona One', 'Inter', system-ui, sans-serif;
  --font-text:    'Inter', system-ui, -apple-system, sans-serif;
}

/* Fallback local da fonte Krona One */
@font-face {
  font-family: 'Krona One Local';
  src: url('../fonts/KronaOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  color: var(--gray-900);
  background: var(--blue-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HERO / LAYOUT BASE
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  background: #0071BC;
  padding: 32px 0 48px;
  overflow: hidden;
}

.hero__overlay {
  display: none;
}

.container {
  position: relative;
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}

.container--center {
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

/* ============================================================
   TOPBAR / LOGO
   ============================================================ */

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-bottom: 32px;
}

.logo {
  max-width: 128px;
  width: auto;
  height: 80px;
  object-fit: contain;
}

.topbar__sep {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
}

.logo-mapa {
  max-width: 219px;
  width: auto;
  height: 67px;
  object-fit: contain;
}

/* ============================================================
   CONTEÚDO PRINCIPAL (form + texto)
   ============================================================ */

.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  flex: 1;
}

.content__text { color: var(--white); }

.title {
  font-family: var(--font-display), 'Krona One Local', sans-serif;
  font-size: clamp(1.6rem, 4vw + 0.5rem, 2.8rem);
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.title__highlight {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 16px;
  background: var(--yellow);
  color: var(--blue-darker);
  border-radius: 6px;
  font-size: clamp(1.4rem, 3.5vw + 0.3rem, 2.4rem);
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(255, 212, 59, 0.35);
}

.subtitle {
  font-size: clamp(1rem, 1vw + 0.7rem, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  max-width: 540px;
}

.subtitle strong {
  color: var(--yellow);
  font-weight: 700;
}

.benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 540px;
}

.benefits li {
  color: rgba(255, 255, 255, 0.92);
  padding-left: 30px;
  position: relative;
  font-size: 1rem;
}

.benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 10px;
  border-left: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
  transform: rotate(-45deg);
}

/* ============================================================
   FORM CARD
   ============================================================ */

.content__form { width: 100%; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.form-card__title {
  font-family: var(--font-display), 'Krona One Local', sans-serif;
  color: var(--blue-brand);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 4px;
  line-height: 1.3;
}

.form-card__hint {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  border: 2px solid #CBD5E1;
  border-radius: 10px;
  transition: border-color .18s, background .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}

.field input:hover {
  border-color: #94A3B8;
}

.field input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-brand);
  box-shadow: 0 0 0 4px rgba(0, 113, 188, 0.18);
}

.field input::placeholder { color: #94a3b8; }

/* ============================================================
   BOTÃO DE ENVIO
   ============================================================ */

.btn-submit {
  position: relative;
  width: 100%;
  margin-top: 6px;
  padding: 15px 20px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-darker);
  background: var(--yellow);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform .12s ease, background .18s, box-shadow .18s;
  box-shadow: 0 8px 20px rgba(255, 212, 59, 0.35);
  overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
  background: var(--yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 196, 0, 0.4);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled { cursor: not-allowed; opacity: 0.85; }

.btn-submit__loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(10, 37, 64, 0.25);
  border-top-color: var(--blue-darker);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.is-loading .btn-submit__label { visibility: hidden; }

.btn-submit.is-loading .btn-submit__loader {
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  margin: -9px 0 0 -9px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-card__legal {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

.form-card__error {
  margin-top: 12px;
  padding: 10px 12px;
  background: #FEE2E2;
  color: #991B1B;
  border-radius: 8px;
  font-size: 0.88rem;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  margin-top: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

/* ============================================================
   PÁGINA DE OBRIGADO
   ============================================================ */

.hero--thanks { padding-bottom: 60px; }

.thanks {
  max-width: 640px;
  margin: 20px auto 0;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.thanks__check { display: flex; justify-content: center; margin-bottom: 20px; }

.thanks__title {
  font-family: var(--font-display), 'Krona One Local', sans-serif;
  font-size: clamp(1.4rem, 3vw + 0.5rem, 2rem);
  line-height: 1.25;
  color: var(--blue-deep);
  margin-bottom: 12px;
  font-weight: 400;
}

.thanks__highlight {
  display: block;
  margin-top: 8px;
  color: var(--blue-brand);
  font-size: clamp(1rem, 2vw + 0.3rem, 1.4rem);
}

.thanks__text {
  color: var(--gray-700);
  font-size: 1.02rem;
  max-width: 520px;
  margin: 0 auto 28px;
}

.thanks__text strong { color: var(--blue-brand); }

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue-brand);
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform .12s ease, background .18s, box-shadow .18s;
  box-shadow: 0 10px 24px rgba(0, 113, 188, 0.4);
}

.btn-download:hover {
  background: var(--blue-darker);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 90, 150, 0.5);
}

.btn-download:active { transform: translateY(0); }

.thanks__note {
  margin-top: 22px;
  color: var(--gray-500);
  font-size: 0.88rem;
}

.thanks__back {
  display: inline-block;
  margin-top: 26px;
  color: var(--blue-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.thanks__back:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVO - Tablet em diante
   ============================================================ */

@media (min-width: 768px) {
  .hero { padding: 40px 0 60px; }

  .topbar { justify-content: center; margin-bottom: 36px; }

  .logo { max-width: 144px; height: 92px; }
  .logo-mapa { max-width: 254px; height: 78px; }
  .topbar { gap: 44px; }
  .topbar__sep { height: 64px; }

  .content {
    grid-template-columns: minmax(0, 520px) minmax(0, 460px);
    justify-content: center;
    gap: 32px;
  }

  .content__text { justify-self: end; max-width: 520px; }

  .content__form { justify-self: start; max-width: 460px; }

  .form-card { padding: 36px 32px; }

  .title { margin-bottom: 22px; }
}

@media (min-width: 1024px) {
  .hero { padding: 48px 0 64px; }
  .logo { max-width: 160px; height: 104px; }
  .logo-mapa { max-width: 288px; height: 88px; }
  .topbar { gap: 52px; }
  .topbar__sep { height: 72px; }
  .content {
    grid-template-columns: minmax(0, 540px) minmax(0, 480px);
    gap: 40px;
  }
  .form-card { padding: 40px 36px; }
}

/* ============================================================
   RESPONSIVO - Mobile pequeno
   ============================================================ */

@media (max-width: 380px) {
  .container { width: 94%; }
  .form-card { padding: 24px 20px; }
  .title__highlight { padding: 4px 12px; }
  .btn-submit { padding: 14px 16px; font-size: 1rem; }
}

/* ============================================================
   PREFERÊNCIAS DE ACESSIBILIDADE
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
