:root {
    --teal: #0C4A45;
    --teal-mid: #145E57;
    --gold: #C8A44A;
    --gold-light: #E2C47A;
    --cream: #F6F1E7;
    --cream-dark: #EDE6D6;
    --dark: #181818;
    --mid: #4B4B4B;
    --light-text: #8A8A8A;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Jost', system-ui, sans-serif;
    color: var(--dark);
    background-color: var(--cream);
}

.progress-bar-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid #e0d9cc;
    padding: 6px 0;
    min-height: 52px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.progress-step-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: 10px 4px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: #aaa;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.progress-step-btn span {
    font-size: 12px;
    margin-top: 6px;
}

.progress-step-btn.active {
    color: var(--teal);
    border-bottom: 3px solid var(--teal);
    font-weight: 600;
}

.progress-step-btn.completed {
    color: var(--gold);
    border-bottom: 3px solid var(--gold);
}

.progress-step-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #999;
    z-index: 0;
    transform: translateY(-50%);
}

.progress-step-btn:last-child::after {
    display: none;
}

.progress-step-btn.completed::after {
    background-color: var(--gold);
}

        /* Login Screen */
        .login-screen {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            background-color: var(--teal);
            padding: 1rem;
            text-align: center;
        }

        .login-logo { height: 80px; width: auto; margin: 0 auto 1.5rem auto; display: block; }

        .login-headline { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--white); margin-bottom: 0.5rem; }
        .login-subline { font-weight: 300; color: var(--white); margin-bottom: 2rem; opacity: 0.9; }
        .login-form { width: 100%; max-width: 400px; }
        .input-group { margin-bottom: 1rem; text-align: left; }
        .input-group label { display: block; margin-bottom: 0.5rem; color: var(--white); }

        .input-group input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--cream-dark);
            border-radius: 4px;
            font-family: 'Jost', system-ui, sans-serif;
            font-size: 1rem;
            background-color: var(--cream);
        }

        .input-group input:focus { outline: none; border-color: var(--teal-mid); }

        .btn {
            display: inline-block;
            padding: 0.5rem 1.25rem;
            border-radius: 4px;
            font-family: 'Jost', system-ui, sans-serif;
            font-weight: 500;
            font-size: 0.88rem;
            letter-spacing: 0.04em;
            text-decoration: none;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
        }

        .btn-gold { background-color: var(--gold); color: var(--dark); }
        .btn-gold:hover { background-color: var(--gold-light); }

        .error-message { color: var(--gold-light); margin: 1rem 0; min-height: 1.5rem; display: none; }

        .forgot-link { display: block; margin-top: 12px; color: var(--gold-light); font-size: 0.88rem; text-decoration: none; opacity: 0.85; }
        .forgot-link:hover { opacity: 1; text-decoration: underline; }

        .login-footer { margin-top: 2rem; color: var(--white); opacity: 0.7; font-size: 0.875rem; max-width: 400px; }

        .dashboard { display: flex; flex-direction: column; min-height: 100vh; }

        .nav-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 2rem;
            background-color: var(--teal);
        }

        .nav-user { display: flex; align-items: center; gap: 1rem; }
        .nav-user-name { color: var(--white); font-weight: 500; }

        .btn-logout {
            background: none;
            border: none;
            color: var(--white);
            font-family: 'Jost', system-ui, sans-serif;
            font-size: 0.875rem;
            cursor: pointer;
            opacity: 0.8;
        }

        .btn-logout:hover { opacity: 1; text-decoration: underline; }

        .dashboard-content { flex: 1; padding: 3rem 4rem; background-color: var(--cream); }

        .greeting { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; margin-bottom: 1rem; color: var(--dark); }

        .tier-badge {
            display: inline-block;
            padding: 0.5rem 1rem;
            background-color: var(--gold);
            color: var(--dark);
            border-radius: 20px;
            font-weight: 500;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }
        .tier-descriptor {
            color: var(--mid);
            font-size: 0.9rem;
            font-style: italic;
            margin: 0 0 2rem;
            line-height: 1.5;
        }

        .phases-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
            align-items: stretch;
        }

        .phase-card {
            background-color: var(--white);
            border-radius: 6px;
            padding: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            transition: opacity 0.2s;
            min-height: 160px;
        }

        .phase-card-locked { opacity: 0.75; }

        .phase-number {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: var(--teal);
            color: var(--white);
            font-weight: 500;
            margin-bottom: 1rem;
        }

        .phase-title { font-weight: 500; margin-bottom: 0.4rem; color: var(--dark); }
        .phase-description { font-size: 0.85rem; color: var(--mid); line-height: 1.5; margin: 0 0 0.75rem; min-height: 3.8rem; }
        .phase-status { font-size: 0.875rem; color: var(--mid); font-style: italic; }

        .status-complete    { color: var(--teal); }
        .status-in-progress { color: var(--gold); }
        .status-current     { color: var(--teal); }
        .status-locked      { color: var(--light-text); }
        .status-not-started { color: var(--light-text); }

        .dashboard-cta { text-align: center; margin-top: 2rem; }

        .dashboard-footer { text-align: center; color: var(--light-text); font-size: 0.875rem; margin-top: 3rem; padding: 0 2rem; }
        .legal-disclaimer { text-align: center; color: var(--light-text); font-size: 0.75rem; opacity: 0.75; margin: 0.4rem 0 0; padding: 0 2rem; font-style: italic; }

        .phase-screen {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            height: 100vh;
        }
        .phase-content { flex: 1; padding: 2rem 2rem 2rem 0; background-color: var(--cream); }

        .phase-headline { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--dark); }
        .phase-subheadline { font-size: 0.875rem; color: var(--light-text); margin-bottom: 2.5rem; }

        .phase-progress { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
        .phase-step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

        .phase-step-number {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: var(--light-text);
            color: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
        }

        .phase-step-number.active { background-color: var(--teal); }
        .phase-step-label { font-size: 0.75rem; color: var(--light-text); }
        .phase-step-label.active { color: var(--teal); font-weight: 500; }

        .phase-form { max-width: 600px; margin: 0 auto; }
        .form-group { margin-bottom: 1.5rem; }

        .form-group label { display: block; margin-bottom: 0.5rem; color: var(--dark); font-size: 0.875rem; }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--cream-dark);
            border-radius: 4px;
            font-family: 'Jost', system-ui, sans-serif;
            font-size: 1rem;
            background-color: var(--white);
        }

        .form-group select {
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 1rem;
        }

        .help-text { font-size: 0.75rem; color: var(--light-text); margin-top: 0.25rem; }

        .info-box { background-color: #f5f5f5; padding: 1rem; border-radius: 6px; margin: 1.5rem 0; font-size: 0.875rem; color: var(--mid); }

        .folder-block {
            background-color: var(--cream);
            border-left: 3px solid var(--teal);
            border-radius: 4px;
            padding: 1rem 1.25rem;
            margin: 1rem 0;
            font-size: 0.875rem;
            color: var(--dark);
            line-height: 2;
        }

        .folder-block .folder-root { font-weight: 500; }
        .folder-block .folder-item { padding-left: 1.5rem; color: var(--mid); }

        .form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; }

        .back-link { color: var(--light-text); font-size: 0.875rem; text-decoration: none; cursor: pointer; }
        .back-link:hover { text-decoration: underline; }

        .add-property-link { color: var(--teal); font-size: 0.875rem; text-decoration: none; cursor: pointer; }
        .add-property-link:hover { text-decoration: underline; }

        .phase1-blocks {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .phase1-block { background-color: var(--white); border-radius: 6px; padding: 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
        .phase1-block-title { font-weight: 500; margin-bottom: 0.75rem; color: var(--dark); }
        .phase1-block-text { font-size: 0.875rem; color: var(--mid); line-height: 1.6; }
        .phase1-cta { text-align: center; margin-top: 2rem; }
        .phase1-disclaimer { text-align: center; color: var(--light-text); font-size: 0.8rem; margin-top: 1rem; }

        @media (max-width: 768px) {
            .nav-bar { padding: 1rem; }
            .dashboard-content, .phase-content { padding: 1.5rem; }
            .phases-grid, .phase1-blocks { grid-template-columns: 1fr; }
        }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--teal);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* Sticky progress bar */
.progress-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    gap: 0;
}

.review-section { border:1px solid #e0d9cc; border-radius:8px; margin-bottom:1rem; overflow:hidden; }
.review-section-header { display:flex; align-items:center; padding:1rem 1.25rem; cursor:pointer; background:var(--white); user-select:none; }
.review-section-header:hover { background:var(--cream-dark); }
.review-section-title { flex:1; font-weight:600; font-size:0.95rem; color:var(--dark); }
.review-section-edit { font-size:0.8rem; color:var(--teal); font-weight:500; margin-right:1rem; text-decoration:none; }
.review-section-edit:hover { text-decoration:underline; }
.review-section-chevron { font-size:0.75rem; color:var(--mid); transition:transform 0.2s; }
.review-section.open .review-section-chevron { transform:rotate(180deg); }
.review-section-body { padding:1.25rem; background:var(--off-white); border-top:1px solid #e0d9cc; }
.review-row { display:flex; gap:1rem; margin-bottom:0.75rem; font-size:0.875rem; }
.review-label { color:var(--mid); min-width:160px; flex-shrink:0; }
.review-value { color:var(--dark); font-weight:500; }
.review-subsection { margin-top:1rem; padding-top:1rem; border-top:1px solid #e0d9cc; }
.review-subsection-title { font-weight:600; font-size:0.85rem; color:var(--teal); margin-bottom:0.75rem; }
.review-sub-subsection { margin-left:1rem; margin-top:0.75rem; padding:0.6rem 0.75rem; background:#f8f5f0; border-left:2px solid var(--cream-dark); border-radius:2px; }
.review-dist-sub { margin-left:1.25rem; padding-top:0.15rem; opacity:0.8; }

.nav-dashboard-link { color: #f5f0e8 !important; font-size: 0.85rem; opacity: 1; text-decoration: none; margin-right: 1rem; font-weight: 500; }
.nav-dashboard-link:hover { opacity: 1; text-decoration: underline; }
.phase-sidebar .nav-dashboard-link { color: var(--teal) !important; opacity: 1; font-size: 0.85rem; margin-top: 1rem; display: block; }
.phase-layout { display: flex; align-items: flex-start; }
.phase-sidebar { width: 220px; flex-shrink: 0; padding: 2rem 1.5rem 2rem 2rem; position: sticky; top: 110px; align-self: flex-start; }
.phase-sidebar .phase-headline { font-size: 1.4rem; margin-bottom: 0.25rem; }
.phase-sidebar .phase-subheadline { font-size: 0.8rem; color: var(--mid); margin-bottom: 1.5rem; }
.phase-sidebar .phase-dashboard-link { font-size: 0.8rem; color: var(--teal); text-decoration: none; display: block; }
.phase-sidebar .phase-dashboard-link:hover { text-decoration: underline; }

/* Will type chooser — Phase 1 Section B */
.will-type-section { max-width: 600px; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--cream-dark); }
.will-type-heading { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--dark); margin-bottom: 0.5rem; }
.will-type-intro { font-size: 0.875rem; color: var(--mid); margin-bottom: 1.25rem; line-height: 1.6; }
.will-callout { background: #f0f7f6; border-left: 3px solid var(--teal); border-radius: 4px; padding: 0.875rem 1.125rem; font-size: 0.875rem; color: var(--mid); line-height: 1.6; margin-bottom: 1.5rem; }
.will-type-cards { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
.will-type-card { flex: 1; border: 2px solid var(--cream-dark); border-radius: 6px; padding: 1.25rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; display: block; }
.will-type-card:hover { border-color: var(--teal); }
.will-type-card input[type=radio] { display: none; }
.will-type-card:has(input:checked) { border-color: var(--teal); background: #f0f7f6; }
.will-type-card-title { font-weight: 600; font-size: 0.95rem; color: var(--dark); margin-bottom: 0.5rem; }
.will-type-card-desc { font-size: 0.8rem; color: var(--mid); line-height: 1.5; }
.will-type-error { color: #c0392b; font-size: 0.875rem; margin-top: 0.75rem; }
.will-type-lock-msg { background: #fff8e6; border: 1px solid var(--gold); border-radius: 4px; padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--mid); margin-top: 1rem; line-height: 1.5; }
@media (max-width: 600px) { .will-type-cards { flex-direction: column; } }

/* Mirror will — Phase 2 dashboard sub-rows */
.mirror-person-rows { margin-top: 1rem; border-top: 1px solid var(--cream-dark); }
.mirror-person-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--cream-dark); font-size: 0.875rem; }
.mirror-person-row-clickable { cursor: pointer; }
.mirror-person-row-clickable:hover { background: var(--cream-dark); margin: 0 -1.5rem; padding: 0.6rem 1.5rem; }
.mirror-person-row-locked { opacity: 0.45; cursor: not-allowed; }
.mirror-person-name { font-weight: 500; color: var(--dark); }
.mirror-person-status { font-size: 0.8rem; color: var(--light-text); }
.mirror-person-instruction { font-size: 0.8rem; color: var(--teal); opacity: 0.75; font-style: italic; padding: 0.5rem 0 1rem; margin: 0; line-height: 1.5; }
.input-error { border-color: var(--error, #c0392b) !important; }

.radio-group { display: flex; gap: 1.5rem; padding: 0.4rem 0; }
.radio-option { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--dark); cursor: pointer; font-weight: 400; }
.radio-option input[type="radio"] { accent-color: var(--teal); cursor: pointer; }
.radio-group.input-error { padding: 0.4rem 0.6rem; border: 1px solid var(--error, #c0392b); border-radius: 4px; }

/* Onboarding (one-time, post-login pre-dashboard) */
.onboarding-layout { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.onboarding-header { text-align: center; margin-bottom: 2.5rem; }
.onboarding-eyebrow { font-size: 0.78rem; font-weight: 500; color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 0.5rem; }
.onboarding-title { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; color: var(--teal); margin: 0 0 1rem; }
.onboarding-intro { color: var(--mid); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.onboarding-block { background: var(--white); border-radius: 8px; padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.onboarding-block-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--teal); margin: 0 0 0.75rem; }
.onboarding-block-text { color: var(--mid); font-size: 0.9rem; line-height: 1.6; margin: 0 0 1rem; }
.onboarding-checkbox-row { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0; cursor: pointer; font-size: 0.9rem; color: var(--dark); line-height: 1.5; }
.onboarding-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--teal); cursor: pointer; flex-shrink: 0; }
.onboarding-checkbox-row + .onboarding-checkbox-row { border-top: 1px solid var(--cream-dark); }
.onboarding-cta { text-align: center; margin-top: 2rem; }
.onboarding-cta .btn { font-size: 1rem; padding: 0.75rem 2rem; }
.onboarding-cta .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.onboarding-cta-help { color: var(--light-text); font-size: 0.8rem; margin: 0.75rem 0 0; font-style: italic; }
.onboarding-error { background: #FBE9E7; border: 1px solid #C0392B; color: #882F22; padding: 0.6rem 0.9rem; border-radius: 4px; font-size: 0.85rem; margin: 0 0 1rem; }

/* Tier 3 upsell modal */
.upsell-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.upsell-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 74, 69, 0.55); backdrop-filter: blur(2px); }
.upsell-modal-card { position: relative; background: var(--white); border-radius: 10px; max-width: 620px; width: 100%; padding: 2.5rem 3rem; box-shadow: 0 12px 40px rgba(0,0,0,0.25); max-height: 90vh; overflow-y: auto; }
.upsell-modal-eyebrow { font-size: 0.78rem; font-weight: 500; color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 0.6rem; }
.upsell-modal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.85rem; font-weight: 600; color: var(--teal); margin: 0 0 1.25rem; line-height: 1.2; }
.upsell-modal-reasons { margin: 0 0 1.5rem 1.25rem; padding: 0; color: var(--dark); font-size: 0.95rem; line-height: 1.65; }
.upsell-modal-reasons li { margin-bottom: 0.5rem; }
.upsell-modal-body { color: var(--mid); font-size: 0.95rem; line-height: 1.65; margin: 0 0 1.75rem; }
.upsell-modal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; align-items: center; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--cream-dark); }
.upsell-modal-actions .btn { flex: 0 0 auto; }
.btn-secondary { display: inline-block; padding: 0.55rem 1.1rem; border: 1px solid var(--teal); background: var(--white); color: var(--teal); font-family: inherit; font-weight: 500; font-size: 0.88rem; border-radius: 4px; cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s; }
.btn-secondary:hover { background: var(--teal); color: var(--white); }
.btn-link { background: none; border: none; color: var(--mid); font-family: inherit; font-size: 0.85rem; cursor: pointer; padding: 0.5rem 0.5rem; text-decoration: underline; }
.btn-link:hover { color: var(--teal); }

/* Support — floating help button + slide-in panel (FAQ/Help) */
.support-fab {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 990;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold); color: var(--dark);
    border: none; box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    font-family: 'Cormorant Garamond', serif; font-size: 1.85rem; font-weight: 600;
    cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.22); }
.support-fab:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.support-panel { position: fixed; inset: 0; z-index: 1010; display: block; }
.support-panel-backdrop { position: absolute; inset: 0; background: rgba(12, 74, 69, 0.4); backdrop-filter: blur(2px); }
.support-panel-card {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 420px;
    background: var(--white); box-shadow: -10px 0 30px rgba(0,0,0,0.18);
    padding: 1.75rem 1.75rem 1.5rem;
    overflow-y: auto;
    animation: support-panel-slide 0.22s ease-out;
}
@keyframes support-panel-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.support-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.support-panel-title { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 600; color: var(--teal); margin: 0; line-height: 1.25; }
.support-panel-close { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--mid); cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 4px; }
.support-panel-close:hover { background: var(--cream-dark); color: var(--dark); }
.support-panel-blurb { color: var(--mid); font-size: 0.92rem; line-height: 1.6; margin: 0 0 1.25rem; }
.support-panel-whatsapp { background: var(--off-white); border-radius: 6px; padding: 1rem 1.1rem; margin-bottom: 1.25rem; text-align: center; }
.support-panel-whatsapp .btn { display: inline-block; }
.support-panel-or { font-size: 0.78rem; color: var(--light-text); font-style: italic; margin: 0.65rem 0 0; }
.support-form .form-group { margin-bottom: 0.9rem; }
.support-form label { display: block; font-weight: 500; font-size: 0.85rem; color: var(--dark); margin-bottom: 0.35rem; }
.support-form input, .support-form select, .support-form textarea {
    width: 100%; padding: 0.55rem 0.7rem;
    font-family: inherit; font-size: 0.9rem;
    border: 1px solid var(--cream-dark); border-radius: 4px;
    background: var(--off-white); color: var(--dark);
    box-sizing: border-box; resize: vertical;
}
.support-form input:focus, .support-form select:focus, .support-form textarea:focus {
    outline: none; border-color: var(--teal); background: var(--white);
}
.support-form-submit { width: 100%; margin-top: 0.5rem; }
.support-form-error { background: #FBE9E7; border: 1px solid #C0392B; color: #882F22; padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 0.82rem; margin: 0 0 0.6rem; }
.support-confirmation { text-align: center; padding: 1.5rem 0.5rem; }
.support-confirmation-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--teal); margin: 0 0 0.75rem; }

/* ── FAQ panel (Stage 1) ──────────────────────────────────────── */

.faq-search-wrap { margin-bottom: 1.25rem; }
.faq-search-input {
    width: 100%; padding: 0.7rem 0.9rem;
    font-family: inherit; font-size: 0.95rem;
    border: 1px solid var(--cream-dark); border-radius: 6px;
    background: var(--off-white); color: var(--dark);
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}
.faq-search-input:focus {
    outline: none; border-color: var(--teal); background: var(--white);
}
.faq-search-input::placeholder { color: var(--light-text); font-style: italic; }

.faq-answer-area { margin-bottom: 1.25rem; }
.faq-answer-loading { color: var(--mid); font-size: 0.9rem; font-style: italic; padding: 0.8rem 0; }
.faq-answer-error {
    background: #FBE9E7; border: 1px solid #C0392B; color: #882F22;
    padding: 0.6rem 0.8rem; border-radius: 4px; font-size: 0.85rem;
}
.faq-answer-content {
    background: var(--off-white); border-left: 3px solid var(--gold);
    padding: 0.9rem 1.1rem; border-radius: 0 4px 4px 0;
}
.faq-answer-text { color: var(--dark); font-size: 0.92rem; line-height: 1.6; margin: 0 0 0.6rem; white-space: pre-wrap; }
.faq-answer-text:last-child { margin-bottom: 0; }
.faq-answer-upsell {
    margin-top: 0.85rem; padding: 0.65rem 0.85rem;
    background: var(--white); border: 1px dashed var(--gold);
    border-radius: 4px; font-size: 0.85rem; color: var(--mid);
}
.faq-answer-upsell strong { color: var(--teal); }
.faq-answer-matched { margin-top: 0.85rem; }
.faq-answer-matched-title {
    font-family: 'Cormorant Garamond', serif; font-size: 0.92rem; font-weight: 600;
    color: var(--mid); margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.faq-pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.faq-pill-list li { margin: 0; }
.faq-pill {
    display: inline-block; padding: 0.3rem 0.7rem;
    background: var(--white); border: 1px solid var(--cream-dark);
    border-radius: 999px; font-size: 0.78rem; color: var(--teal);
    cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.faq-pill:hover { background: var(--cream); border-color: var(--gold); }

.faq-popular { margin-bottom: 1.25rem; }
.faq-popular-title {
    font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600;
    color: var(--teal); margin: 0 0 0.55rem;
}
.faq-popular-list { list-style: none; padding: 0; margin: 0; }
.faq-popular-list li {
    border-bottom: 1px solid var(--cream-dark); padding: 0;
}
.faq-popular-list li:last-child { border-bottom: none; }
.faq-popular-question {
    width: 100%; text-align: left; background: none; border: none;
    padding: 0.65rem 0; cursor: pointer;
    color: var(--dark); font-size: 0.9rem; line-height: 1.45;
    display: flex; align-items: center; gap: 0.5rem;
    font-family: inherit;
}
.faq-popular-question::before { content: '▸'; color: var(--gold); flex-shrink: 0; transition: transform 0.15s; }
.faq-popular-question[aria-expanded="true"]::before { transform: rotate(90deg); }
.faq-popular-question:hover { color: var(--teal); }
.faq-popular-answer {
    padding: 0 0 0.85rem 1.1rem;
    color: var(--dark); font-size: 0.88rem; line-height: 1.6;
    white-space: pre-wrap;
}
.faq-popular-answer[hidden] { display: none; }

/* Platform-hulp sits between popular FAQs and the form CTA, visually
   nested with a top divider so it reads as a related-but-distinct group. */
.faq-platform-help {
    border-top: 1px solid var(--cream-dark);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}

.faq-to-form-cta {
    border-top: 1px solid var(--cream-dark); padding-top: 1rem;
    text-align: center;
}
.faq-to-form-text { color: var(--mid); font-size: 0.85rem; margin: 0 0 0.4rem; }

.btn-link {
    background: none; border: none; padding: 0;
    color: var(--teal); cursor: pointer;
    font-family: inherit; font-size: 0.9rem; font-weight: 500;
    text-decoration: underline; text-underline-offset: 2px;
}
.btn-link:hover { color: var(--teal-mid); }

/* ── Form stage (Stage 2) ─────────────────────────────────────── */

.form-back-link { margin-bottom: 1rem; display: inline-block; }

@media (max-width: 600px) {
    .support-panel-card { max-width: 100%; }
    .support-fab { bottom: 1rem; right: 1rem; }
}

/* Documents — Dashboard Phase 3 */
.documents-layout { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 4rem; font-family: 'Jost', system-ui, sans-serif; }
.documents-back-link { display: inline-block; font-size: 0.875rem; color: var(--teal); text-decoration: none; margin-bottom: 1.5rem; }
.documents-back-link:hover { text-decoration: underline; }
.documents-title { font-family: 'Cormorant Garamond', serif; font-size: 2.25rem; font-weight: 600; color: var(--dark); text-align: center; margin: 0 0 0.5rem; }
.documents-subtitle { text-align: center; color: var(--mid); font-size: 0.95rem; margin: 0 0 2rem; line-height: 1.55; }
.documents-divider { height: 1px; background: var(--cream-dark); margin: 2rem 0; }
.documents-format-box { background: var(--off-white); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; padding: 1.25rem 1.5rem; margin: 0 0 0.5rem; }
.documents-format-title { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--teal); margin: 0 0 0.75rem; }
.documents-format-list { margin: 0 0 0.75rem 1.25rem; padding: 0; color: var(--dark); font-size: 0.9rem; line-height: 1.65; }
.documents-format-list li { margin-bottom: 0.3rem; }
.documents-format-note { color: var(--mid); font-size: 0.82rem; line-height: 1.5; margin: 0; font-style: italic; }

/* Execution / Phase 5 (Boek uw afspraak) */
.execution-layout { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.execution-tier-block { background: var(--white); border-radius: 8px; padding: 1.75rem 2rem; margin: 0 0 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.execution-block-title { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; color: var(--teal); margin: 0 0 1rem; line-height: 1.25; }
.execution-block-text { color: var(--mid); font-size: 0.95rem; line-height: 1.65; margin: 0 0 1rem; }
.execution-block-subtitle { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--teal); margin: 1.5rem 0 0.75rem; }
.execution-steplist { margin: 0 0 1.25rem 1.4rem; padding: 0; color: var(--dark); font-size: 0.95rem; line-height: 1.7; }
.execution-steplist li { margin-bottom: 0.6rem; }
.execution-steplist li strong { color: var(--teal); }
.execution-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.execution-help-text { color: var(--light-text); font-size: 0.8rem; font-style: italic; margin: 0.75rem 0 0; line-height: 1.5; }
.execution-cta { text-align: center; margin-top: 2rem; }
.execution-cta-help { color: var(--mid); font-size: 0.9rem; line-height: 1.55; max-width: 520px; margin: 0 auto 1.25rem; }
.folder-section-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--dark); margin: 0 0 0.5rem; }
.folder-section-help { font-size: 0.85rem; color: var(--mid); line-height: 1.55; margin: 0 0 1rem; }
.folder-input { width: 100%; padding: 0.75rem 0.9rem; font-family: 'Jost', system-ui, sans-serif; font-size: 0.9rem; border: 1px solid var(--cream-dark); border-radius: 4px; background: var(--white); color: var(--dark); box-sizing: border-box; }
.folder-input:focus { outline: none; border-color: var(--teal); }
.person-section-header { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--teal); margin: 0 0 1.25rem; }
.checklist-row { background: var(--white); border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: 0.85rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; gap: 0.9rem; align-items: flex-start; }
.checklist-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--teal); cursor: pointer; flex-shrink: 0; }
.checklist-row-body { flex: 1; min-width: 0; }
.checklist-row-label { font-size: 0.95rem; font-weight: 500; color: var(--dark); margin: 0 0 0.25rem; }
.suggested-filename { font-family: 'Courier New', monospace; font-size: 0.78rem; color: var(--mid); font-style: italic; margin: 0 0 0.6rem; word-break: break-all; }
.checklist-note-input { width: 100%; padding: 0.5rem 0.7rem; font-family: 'Jost', system-ui, sans-serif; font-size: 0.85rem; border: 1px solid var(--cream-dark); border-radius: 4px; background: var(--off-white); color: var(--dark); box-sizing: border-box; }
.checklist-note-input:focus { outline: none; border-color: var(--teal); background: var(--white); }
.documents-cta { text-align: center; margin-top: 2.5rem; }
