@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f5f3eb;
    --page-glow-top: radial-gradient(circle at 50% 0%, rgba(151, 209, 255, 0.16), rgba(151, 209, 255, 0) 42%);
    --page-glow-bottom: radial-gradient(circle at 50% 100%, rgba(255, 166, 102, 0.08), rgba(255, 166, 102, 0) 38%);

    --text: #0e1a33;
    --muted: #66758f;

    --primary: #003b95;
    --primary-dark: #002b72;
    --primary-soft: #dce8fb;

    --booking-blue-button: #0071c2;
    --booking-blue-button-dark: #005999;
    --booking-yellow: #febb02;
    --booking-yellow-dark: #e3a700;

    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --white: #ffffff;

    --danger: #c7372f;
    --danger-bg: #fdeeed;
    --success: #1d6a43;
    --success-bg: #eaf7ef;

    --input-bg: #ffffff;
    --input-line: #cfd8e3;
    --input-line-strong: #b8c7db;

    --shadow: 0 18px 40px rgba(19, 28, 45, 0.08);
    --shadow-soft: 0 8px 20px rgba(19, 28, 45, 0.06);
    --shadow-blue: 0 24px 54px rgba(0, 59, 149, 0.18);

    --radius-2xl: 40px;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --container: 1540px;
    --landing-container: 1460px;
    --questionnaire-container: 1460px;

    --control-height: 66px;
    --control-height-mobile: 58px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--text);
    background:
        var(--page-glow-top),
        var(--page-glow-bottom),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

.hidden {
    display: none !important;
}

.page-shell {
    width: min(100%, calc(var(--container) + 80px));
    margin: 0 auto;
    padding: 100px 28px 56px;
}

/* ==============================
   SITE HEADER
============================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 68px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 59, 149, 0.10);
    box-shadow: 0 2px 16px rgba(19, 28, 45, 0.06);
}

.site-header-inner {
    max-width: calc(var(--container) + 80px);
    height: 100%;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.site-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a5fd4 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 59, 149, 0.28);
}

.site-logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.site-logo-text strong {
    font-weight: 800;
    color: var(--primary);
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-badge {
    font-size: 13px;
    font-weight: 700;
    color: #627a9f;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(235, 241, 247, 0.9);
    border: 1px solid #d5deea;
    white-space: nowrap;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #d3dbe8;
    box-shadow: 0 10px 24px rgba(22, 42, 74, 0.08);
}

.lang-pill {
    min-width: 50px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 800;
    font-size: 15px;
    transition: all 0.2s ease;
}

.lang-pill.active {
    background: #3b82f6;
    color: var(--white);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.24);
}

.main-card {
    width: 100%;
    max-width: var(--landing-container);
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid rgba(0, 59, 149, 0.08);
    border-radius: var(--radius-2xl);
    padding: 34px 34px 44px;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.brand-badge {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(235, 241, 247, 0.95);
    border: 1px solid #d5deea;
    color: #627a9f;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.hero-landing {
    text-align: center;
    margin-bottom: 26px;
}

.hero-landing h1 {
    margin: 0 0 14px;
    font-size: clamp(44px, 5vw, 80px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--text);
}

.hero-landing p {
    max-width: 860px;
    margin: 0 auto;
    font-size: clamp(20px, 2.1vw, 30px);
    line-height: 1.45;
    color: #556b8b;
}

#questionnaireForm {
    width: 100%;
    max-width: var(--questionnaire-container);
    margin: 34px auto 30px;
    position: relative;
    padding: 28px 24px 24px;
    border-radius: 34px;
    background: linear-gradient(180deg, #003b95 0%, #0a4cb4 100%);
    box-shadow: var(--shadow-blue);
}

#questionnaireForm::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

#questionnaireForm > * {
    position: relative;
    z-index: 1;
}

.progress-card {
    border: 3px solid var(--booking-yellow);
    border-radius: 22px;
    padding: 22px 22px 18px;
    background: var(--white);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
}

.progress-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #dbe4f0;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #febb02 0%, #ffd04a 100%);
    transition: width 0.3s ease;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: start;
}

.progress-step {
    text-align: center;
    opacity: 0.48;
    transition: opacity 0.2s ease;
}

.progress-step.active,
.progress-step.done {
    opacity: 1;
}

.progress-step-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
    color: #aeb7c4;
    background: transparent;
    border: 1px solid #d7dfea;
}

.progress-step.active .progress-step-circle,
.progress-step.done .progress-step-circle {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 7px rgba(254, 187, 2, 0.26);
}

.progress-step-label {
    font-size: 16px;
    font-weight: 700;
    color: #7a889e;
}

.progress-step.active .progress-step-label,
.progress-step.done .progress-step-label {
    color: #334663;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.section-card {
    border: 3px solid var(--booking-yellow);
    border-radius: 22px;
    background: var(--white);
    padding: 28px 28px 26px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.section-card > h2,
.section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text);
}

.section-card > p,
.section-head p {
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.55;
    color: #5b7292;
}

.section-card-search {
    background: #ffffff;
}

/* step 1 - fixed to match your old good layout */
.step1-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 38px;
    align-items: start;
}

.step1-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.step1-col label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--text);
    min-height: 24px;
}

/* =========================
   CLEAN STEPPER (FINAL)
========================= */
.yellow-input-wrap {
    position: relative;
    border-radius: 14px;
    border: 2px solid var(--booking-yellow);
    background: #fff;
    height: 52px;
    display: flex;
    align-items: center;
}

.yellow-input-wrap input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 80px 0 16px;
    font-size: 16px;
    background: transparent;
}

.yellow-input-wrap button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #d5dde8;
    background: #f3f4f6;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    min-width: unset;
    min-height: unset;
    box-shadow: none;
}

.yellow-input-wrap button:first-of-type {
    right: 44px;
}

.yellow-input-wrap button:last-of-type {
    right: 8px;
}

.yellow-input-wrap button:hover {
    background: #e5e7eb;
}

.yellow-input-wrap button:active {
    transform: translateY(-50%) scale(0.95);
}

.step1-short-hint {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #627a9a;
    min-height: 24px;
}

.step1-bottom-note {
    display: block;
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.65;
    color: #627a9a;
}

.step1-bottom-note-left {
    grid-column: 1;
}

.step1-bottom-note-right {
    grid-column: 2;
}

.field-hint {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #627a9a;
    min-height: 24px;
}

.field {
    position: relative;
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--text);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea,
.member-grid > input[type="text"],
.member-grid > input[type="email"],
.member-grid > input:not([type]),
.member-grid > select {
    width: 100%;
    min-height: var(--control-height);
    border: 1px solid var(--input-line);
    border-radius: 14px;
    background: var(--input-bg);
    padding: 18px 18px;
    font-size: 18px;
    line-height: 1.35;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    appearance: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.01);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
    padding-top: 16px;
}

.field select,
.member-grid > select {
    background-image:
        linear-gradient(45deg, transparent 50%, #7b8798 50%),
        linear-gradient(135deg, #7b8798 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    padding-right: 44px;
}

.field input::placeholder,
.field textarea::placeholder,
.member-grid > input::placeholder {
    color: #929aa7;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.member-grid > input:focus,
.member-grid > select:focus {
    border-color: #4c8df6;
    box-shadow: 0 0 0 3px rgba(76, 141, 246, 0.18);
    background: #fff;
}

.field-hint-secondary {
    margin-top: 8px;
}

/* shared card layout */
.member-cards-grid,
#memberDetailsWrap,
#eligibilityDynamicWrap,
#incomeMembersWrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.member-card,
.info-card,
#memberDetailsWrap > div,
#eligibilityDynamicWrap > div,
#incomeMembersWrap > div {
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    background: #ffffff;
    padding: 20px 20px 18px;
    min-width: 0;
    box-shadow: var(--shadow-soft);
}

.member-card {
    display: flex;
    flex-direction: column;
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.member-card-header h3 {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--text);
}

.member-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
    border: 3px solid rgba(255,255,255,0.7);
}

.member-card h3,
.info-card h3,
#memberDetailsWrap > div > h3,
#eligibilityDynamicWrap > div > h3,
#incomeMembersWrap > div > h3 {
    margin: 0 0 16px;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--text);
}

/* step 3 like your preferred old display */
#eligibilityDynamicWrap .member-card {
    padding: 20px 20px 18px;
}

#eligibilityDynamicWrap .member-card h3 {
    margin-bottom: 16px;
}

#eligibilityDynamicWrap > .member-card:last-child,
#eligibilityDynamicWrap > div:last-child {
    grid-column: 1 / -1;
}

.member-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    align-items: start;
}

.info-card + .info-card {
    margin-top: 20px;
}

.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.toggle-row-even {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 10px;
}

.toggle-pill {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 56px;
    border-radius: 12px;
    border: 1px solid #d7dce6;
    background: #f5f7fa;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.toggle-pill input {
    position: absolute;
    opacity: 0;
    inset: 0;
    pointer-events: none;
}

.toggle-pill span {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    color: #294262;
}

.toggle-pill:hover {
    border-color: #95b5ea;
    background: #edf4ff;
}

.toggle-pill:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 18px rgba(0, 59, 149, 0.18);
}

.toggle-pill:has(input:checked) span {
    color: var(--white);
}

.static-status {
    min-height: var(--control-height);
    border: 1px solid var(--input-line);
    border-radius: 14px;
    background: #f4f8ff;
    padding: 18px 18px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #526a8a;
}

.checkbox-field {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    color: #324967;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.review-side-column {
    display: grid;
    gap: 20px;
}

.summary-content {
    display: grid;
    gap: 16px;
}

.summary-block,
.summary-content > div {
    padding: 16px;
    border-radius: 14px;
    background: #f9fbfd;
    border: 1px solid #dbe7f7;
}

.summary-block h4 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.2;
    color: #234160;
}

.summary-item {
    padding: 10px 0;
    font-size: 17px;
    line-height: 1.55;
    color: #334a6a;
    border-top: 1px solid #e8edf4;
}

.summary-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.summary-item:last-child {
    padding-bottom: 0;
}

.calc-box,
.calculation-box {
    display: grid;
    gap: 14px;
}

#calcBreakdown {
    display: grid;
    gap: 10px;
}

.calc-breakdown-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fbfd;
    border: 1px solid #dbe7f7;
    font-size: 17px;
    line-height: 1.5;
    color: #334a6a;
}

.calc-breakdown-item .label {
    flex: 1;
}

.calc-breakdown-item .value {
    white-space: nowrap;
    font-weight: 800;
    color: #203f61;
}

/* NEW: colors for calculation values */
.calc-breakdown-item .value.calc-positive {
    color: #003b95;
}

.calc-breakdown-item .value.calc-negative {
    color: #c7372f;
}

.calc-breakdown-item .value.calc-neutral {
    color: #000000;
}

.calc-result {
    padding: 18px 20px;
    border-radius: 14px;
    background: #eef5ff;
    border: 1px solid #cfe0fb;
}

.calc-result strong {
    display: block;
    font-size: 30px;
    line-height: 1.2;
    color: #000000;
}

.form-message {
    margin-top: 22px;
}

.inline-error-box,
.success-box {
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 18px;
    line-height: 1.5;
}

.inline-error-box {
    background: var(--danger-bg);
    border: 1px solid #efb6b1;
    color: var(--danger);
    font-weight: 700;
}

.success-box {
    background: var(--success-bg);
    border: 1px solid #b6dec5;
    color: var(--success);
}

.success-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.success-meta {
    font-size: 16px;
    line-height: 1.5;
}

.pdf-download-wrap .secondary-btn {
    width: 100%;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.action-right {
    margin-left: auto;
    display: inline-flex;
    gap: 14px;
}

.primary-btn,
.secondary-btn,
button,
.cta-link {
    min-width: 170px;
    min-height: 64px;
    padding: 0 26px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn,
button[type="submit"],
button#nextBtn {
    background: var(--booking-yellow);
    color: #1a2e4a;
    box-shadow: 0 14px 24px rgba(254, 187, 2, 0.32);
}

.primary-btn:hover,
button[type="submit"]:hover,
button#nextBtn:hover {
    background: var(--booking-yellow-dark);
    transform: translateY(-1px);
}

.secondary-btn,
button#prevBtn {
    background: #f5f7fa;
    color: #264564;
    border-color: #d4dce7;
}

.secondary-btn:hover,
button#prevBtn:hover {
    background: #edf2f7;
    transform: translateY(-1px);
}

.landing-section {
    margin-top: 26px;
    padding: 32px;
    border: 1px solid #dbe5f3;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.section-kicker {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c78a0;
}

.landing-section h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 3vw, 50px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
}

.landing-section p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.65;
    color: #5b7292;
}

.section-lead {
    max-width: 980px;
}

.media-after-form .video-wrap {
    border-radius: 24px;
    border: 1px solid rgba(0, 59, 149, 0.1);
    box-shadow: var(--shadow-soft);
}

.video-wrap {
    width: 100%;
    overflow: hidden;
    background: #dfe7f4;
}

.video-wrap video {
    width: 100%;
    aspect-ratio: 16 / 8.4;
    object-fit: cover;
    background: #000;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.grid-3 .card {
    min-height: 160px;
    padding: 22px 20px;
    border-radius: 18px;
    border: 1px solid #dbe5f3;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.grid-3 .card h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
}

.grid-3 .card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #5f7593;
}

.brochure-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brochure-card {
    min-height: 420px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 22px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.brochure-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5ff;
    color: var(--primary);
    font-size: 26px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px #d8e6fb;
}

.brochure-card h3 {
    margin: 0 0 14px !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: var(--text) !important;
}

.brochure-list {
    margin: 0;
    padding-left: 22px;
    list-style: disc;
}

.brochure-list li {
    margin: 0 0 11px;
    font-size: 16px;
    line-height: 1.6;
    color: #334a6a;
}

.why-grid .feature-card {
    min-height: 210px;
    padding: 24px 22px;
}

.why-grid .feature-card h3 {
    font-size: 26px;
}

.mini-chip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.mini-chip {
    min-height: 72px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    background: #f7fbff;
    border: 1px solid #dbe7f7;
    box-shadow: var(--shadow-soft);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
    color: #284563;
}

.project-grid .project-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
    border-color: #d5e4fb !important;
}

.stat-value {
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
    color: #375372;
}

.project-card p {
    font-size: 18px !important;
    line-height: 1.55 !important;
    font-weight: 700;
    color: #284563 !important;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-copy {
    flex: 1;
}

.cta-copy p {
    max-width: 840px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.footer {
    margin-top: 48px;
    padding: 36px 28px;
    border-top: 1px solid #dbe5f3;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a5fd4 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.footer-logo-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.footer-logo-text strong {
    font-weight: 800;
    color: var(--primary);
}

.footer-tagline {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #8a9ab5;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.6;
    color: #5d7392;
    font-weight: 600;
    margin-top: 4px;
}

.footer-dot {
    color: #b0bfcf;
    font-size: 18px;
    line-height: 1;
}

.footer a {
    color: #3d5475;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-powered {
    margin-top: 4px;
    color: #8a9ab5;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
}

.conditional-field.hidden {
    display: none !important;
}

.is-invalid,
.group-invalid,
.field .is-invalid,
.yellow-input-wrap .is-invalid {
    border-color: #d45d52 !important;
    box-shadow: 0 0 0 4px rgba(212, 93, 82, 0.10) !important;
}

.toggle-pill.group-invalid,
.field.group-invalid .toggle-pill {
    border-color: #d45d52 !important;
}

.field-error-text {
    margin-top: 10px;
    color: var(--danger);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

select[multiple] {
    min-height: 220px;
    padding: 10px 12px;
    background-image: none;
    overflow: auto;
    border: 1px solid var(--input-line-strong);
    border-radius: 14px;
}

select[multiple] option {
    padding: 12px 12px;
    border-radius: 10px;
    margin-bottom: 4px;
    line-height: 1.35;
}

select[multiple] option:checked {
    background: linear-gradient(0deg, rgba(0, 59, 149, 0.16), rgba(0, 59, 149, 0.16));
    color: var(--text);
}

@media (max-width: 1280px) {
    .page-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-card {
        max-width: 100%;
    }
}

@media (max-width: 1180px) {
    .grid-3,
    .brochure-grid,
    .mini-chip-grid,
    .step1-grid,
    .member-cards-grid,
    #memberDetailsWrap,
    #eligibilityDynamicWrap,
    #incomeMembersWrap,
    .member-grid,
    .contact-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .brochure-card {
        min-height: 0 !important;
    }

    .step1-bottom-note-left,
    .step1-bottom-note-right {
        grid-column: auto;
    }

    #eligibilityDynamicWrap > .member-card:last-child,
    #eligibilityDynamicWrap > div:last-child {
        grid-column: auto;
    }
}

@media (max-width: 980px) {
    .progress-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 18px;
    }

    .toggle-row-even {
        grid-template-columns: 1fr 1fr;
    }

    .hero-landing h1 {
        font-size: clamp(38px, 5vw, 56px);
    }

    .primary-btn,
    .secondary-btn,
    button,
    .cta-link {
        min-width: 150px;
        min-height: 58px;
        font-size: 18px;
    }

    .landing-section {
        padding: 26px 24px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 86px 10px 22px;
    }

    .site-header-inner {
        padding: 0 14px;
    }

    .header-badge {
        display: none;
    }

    .site-logo-text {
        font-size: 17px;
    }

    .main-card {
        padding: 14px 10px 18px;
        border-radius: 24px;
    }

    .brand-badge {
        font-size: 12px;
        padding: 7px 12px;
    }

    .hero-landing h1 {
        font-size: 34px;
        word-break: break-word;
    }

    .hero-landing p,
    .landing-section p,
    .section-card > p {
        font-size: 17px;
    }

    #questionnaireForm {
        padding: 16px 10px 14px;
        border-radius: 24px;
    }

    .landing-section,
    .progress-card,
    .section-card,
    .member-card,
    .info-card {
        border-radius: 18px;
        padding: 18px 14px 16px;
    }

    .progress-card {
        padding: 16px 12px 14px;
    }

    .progress-track {
        margin-bottom: 16px;
    }

    .progress-step-circle {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .progress-step-label {
        font-size: 13px;
    }

    .section-card > h2,
    .landing-section h2 {
        font-size: 28px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .section-kicker {
        font-size: 12px;
    }

    .step1-col label,
    .field label {
        font-size: 16px;
        min-height: 0;
    }

    .field input[type="text"],
    .field input[type="email"],
    .field input[type="tel"],
    .field select,
    .field textarea,
    .member-grid > input[type="text"],
    .member-grid > input[type="email"],
    .member-grid > input:not([type]),
    .member-grid > select,
    .static-status {
        min-height: var(--control-height-mobile);
        border-radius: 12px;
        padding: 15px 14px;
        font-size: 16px;
    }

    .field-hint,
    .step1-short-hint {
        min-height: 0;
    }

    .toggle-row-even {
        grid-template-columns: 1fr;
    }

    .toggle-pill {
        min-height: 50px;
        border-radius: 12px;
    }

    .toggle-pill span {
        min-height: 50px;
        font-size: 16px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-right {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: 1fr;
    }

    .primary-btn,
    .secondary-btn,
    button,
    .cta-link {
        width: 100%;
    }

    .calc-breakdown-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .calc-breakdown-item .value {
        white-space: normal;
    }

    .brochure-card h3,
    .why-grid .feature-card h3 {
        font-size: 24px !important;
    }

    .stat-value {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
.hero-subtitle {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #556b8b;
    max-width: 750px;
    margin: 0 auto;
}

		.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
}

.hero-subtitle span:first-child {
    white-space: normal;
    font-size: 16px;
    font-weight: 400;
}

.hero-subtitle .subline {
    display: block;
    font-size: 18px;        /* bigger */
    font-weight: 500;
    margin-top: 6px;
    color: #4b5563;
    white-space: normal;    /* allow wrapping on mobile */
    word-break: break-word;
}
/* center household section */
.section-card > h2,
.section-card > p {
    text-align: center;
}
.required-note-center {
    flex: 1;
    text-align: center;
    font-size: 15px;
    color: #ffffff;
    opacity: 0.85;
}
/* HEADER CONTROL WRAPPER */
.header-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* THEME SWITCH */
.theme-switch {
    display: inline-flex;
    background: rgba(255,255,255,0.7);
    border-radius: 999px;
    padding: 6px;
    border: 1px solid #d3dbe8;
}

/* BUTTON */
.theme-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    color: #5b6b85;
    min-width: unset;
    min-height: unset;
}

/* ACTIVE */
.theme-btn.active {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

/* DARK MODE */
body.dark {
    background: #0b1220;
    color: #e5e7eb;
}

body.dark .main-card {
    background: rgba(20, 30, 50, 0.9);
}

body.dark .section-card {
    background: #111827;
    border-color: #374151;
}

body.dark input {
    background: #1f2937;
    color: #fff;
}

/* ==============================
   COOKIE CONSENT BANNER
============================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.cookie-banner.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d3dbe8;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(19, 28, 45, 0.14);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 240px;
}

.cookie-banner-text strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #556b8b;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
    margin-left: 4px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    white-space: nowrap;
    min-width: 140px;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.cookie-btn-accept {
    background: var(--booking-blue-button);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 113, 194, 0.22);
}

.cookie-btn-decline {
    background: #f5f7fa;
    color: #264564;
    border: 1px solid #d4dce7;
}

@media (max-width: 720px) {
    .cookie-banner {
        padding: 0 10px 10px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 0;
    }
}

/* ==============================
   LEGAL PAGES (privacy, imprint)
============================== */
.legal-page {
    padding: 108px 24px 72px;
}

.legal-container {
    max-width: 920px;
    margin: 0 auto;
}

.legal-card {
    background: #fff;
    border: 1px solid rgba(0,59,149,0.08);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

.legal-card-head {
    padding: 32px 36px 22px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.legal-eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c78a0;
    font-weight: 700;
}

.legal-card-head h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--text);
}

.legal-content {
    padding: 16px 36px 36px;
}

.notice-section {
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.notice-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.notice-section h2 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--text);
}

.notice-section h3 {
    margin: 24px 0 10px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--text);
}

.notice-section p,
.notice-section li {
    color: #4a6280;
    line-height: 1.75;
    font-size: 16px;
}

.notice-section p { margin: 0 0 14px; }

.notice-section ul {
    margin: 8px 0 18px 20px;
    padding: 0;
}

.notice-section li { margin-bottom: 8px; }

.notice-section a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 720px) {
    .legal-page { padding: 88px 12px 48px; }
    .legal-card-head, .legal-content { padding-left: 18px; padding-right: 18px; }
    .notice-section h2 { font-size: 19px; }
    .notice-section h3 { font-size: 16px; }
}

/* ==============================
   WBS INCOME LIMIT INDICATOR
============================== */
.calc-result-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #627a9f;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.calc-result strong {
    display: block;
    font-size: 30px;
    line-height: 1.2;
    color: #000000;
}

#wbsIndicatorWrap {
    margin-top: 14px;
}

.wbs-indicator {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid;
    margin-bottom: 10px;
}

.wbs-indicator.wbs-exceeded {
    background: #fff5f5;
    border-color: #fca5a5;
}

.wbs-indicator.wbs-ok {
    background: #f0fdf4;
    border-color: #86efac;
}

.wbs-status {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.wbs-indicator.wbs-exceeded .wbs-status {
    color: #b91c1c;
}

.wbs-indicator.wbs-ok .wbs-status {
    color: #15803d;
}

.wbs-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #5b7292;
}

.wbs-disclaimer {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fbff;
    border: 1px solid #dbe5f3;
    font-size: 13px;
    line-height: 1.6;
    color: #1b2942;
    font-style: normal;
}

/* ── Success download button ── */
.success-download-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 11px 22px;
    border-radius: 12px;
    background: var(--booking-yellow);
    color: #1a2e4a;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.success-download-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* ── PLZ autofill highlight ── */
input.autofilled {
    background: #fffbe6 !important;
    border-color: #febb02 !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* ── Consent box (Step 6) ── */
.consent-box {
    margin-top: 16px;
    border: 1.5px solid #c8d4e8;
    border-radius: 14px;
    background: #f4f7fb;
    padding: 16px 18px;
}
.consent-box-title {
    font-size: 14px;
    font-weight: 800;
    color: #1b2e52;
    margin: 0 0 10px;
}
.consent-scroll-area {
    height: 200px;
    overflow-y: scroll;
    background: #ffffff;
    border: 1px solid #dde5f2;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 11.5px;
    line-height: 1.7;
    color: #444;
    white-space: pre-wrap;
    margin-bottom: 14px;
}
.consent-scroll-area::-webkit-scrollbar { width: 6px; }
.consent-scroll-area::-webkit-scrollbar-track { background: #f0f4fa; border-radius: 4px; }
.consent-scroll-area::-webkit-scrollbar-thumb { background: #b0c0d8; border-radius: 4px; }
.consent-agree-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #1b3a6b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: inherit;
}
.consent-agree-btn:hover {
    background: #254e94;
    transform: translateY(-1px);
}
.consent-agree-btn.agreed {
    background: #1a7a45;
    cursor: default;
    transform: none;
}
.consent-agreed-label {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1a7a45;
}