:root {
  --paper: #f4f8fc;
  --sand: #e5eef7;
  --sand-deep: #c9daeb;
  --ink: #1c2e40;
  --muted: #637386;
  --olive: #315d82;
  --olive-dark: #1f4565;
  --terracotta: #4f7fa7;
  --white: #ffffff;
  --line: #d5e1ec;
  --focus: #176ea4;
  --danger: #9b3434;
  --shadow: 0 24px 70px rgba(31, 69, 101, .12);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(79, 127, 167, .12), transparent 25rem),
    linear-gradient(180deg, var(--paper), #eef5fb 70%, #e3edf7);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .01em; }
.brand-mark { width: 44px; height: 44px; border-radius: 50% 50% 48% 38%; display: grid; place-items: center; color: var(--paper); background: var(--olive); font-family: Georgia, serif; font-size: 15px; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.brand small { display: block; color: var(--terracotta); letter-spacing: .24em; font-size: 10px; margin-top: 1px; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.55); border-radius: 999px; color: var(--muted); font-size: 13px; }
.privacy-pill span { color: #4e86b3; font-size: 9px; }

main { max-width: 1180px; margin: 0 auto; padding: 20px 24px 72px; }
.intro { max-width: 800px; margin: 45px auto 42px; text-align: center; }
.eyebrow, .progress-label, .review-kicker { color: var(--terracotta); font-weight: 750; letter-spacing: .16em; font-size: 12px; }
h1 { max-width: 760px; margin: 14px auto 18px; font: 500 clamp(39px, 6vw, 66px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.lede { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 24px; color: var(--olive); font-size: 13px; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--terracotta); }

.planner-shell { min-height: 670px; display: grid; grid-template-columns: 285px 1fr; overflow: hidden; border: 1px solid rgba(49,93,130,.14); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.progress-panel { padding: 34px 28px; background: var(--olive); color: #edf5fb; }
.progress-label { color: #c7dff3; margin: 0 0 12px; }
.progress-track { height: 6px; background: rgba(255,255,255,.14); border-radius: 20px; overflow: hidden; }
.progress-track span { display: block; width: 14%; height: 100%; border-radius: inherit; background: #b8d4ea; transition: width .3s ease; }
.progress-copy { margin: 8px 0 28px; color: #d4e4f2; font-size: 13px; }
.progress-copy strong { color: white; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li { position: relative; display: flex; align-items: center; gap: 11px; min-height: 43px; color: #c4d6e5; font-size: 14px; }
.step-list li::before { content: ""; width: 9px; height: 9px; flex: 0 0 auto; border: 1px solid #9bbbd4; border-radius: 50%; }
.step-list li.active { color: white; font-weight: 700; }
.step-list li.active::before { width: 11px; height: 11px; border-color: #dcecf8; background: #dcecf8; box-shadow: 0 0 0 4px rgba(220,236,248,.14); }
.step-list li.complete { color: #e6f0f8; }
.step-list li.complete::before { content: "✓"; display: grid; place-items: center; width: 15px; height: 15px; border: 0; color: var(--olive-dark); background: #bed5e7; font-size: 10px; }
.save-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); color: #e9f2f9; }
.save-note > span { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 11px; }
.save-note p { margin: 0; font-size: 12px; line-height: 1.35; }
.save-note small { color: #c0d4e4; }

#travel-form { min-width: 0; padding: 44px 54px 34px; }
.form-step { margin: 0; padding: 0; border: 0; animation: reveal .3s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } }
.form-step[hidden] { display: none; }
legend { display: block; width: 100%; padding: 0; font: 500 clamp(30px, 4vw, 43px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
legend span { display: block; margin-bottom: 6px; color: var(--terracotta); font: 750 11px/1.4 Inter, sans-serif; letter-spacing: .14em; }
.step-intro { max-width: 620px; margin: 9px 0 28px; color: var(--muted); }
.grid { display: grid; gap: 19px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: .75fr 1fr 1fr; }
label { display: block; color: #30475d; font-size: 14px; font-weight: 670; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  padding: 12px 13px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 80px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8795a3; }
input:focus, select:focus, textarea:focus, button:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,111,139,.14); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.optional, .hint { color: #718297; font-size: 12px; font-weight: 450; }
.form-step > label, .form-step > .grid, .form-step > .choice-grid, .form-step > .chip-grid, .form-step > .switch-row, .form-step > .consent-row { margin-top: 19px; }
.field-label { margin: 23px 0 9px; color: #30475d; font-size: 14px; font-weight: 700; }
.choice-grid { display: grid; gap: 11px; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card { position: relative; min-height: 78px; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: flex; height: 100%; flex-direction: column; justify-content: center; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: .2s; }
.choice-card small { margin-top: 2px; color: var(--muted); font-weight: 450; }
.choice-card input:checked + span { border-color: var(--olive); color: var(--olive-dark); background: #eaf2f9; box-shadow: inset 0 0 0 1px var(--olive); }
.choice-card input:focus-visible + span { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,111,139,.14); }
.choice-grid.compact .choice-card { min-height: 58px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-grid label { position: relative; }
.chip-grid input { position: absolute; opacity: 0; pointer-events: none; }
.chip-grid span { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #4e6275; cursor: pointer; transition: .2s; font-size: 13px; font-weight: 550; }
.chip-grid input:checked + span { color: var(--olive-dark); border-color: #8cadc8; background: #e9f2f9; box-shadow: inset 0 0 0 1px #8cadc8; }
.chip-grid input:focus-visible + span { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,111,139,.14); }
.switch-row, .consent-row { display: flex !important; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; background: #edf4fa; }
.switch-row input, .consent-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--olive); flex: 0 0 auto; }
.switch-row span, .consent-row span { font-weight: 500; }
.switch-row small { display: block; color: var(--muted); font-weight: 400; }
.form-alert { margin-bottom: 20px; padding: 11px 13px; border-left: 3px solid var(--danger); border-radius: 8px; color: #7d2929; background: #fff0ed; font-size: 14px; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; padding-top: 25px; border-top: 1px solid #e1eaf2; }
.form-nav #next-button { margin-left: auto; }
.button { min-height: 46px; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; cursor: pointer; font-weight: 720; transition: transform .15s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--olive); }
.button.primary:hover { background: var(--olive-dark); }
.button.accent { color: white; background: var(--terracotta); }
.button.quiet { color: var(--olive-dark); border-color: var(--line); background: white; }
.review-step h2 { margin: 4px 0 8px; font: 500 clamp(30px, 4vw, 43px)/1.15 Georgia, serif; }
.summary { display: grid; gap: 14px; }
.summary-section { padding: 18px; border: 1px solid #dce7f0; border-radius: 14px; background: #fff; }
.summary-section h3 { margin: 0 0 11px; color: var(--terracotta); font: 750 12px/1.3 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.summary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; }
.summary-list div { min-width: 0; }
.summary-list .wide { grid-column: 1 / -1; }
.summary-list dt { color: #728397; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.summary-list dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.advisor-list { margin: 0; padding-left: 20px; }
.advisor-list li + li { margin-top: 6px; }
.privacy-callout { margin-top: 16px; padding: 14px 16px; color: #365a78; background: #eaf3fa; border-radius: 12px; font-size: 13px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.action-status { min-height: 24px; color: var(--olive); font-size: 13px; }

footer { max-width: 1180px; margin: 0 auto; padding: 32px 24px 42px; display: flex; align-items: center; gap: 22px; border-top: 1px solid rgba(49,93,130,.14); color: var(--muted); font-size: 12px; }
footer div { margin-right: auto; }
footer strong, footer span { display: block; }
footer strong { color: var(--ink); font-family: Georgia, serif; font-size: 15px; font-weight: 500; }
.text-button { padding: 0; border: 0; color: var(--muted); background: transparent; text-decoration: underline; cursor: pointer; }

@media (max-width: 820px) {
  .intro { margin-top: 25px; }
  .planner-shell { grid-template-columns: 1fr; }
  .progress-panel { padding: 22px 24px 18px; }
  .step-list { display: none; }
  .progress-copy { margin-bottom: 0; }
  .save-note { display: none; }
  #travel-form { padding: 34px 24px 28px; }
}
@media (max-width: 620px) {
  .site-header, main, footer { padding-left: 16px; padding-right: 16px; }
  .site-header { padding-top: 20px; }
  .privacy-pill { font-size: 0; gap: 0; width: 35px; height: 35px; justify-content: center; }
  .privacy-pill span { font-size: 10px; }
  h1 { font-size: 41px; }
  .planner-shell { border-radius: 20px; }
  #travel-form { padding: 30px 19px 24px; }
  .grid.two, .grid.three, .choice-grid.two, .choice-grid.three, .summary-list { grid-template-columns: 1fr; }
  .summary-list .wide { grid-column: auto; }
  .review-actions .button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; }
  footer div { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  @page { margin: 14mm; }
  body { background: white; font-size: 11pt; }
  .site-header { padding: 0 0 18px; }
  .privacy-pill, .intro, .progress-panel, .form-nav, footer, .review-actions, .action-status, .privacy-callout, .review-step > .step-intro { display: none !important; }
  main { max-width: none; padding: 0; }
  .planner-shell { display: block; min-height: 0; border: 0; box-shadow: none; }
  #travel-form { padding: 0; }
  .form-step { display: none !important; }
  .review-step { display: block !important; }
  .review-step::before { content: "PATRICIA BRASIL TRAVEL · FAMILY TRAVEL BRIEF"; display: block; margin-bottom: 7px; color: #4f7fa7; font: bold 9pt Inter, sans-serif; letter-spacing: .12em; }
  .review-kicker { display: none; }
  .review-step h2 { font-size: 28pt; margin: 0 0 18px; }
  .summary { gap: 9px; }
  .summary-section { break-inside: avoid; padding: 11px 13px; }
  .summary-list { grid-template-columns: 1fr 1fr; gap: 6px 15px; }
}
