/* ==========================================================================
   Insurance Application Form Styles (MTL Life Design System)
   ========================================================================== */

.app-form-hero {
    background: linear-gradient(135deg, var(--c-primary, #c8006a) 0%, #800043 100%);
    color: #fff;
    padding: 3rem 1rem 2rem;
    text-align: center;
}

.app-form-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff;
}

.app-form-hero p {
    font-size: 1rem;
    opacity: 0.92;
    margin: 0;
}

.app-form-container {
    max-width: 900px;
    margin: -1.5rem auto 3rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.app-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    overflow: hidden;
}

@media (max-width: 640px) {
    .app-form-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }
    .app-form-hero {
        padding: 2rem 1rem 1.5rem;
    }
    .app-form-hero h1 {
        font-size: 1.5rem;
    }
}

/* Stepper Indicator */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    padding: 0;
    list-style: none;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.stepper__step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: default;
}

.stepper__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.stepper__label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    font-weight: 500;
}

.stepper__step.is-active .stepper__circle {
    border-color: var(--c-primary, #c8006a);
    background: var(--c-primary, #c8006a);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(200, 0, 106, 0.18);
}

.stepper__step.is-active .stepper__label {
    color: var(--c-primary, #c8006a);
    font-weight: 700;
}

.stepper__step.is-done .stepper__circle {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
}

.stepper__step.is-done .stepper__label {
    color: #10b981;
}

@media (max-width: 640px) {
    .stepper__circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .stepper::before {
        top: 16px;
    }
    .stepper__label {
        font-size: 0.7rem;
    }
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-heading {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.step-heading h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-heading p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Grids and Controls */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-row--3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-row--full {
    grid-template-columns: 1fr;
}

@media (max-width: 640px) {
    .form-row, .form-row--3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-field label .req {
    color: #ef4444;
    margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--c-primary, #c8006a);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 0, 106, 0.12);
}

.form-field .hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.form-field.has-error input,
.form-field.has-error select {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-field.has-error .error-text {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

/* Radio Cards */
.radio-cards {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.radio-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    background: #fff;
}

.radio-card input {
    width: auto;
    margin: 0;
    accent-color: var(--c-primary, #c8006a);
}

.radio-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.radio-card.is-selected {
    border-color: var(--c-primary, #c8006a);
    background: rgba(200, 0, 106, 0.04);
}

/* Previous Insurances Section */
.prev-ins-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.prev-ins-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prev-ins-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #334155;
    font-weight: 700;
}

.prev-ins-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.btn-remove-item {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-remove-item:hover {
    background: #fecaca;
}

/* Health Questions UI */
.health-q-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s;
}

.health-q-card:hover {
    border-color: #cbd5e1;
}

.health-q-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.health-q-number {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: var(--c-primary, #c8006a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.health-q-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1e293b;
    margin-top: 3px;
}

.health-q-toggle {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-toggle-ans {
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #475569;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle-ans:hover {
    border-color: #94a3b8;
}

.btn-toggle-ans.is-yes {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.btn-toggle-ans.is-no {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.health-q-details {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e2e8f0;
    display: none;
}

.health-q-details.is-open {
    display: block;
}

/* Checkbox Grid (Diseases / Symptoms) */
.options-group-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    margin: 1rem 0 0.5rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--c-primary, #c8006a);
}

.options-group-title:first-child {
    margin-top: 0;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #334155;
    transition: all 0.2s;
    user-select: none;
}

.checkbox-label input {
    accent-color: var(--c-primary, #c8006a);
}

.checkbox-label:hover {
    background: #f1f5f9;
}

.checkbox-label.is-checked {
    background: #fff1f2;
    border-color: #fca5a5;
    color: #991b1b;
    font-weight: 600;
}

/* Sports Selection Limit 3 */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem;
}

/* =====================================================================
   Smile Club Premium Redesign (Step 3)
   ===================================================================== */
.smile-hero-card {
    background: linear-gradient(135deg, #fff1f5 0%, #ffe4eb 50%, #ffffff 100%);
    border: 1px solid #fecdd3;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px -2px rgba(225, 29, 72, 0.08);
}

.smile-hero-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.smile-hero-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
    flex-shrink: 0;
}

.smile-hero-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.smile-hero-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #9f1239;
    letter-spacing: -0.01em;
}

.smile-hero-tag {
    font-size: 0.82rem;
    color: #64748b;
}

.smile-free-badge {
    background: #e11d48;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

.smile-hero-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Decision Cards Grid */
.smile-choice-section {
    margin-bottom: 1.75rem;
}

.smile-choice-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.85rem;
    display: block;
}

.smile-decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.smile-choice-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    user-select: none;
}

.smile-choice-card:hover {
    border-color: #fda4af;
    background: #fff5f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(225, 29, 72, 0.12);
}

.smile-choice-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
    background: #ffffff;
}

.smile-radio-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s;
}

.smile-choice-content {
    flex: 1;
}

.smile-choice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.smile-choice-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.smile-choice-title {
    font-size: 1.02rem;
    color: #1e293b;
    font-weight: 700;
}

.smile-recommend-tag {
    background: #ffe4e6;
    color: #be123c;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
}

.smile-choice-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Selected state: Yes */
.smile-choice-card.is-selected.is-yes {
    border-color: #e11d48;
    background: #fff5f7;
    box-shadow: 0 8px 24px -4px rgba(225, 29, 72, 0.18);
}

.smile-choice-card.is-selected.is-yes .smile-choice-indicator {
    border-color: #e11d48;
    background: #e11d48;
}

.smile-choice-card.is-selected.is-yes .smile-radio-circle {
    background: #ffffff;
}

.smile-choice-card.is-selected.is-yes .smile-choice-title {
    color: #9f1239;
}

/* Selected state: No */
.smile-choice-card.is-selected.is-no {
    border-color: #64748b;
    background: #f8fafc;
    box-shadow: 0 4px 16px -3px rgba(100, 116, 139, 0.15);
}

.smile-choice-card.is-selected.is-no .smile-choice-indicator {
    border-color: #64748b;
    background: #64748b;
}

.smile-choice-card.is-selected.is-no .smile-radio-circle {
    background: #ffffff;
}

/* Member Preferences Card */
.smile-details-card {
    background: #ffffff;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 20px -2px rgba(225, 29, 72, 0.06);
    animation: smileFadeIn 0.3s ease;
}

@keyframes smileFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.smile-details-header {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.smile-details-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff1f2;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.smile-details-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.smile-details-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Family Box */
.smile-family-box {
    background: #fafafa;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 1.35rem;
    margin-bottom: 1.5rem;
}

.smile-field-header {
    margin-bottom: 0.85rem;
}

.smile-field-header label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.field-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.field-hint {
    font-size: 0.82rem;
    color: #64748b;
}

.children-input-wrap {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}

.children-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-stepper {
    width: 42px;
    height: 42px;
    background: #f8fafc;
    border: none;
    font-size: 1.35rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-stepper:hover {
    background: #ffe4e6;
    color: #be123c;
}

.btn-stepper:active {
    transform: scale(0.94);
}

.children-stepper input {
    width: 56px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
    pointer-events: none;
}

.children-quick-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip-child {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip-child:hover {
    border-color: #fda4af;
    color: #be123c;
    background: #fff5f7;
}

.chip-child.is-active {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

/* Activities Box */
.smile-activities-box {
    margin-top: 1rem;
}

.lifestyle-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sports-counter-badge {
    font-size: 0.82rem;
    font-weight: 800;
    color: #be123c;
    background: #ffe4e6;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #fecdd3;
    transition: all 0.25s;
    letter-spacing: -0.01em;
}

.sports-counter-badge.is-full {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

/* Lifestyle Grid & Chips */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.lifestyle-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
}

.lifestyle-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-emoji {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.chip-text {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.35;
    flex: 1;
}

.chip-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.2s;
    background: #ffffff;
}

.lifestyle-chip:hover {
    border-color: #fda4af;
    background: #fff5f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.08);
}

.lifestyle-chip.is-checked {
    border-color: #e11d48;
    background: #fff1f2;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.12);
}

.lifestyle-chip.is-checked .chip-text {
    color: #9f1239;
    font-weight: 700;
}

.lifestyle-chip.is-checked .chip-check {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
}

.lifestyle-chip.is-disabled:not(.is-checked) {
    opacity: 0.45;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Step 5 reCAPTCHA Container */
.recaptcha-step5-wrap {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.recaptcha-step5-wrap .recaptcha-box {
    display: flex;
    justify-content: flex-start;
}

.recaptcha-step5-wrap .recaptcha-note {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.4rem;
}

/* Consent Boxes / FATCA */
.fatca-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.fatca-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.fatca-box p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

/* Signature Canvas */
.signature-wrap {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
    padding: 1rem;
    position: relative;
    margin-bottom: 1rem;
}

.signature-canvas {
    width: 100%;
    max-width: 600px;
    height: 180px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
}

.signature-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Summary Card (Step 5) */
.summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
}

@media (max-width: 640px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-item .s-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.summary-item .s-val {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
}

/* Buttons and Navigation */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.step-actions .btn {
    min-width: 130px;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-icon-ok {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.modal-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #1e293b;
}

.modal-ref-box {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--c-primary, #c8006a);
    letter-spacing: 0.5px;
    margin: 1rem 0 1.25rem;
}

/* Expandable Section for Question Groups */
.expandable-section {
    margin-top: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.expand-header {
    padding: 0.65rem 1rem;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    user-select: none;
    transition: background 0.2s;
}

.expand-header:hover {
    background: #f1f5f9;
}

.expand-icon {
    font-size: 0.75rem;
    color: #64748b;
    transition: transform 0.25s ease;
}

.expand-icon.open {
    transform: rotate(180deg);
}

.expand-content {
    display: none;
    padding: 0.75rem 1rem;
    background: #fff;
}

.expand-content.is-open {
    display: block;
}

/* Sub-answer buttons for Question 1 (Weight Change) */
.sub-answer-buttons {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
}

.btn-sub-ans {
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #475569;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sub-ans:hover:not(:disabled) {
    border-color: #94a3b8;
    background: #f8fafc;
}

.btn-sub-ans.active {
    background: var(--c-primary, #c8006a);
    border-color: var(--c-primary, #c8006a);
    color: #fff;
}

/* Disabled state inside details */
.health-q-details input:disabled,
.health-q-details select:disabled,
.health-q-details button:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.health-q-details .checkbox-label input:disabled + span {
    opacity: 0.5;
    cursor: not-allowed;
}

.health-note-text {
    font-size: 0.82rem;
    color: #e11d48;
    font-weight: 500;
    margin: 0 0 0.5rem;
}

