body { background: #fbfcfa; }
.flow-main { min-height: 72vh; padding-block: 32px 70px; }
.flow-progress { display: flex; list-style: none; padding: 0 0 28px; margin: 0 0 45px; border-bottom: 1px solid var(--cepe-line); gap: 40px; }
.flow-progress li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.flow-progress li span { display: grid; place-items: center; border: 1px solid var(--cepe-line); border-radius: 50%; width: 30px; height: 30px; flex-shrink: 0; }
.flow-progress [aria-current] { color: var(--cepe-green); font-weight: 750; }
.flow-progress [aria-current] span { background: var(--cepe-yellow); border-color: var(--cepe-yellow); }
.flow-main h1 { color: var(--cepe-green); font-size: clamp(32px, 4vw, 48px); }
.age-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; padding-block: 20px; }
.flow-intro > p:not(.eyebrow) { margin-top: 24px; max-width: 510px; font-size: 18px; }
.age-benefits { padding-left: 20px; }
.age-benefits li { margin-block: 12px; }
.age-card, .selection-card { border: 1px solid var(--cepe-line); border-radius: 20px; background: #fff; padding: 34px; box-shadow: 0 10px 28px #10381709; }
.age-card label { display: block; font-weight: 750; color: var(--cepe-green); font-size: 24px; }
#idade-ajuda { font-size: 14px; margin-block: 10px 20px; }
.age-card input[type=number] { display: block; width: 100%; border: 1px solid #889c89; border-radius: 10px; padding: 16px; font: inherit; font-size: 24px; color: var(--cepe-green); margin-bottom: 24px; }
.age-card .button, .selection-card .button { width: 100%; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.small-note { font-size: 13px; margin: 20px 0 0; }
.field-errors { color: #9a2518; font-size: 14px; }
.field-errors ul { padding-left: 20px; }
.flow-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.flow-heading p:last-child { margin: 18px 0 0; max-width: 710px; }
.age-pill { flex-shrink: 0; color: var(--cepe-green); background: #edf3e9; border: 1px solid var(--cepe-line); border-radius: 12px; padding: 12px 20px; text-decoration: none; font-weight: 750; }
.age-pill span { display: block; font-size: 12px; font-weight: 500; }
.combo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.combo-card { display: flex; flex-direction: column; padding: 24px 20px; border: 1px solid var(--cepe-line); border-radius: 16px; background: white; }
.combo-card h2 { font-size: 27px; }
.combo-card .eyebrow { margin-bottom: 14px; }
.combo-description { font-size: 14px; min-height: 70px; margin-block: 14px; }
.combo-price { color: var(--cepe-green); font-size: 32px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.combo-price > span { font-size: 16px; font-weight: 600; }
.combo-price small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.combo-items { list-style: none; margin: 0 0 20px; padding: 0; }
.combo-items li { padding-block: 12px; border-top: 1px solid var(--cepe-line); }
.combo-items strong { display: block; color: var(--cepe-green); font-size: 14px; }
.combo-items span { font-size: 12px; }
.combo-card .button { margin-top: auto; padding: 12px; font-size: 13px; gap: 8px; }
.adjustment { padding: 12px; border-radius: 8px; background: #fff5cd; color: var(--cepe-green); font-size: 13px; }
.simulation-note { font-size: 13px; max-width: 850px; margin: 26px 0 0; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--cepe-green); }
.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.composition { background: white; border: 1px solid var(--cepe-line); border-radius: 16px; padding: 28px; min-width: 0; }
.composition-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.composition h2, .selection-card h2 { font-size: 25px; }
.composition-title span { font-size: 13px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 15px 8px; text-align: left; border-bottom: 1px solid var(--cepe-line); }
thead th { font-size: 12px; font-weight: 600; }
tbody th { color: var(--cepe-green); }
td { white-space: nowrap; }
th:last-child, td:last-child { text-align: right; }
tfoot { font-weight: 750; color: var(--cepe-green); }
.composition .adjustment { margin: 20px 0 0; }
.selection-card h2 { margin-bottom: 20px; }
.secondary-link { display: block; text-align: center; margin-top: 22px; color: var(--cepe-green); }
.unavailable { max-width: 650px; margin: 30px auto; text-align: center; }
.unavailable > p:not(.eyebrow) { margin-top: 25px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.alert-message { background: #fff5cd; padding: 18px; border-radius: 10px; color: var(--cepe-green); }
.flow-progress { gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.data-form { max-width: 900px; margin-inline: auto; }
.form-section { min-width: 0; background: white; border: 1px solid var(--cepe-line); border-radius: 16px; padding: 28px; margin: 0 0 28px; }
.form-section legend { font-size: 21px; font-weight: 750; color: var(--cepe-green); max-width: 100%; padding: 0 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.form-field label { display: block; font-size: 14px; font-weight: 700; color: var(--cepe-green); margin-bottom: 8px; }
.optional { color: var(--cepe-body); font-weight: 400; font-size: 12px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; font: inherit; color: var(--cepe-ink); border: 1px solid #8c9c8b; border-radius: 8px; background: #fff; }
.form-field textarea { resize: vertical; }
.form-field [aria-invalid=true], .question-section [aria-invalid=true] { border-color: #a12a1b; }
.field-help { font-size: 13px; margin: 8px 0 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.form-actions .small-note { max-width: 420px; margin: 0; }
.form-actions button { font: inherit; font-weight: 750; border: 0; cursor: pointer; }
.form-actions .back-link { margin: 0; }
.question-section > div:not(.field-errors) { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.question-section label { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--cepe-line); border-radius: 8px; color: var(--cepe-ink); cursor: pointer; }
.question-section input[type=radio] { accent-color: var(--cepe-green); width: 20px; height: 20px; }
.review-section { padding: 28px; background: white; border: 1px solid var(--cepe-line); border-radius: 16px; margin-top: 28px; }
.review-section h2 { font-size: 27px; }
.review-section h3 { font-size: 20px; margin-block: 24px 14px; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.review-grid div, .review-answers div { overflow-wrap: anywhere; }
.review-grid dt, .review-answers dt { color: var(--cepe-ink); font-weight: 650; font-size: 14px; }
.review-grid dd, .review-answers dd { margin: 6px 0 0; }
.review-answers div { padding-block: 18px; border-bottom: 1px solid var(--cepe-line); }
.review-note { margin-top: 28px; }
.review-note h2 { font-size: 25px; margin-bottom: 18px; }
.review-note .button { margin-top: 20px; }
@media (max-width: 1050px) { .combo-grid { grid-template-columns: repeat(2, 1fr); } .age-layout { gap: 35px; } .detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .form-grid, .review-grid { grid-template-columns: 1fr; }
  .form-section, .review-section { padding: 20px 16px; }
  .form-section legend { font-size: 18px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .flow-progress li { flex: 0 0 28%; }
  .flow-main { padding-top: 25px; }
  .flow-progress { gap: 14px; justify-content: space-between; margin-bottom: 30px; }
  .flow-progress li { gap: 5px; font-size: 11px; flex-direction: column; }
  .age-layout, .combo-grid { grid-template-columns: 1fr; }
  .age-card, .selection-card { padding: 24px; }
  .flow-heading { align-items: start; flex-direction: column; }
  .age-pill span { display: inline; margin-left: 15px; }
  .combo-description { min-height: 0; }
  .combo-card { padding: 25px; }
  .combo-price { font-size: 36px; }
  .composition { padding: 18px; }
  th, td { font-size: 12px; padding: 12px 5px; }
}

.spouse-fields{margin:24px 0}.spouse-toggle{display:flex!important;align-items:center;gap:12px;cursor:pointer}.spouse-toggle input[type=checkbox]{width:22px;height:22px;flex-shrink:0;accent-color:#167d83}.spouse-fields [data-spouse-age]{margin-top:18px}.spouse-fields [hidden]{display:none}.spouse-fields input[type=number]{max-width:220px;padding:12px;border:1px solid #cbd5d9;border-radius:10px}.spouse-options{margin-bottom:28px}.spouse-options [data-status]{min-height:1.5em}

.macro-progress { margin-bottom: 36px; }
.macro-progress .flow-progress { max-width: 640px; margin: 0; padding-bottom: 16px; gap: 24px; flex-wrap: nowrap; }
.macro-progress .flow-progress li { flex: none; }
.current-detail { margin: 10px 0 0; font-size: 13px; color: var(--cepe-body); }
.age-reassurance { border-left: 3px solid var(--cepe-yellow); padding-left: 18px; font-size: 16px; }
.data-purpose { max-width: 780px; margin: 0 0 28px; }
.data-purpose h2 { font-size: 20px; margin-bottom: 10px; }
@media (max-width: 600px) {
 .macro-progress { margin-bottom: 28px; }
 .macro-progress .flow-progress { gap: 12px; }
 .macro-progress .flow-progress li { font-size: 12px; flex: 1; }
 .age-layout { gap: 24px; }
}
