:root {
  --navy: #0d1d52;
  --navy-2: #071126;
  --gold: #dd9900;
  --gold-2: #ff8a00;
  --light: #f4f6f7;
  --paper: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: rgba(13, 29, 82, .12);
  --shadow: 0 26px 70px rgba(7, 17, 38, .18);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244,246,247,.98) 0 130px, rgba(221,153,0,.96) 130px 500px, var(--navy) 500px 585px, var(--light) 585px 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.cadastro-page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 72px) clamp(14px, 3vw, 34px) 84px;
}

.form-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-head {
  padding: clamp(26px, 4vw, 44px);
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(221,153,0,.26), transparent 34%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  border-bottom: 4px solid var(--gold);
}

.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.form-head h1 {
  margin: 14px 0 8px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: .92;
  letter-spacing: -.075em;
}

.form-head p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  font-weight: 600;
}

.alert {
  margin: 24px clamp(18px, 4vw, 42px) 0;
  padding: 18px 20px;
  border-radius: 18px;
  line-height: 1.55;
}
.alert-error {
  background: #fff1f1;
  color: #8a1f1f;
  border: 1px solid rgba(138,31,31,.18);
}
.alert ul { margin: 8px 0 0; padding-left: 20px; }

.progress-area {
  padding: 26px clamp(18px, 4vw, 42px) 0;
}
.progress-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--navy);
  margin-bottom: 10px;
}
.progress-info strong { font-size: 14px; }
.progress-info span { color: var(--muted); font-size: 13px; font-weight: 700; text-align: right; }
.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 29, 82, .09);
}
.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width .28s ease;
}

.paeg-form {
  padding: clamp(22px, 4vw, 42px);
}
.step { display: none; animation: fadeStep .22s ease both; }
.step.active { display: block; }
@keyframes fadeStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.section-title span {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(221,153,0,.12);
  color: #9a6900;
  font-weight: 900;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--navy);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }

label {
  display: grid;
  gap: 9px;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}
input[type="text"], input[type="email"], input[type="date"], textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border .18s ease, box-shadow .18s ease, transform .18s ease;
}
textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus {
  border-color: rgba(221,153,0,.72);
  box-shadow: 0 0 0 4px rgba(221,153,0,.12);
}
input::placeholder, textarea::placeholder { color: #98a2b3; }

.block-question {
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  margin-bottom: 20px;
}
.block-question h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: -.02em;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.choice-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: #27364c;
  cursor: pointer;
  transition: border .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.choice:hover {
  transform: translateY(-1px);
  border-color: rgba(221,153,0,.38);
  box-shadow: 0 10px 20px rgba(7,17,38,.05);
}
.choice input { accent-color: var(--gold); width: 17px; height: 17px; }
.choice:has(input:checked) {
  background: rgba(221,153,0,.10);
  border-color: rgba(221,153,0,.64);
}
.choice span { font-size: 14px; font-weight: 750; }

.other-field {
  display: none;
  margin-top: 14px;
}
.other-field.show, .other-field.always { display: grid; }

.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(221,153,0,.34);
  background: rgba(221,153,0,.08);
  border-radius: 22px;
  line-height: 1.55;
}
.consent-card input { margin-top: 4px; accent-color: var(--gold); width: 20px; height: 20px; }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 26px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.btn {
  border: 0;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141414;
  box-shadow: 0 16px 28px rgba(221,153,0,.22);
}
.btn-muted {
  background: #eef1f5;
  color: var(--navy);
}
.submit-btn { display: none; }

.site-footer {
  background: #050505;
  color: #fff;
  border-top: 1px solid rgba(221,153,0,.5);
}
.footer-line {
  height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy));
}
.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 48px clamp(18px, 4vw, 38px);
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 34px;
  align-items: center;
}
.footer-logo {
  width: 150px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}
.footer-copy p {
  margin: 0 0 8px;
  color: rgba(255,255,255,.74);
  font-size: 13px;
}
.footer-copy small { color: rgba(255,255,255,.42); }
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.footer-btn {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: #fff;
  border-radius: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  transition: border .18s ease, background .18s ease, color .18s ease;
}
.footer-btn:hover {
  background: rgba(221,153,0,.12);
  border-color: rgba(221,153,0,.55);
  color: var(--gold);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, .66);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: var(--navy-2);
  color: #fff;
  border: 1px solid rgba(221,153,0,.8);
  border-radius: 26px;
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}
.modal-card-text { padding: clamp(26px, 5vw, 48px); }
.modal-card-text h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -.06em;
}
.modal-card-text h3 {
  color: var(--gold);
  margin: 26px 0 8px;
  font-size: 18px;
}
.modal-card-text p, .modal-card-text li {
  color: rgba(255,255,255,.76);
  line-height: 1.72;
  font-size: 15px;
}
.modal-card-text ul { padding-left: 20px; }
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  background: var(--gold-2);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  font-weight: 800;
  z-index: 2;
}
.modal-card-dev {
  min-height: 585px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 58px 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(221,153,0,.16), transparent 34%),
    linear-gradient(145deg, var(--navy), #071126 74%);
}
.modal-card-dev .modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  float: none;
}
.dev-logo {
  width: 230px;
  max-height: 130px;
  object-fit: contain;
  margin-bottom: 58px;
}
.modal-card-dev h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  line-height: .95;
  letter-spacing: -.06em;
}
.modal-card-dev p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-weight: 800;
  letter-spacing: .02em;
}
.modal-card-dev a {
  color: var(--gold);
  font-weight: 900;
}
.modal-card-dev span { color: rgba(255,255,255,.84); }

@media (max-width: 820px) {
  body {
    background:
      linear-gradient(180deg, rgba(244,246,247,.98) 0 110px, rgba(221,153,0,.96) 110px 360px, var(--navy) 360px 440px, var(--light) 440px 100%);
  }
  .field-grid.two, .choice-grid, .choice-grid.compact { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto; }
  .footer-actions { justify-content: center; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .progress-info { align-items: flex-start; flex-direction: column; gap: 4px; }
  .progress-info span { text-align: left; }
}

@media (max-width: 480px) {
  .paeg-form, .progress-area { padding-left: 16px; padding-right: 16px; }
  .form-head { padding: 26px 18px; }
  .block-question { padding: 16px; }
  .section-title span { width: 42px; height: 42px; flex-basis: 42px; }
  .modal-card-dev { min-height: 520px; }
  .dev-logo { width: 190px; margin-bottom: 38px; }
}
.thanks-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 62px);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.64);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.thanks-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 26px;
  background: rgba(221,153,0,.14);
  color: #9a6900;
  font-size: 34px;
  font-weight: 900;
}
.thanks-shell h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(36px, 7vw, 62px);
  line-height: .95;
  letter-spacing: -.07em;
}
.thanks-shell p {
  margin: 0 auto 24px;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 600;
}
.thanks-shell .btn { width: fit-content; margin: 0 auto; }
