.child-card {
    margin-bottom: 24px;
    padding: 20px 22px;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(9, 42, 93, .03);
    position: relative;
    transition: all .2s ease
}

.child-card:hover {
    border-color: #d4dfed;
    box-shadow: 0 6px 18px rgba(9, 42, 93, .05)
}

.plan-choice-field.hidden,
.student-details-section.hidden,
.plan-choice-field[hidden],
.student-details-section[hidden],
.child-card-body .hidden {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.child-card-heading {
    padding: 0 0 16px;
    border-bottom: 1px solid #f0f4f8;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px
}

.child-card-heading>div {
    display: flex;
    align-items: center;
    gap: 12px
}

.child-card-heading>div>span {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(9, 42, 93, .07);
    color: #092a5d;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px
}

.child-card-heading>div>div {
    display: flex;
    flex-direction: column;
    gap: 1px
}

.child-card-heading b {
    color: #092a5d;
    font-size: 14.5px
}

.child-card-heading b em {
    font-style: normal;
    color: #c58a12
}

.child-card-heading small {
    color: #7a8698;
    font-size: 11px
}

.remove-child {
    padding: 7px 12px;
    border: 1px solid #fcd3d1;
    border-radius: 7px;
    background: #fff5f5;
    color: #b52e27;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: all .2s ease
}

.remove-child:hover {
    background: #fee2e2;
    border-color: #f87171
}

.child-choice-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0
}

.child-data-grid {
    padding: 0
}

.stage-cost-preview {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #f6e0b3;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffdf7, #fff8e8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all .2s ease
}

.stage-cost-preview p {
    margin: 0;
    color: #8792a2;
    font-size: 11px
}

.stage-cost-preview span {
    color: #5f4a1f;
    font-size: 12px;
    font-weight: 700
}

.stage-cost-preview strong {
    color: #986609;
    font-size: 18px;
    white-space: nowrap
}

.child-plan-preview {
    margin: 16px 0 0;
    padding: 14px 16px;
    border: 1px solid #d1eae4;
    border-radius: 10px;
    background: #f4fbf9
}

.child-plan-preview>p {
    margin: 0;
    color: #8792a2;
    font-size: 11px
}

.plan-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.plan-preview-head b {
    color: #092a5d;
    font-size: 13px
}

.plan-preview-head strong {
    color: #b47b0f;
    font-size: 13px
}

.plan-preview-installments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.plan-preview-installments span {
    padding: 8px 11px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 3px
}

.plan-preview-installments em {
    color: #7d8796;
    font-size: 10px;
    font-style: normal
}

.plan-preview-installments b {
    font-size: 11px;
    color: #092a5d
}

.add-child-button {
    width: 100%;
    height: 46px;
    border: 1.5px dashed #c58a12;
    border-radius: 10px;
    background: #fffdf8;
    color: #986609;
    cursor: pointer;
    font-weight: 700;
    font-size: 13.5px;
    transition: all .2s ease
}

.add-child-button:hover {
    background: #fff8eb;
    border-color: #a97109;
    transform: translateY(-1px)
}

.add-child-button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none
}

.family-summary {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .02)
}

.summary-placeholder {
    margin: 0;
    padding: 24px;
    color: #7f8a9a;
    text-align: center;
    font-size: 12px
}

.summary-child {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.summary-child>div {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.summary-child b {
    color: #092a5d;
    font-size: 13px
}

.summary-child small {
    color: #7d8796;
    font-size: 11px
}

.summary-child>strong {
    color: #a06b08;
    font-size: 13px
}

.summary-total {
    padding: 16px 20px;
    background: #092a5d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.summary-total span {
    font-size: 13px
}

.summary-total b {
    color: #edbd55;
    font-size: 18px
}

.no-stages-alert {
    margin-bottom: 0
}

@media(max-width:700px) {
    .child-choice-grid {
        grid-template-columns: 1fr
    }

    .plan-preview-installments {
        grid-template-columns: 1fr
    }

    .child-card-heading {
        align-items: flex-start
    }

    .summary-child {
        gap: 15px
    }

    .summary-child>strong {
        white-space: nowrap
    }
}

/* Sequential registration steps */
.application-form .application-step {
    padding-bottom: 0;
    overflow: hidden;
    transition: all .25s ease
}

.application-form .application-step.is-active {
    border-color: #c9a24c;
    box-shadow: 0 8px 30px rgba(3, 26, 61, .08)
}

.application-form .application-step.is-complete {
    border-color: #b9ddd5
}

.application-form .application-step.is-locked {
    box-shadow: none
}

.application-form .application-step legend {
    margin-bottom: 0;
    padding: 0
}

.step-toggle {
    width: 100%;
    min-height: 68px;
    padding: 14px 20px;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-align: right;
    cursor: pointer
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #092a5d;
    color: #e7b84f;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    transition: all .2s ease
}

.step-heading {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.application-form .step-heading b {
    font-size: 17px;
    color: #092a5d
}

.application-form .step-heading small {
    font-size: 12px;
    color: #667287
}

.step-state {
    padding: 5px 11px;
    border-radius: 999px;
    background: #fff7e7;
    color: #986609;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap
}

.step-chevron {
    width: 10px;
    height: 10px;
    border-left: 2px solid #79869a;
    border-bottom: 2px solid #79869a;
    transform: rotate(-45deg);
    transition: transform .2s ease
}

.is-active .step-chevron {
    transform: rotate(135deg)
}

.is-complete .step-number {
    background: #08766a;
    color: #fff
}

.is-complete legend {
    background: linear-gradient(90deg, #edf8f5, #f7fcfb 58%, #fff);
    border-right-color: #14856f;
    border-bottom-color: #d5ebe6
}

.is-complete .step-state {
    background: #e5f6f1;
    color: #08705f
}

.is-locked .step-toggle {
    cursor: not-allowed
}

.is-locked .step-number {
    background: #eef1f5;
    color: #8692a2
}

.is-locked .step-heading,
.is-locked .step-state,
.is-locked .step-chevron {
    opacity: .62
}

.step-panel {
    padding-top: 22px
}

.step-panel[hidden] {
    display: none
}

.step-navigation {
    margin-top: 22px;
    padding: 20px 0 10px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end
}

.step-next-button {
    min-width: 180px;
    height: 45px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #092a5d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(9, 42, 93, .16);
    transition: all .2s ease
}

.step-next-button:hover {
    background: #0d3b7b;
    transform: translateY(-1px)
}

.step-next-button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none
}

.application-step .form-actions {
    padding: 22px 0 10px
}

.application-step.has-validation-error {
    border-color: #e4a29d;
    box-shadow: 0 0 0 3px rgba(197, 53, 43, .08)
}

.form-grid .field-validation-error{display:none;margin-top:-2px;color:#b8322b;font-size:10px;font-weight:500;line-height:1.5}.form-grid input.has-user-error{border-color:#c8453d;background:#fff8f7;box-shadow:0 0 0 2px rgba(200,69,61,.08)}.form-grid .field-validation-error:not(:empty){display:block}

.account-creation-step .two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.account-creation-intro{margin-bottom:16px;padding:17px 18px;display:flex;align-items:center;gap:13px;border:1px solid #e1e6ed;border-right:3px solid var(--gold);background:#fafbfd}.account-creation-intro>span{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;background:#f7f1e5;color:var(--gold)}.account-creation-intro svg{width:23px;height:23px}.account-creation-intro b{display:block;color:var(--deep);font-size:14px}.account-creation-intro p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.account-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}.account-mode-option{position:relative;display:block;cursor:pointer}.account-mode-option input{position:absolute;opacity:0;pointer-events:none}.account-mode-option>span{min-height:68px;padding:14px 16px;display:flex;flex-direction:column;justify-content:center;border:1px solid #dce3eb;background:#fff;transition:border-color .2s,background .2s,box-shadow .2s}.account-mode-option b{color:var(--deep);font-size:13px}.account-mode-option small{margin-top:4px;color:var(--muted);font-size:10px}.account-mode-option input:checked+span{border-color:#1b5798;background:#f3f8fd;box-shadow:inset 0 0 0 1px #1b5798}.account-mode-option input:focus-visible+span{outline:3px solid rgba(27,87,152,.2);outline-offset:2px}.account-mode-panel[hidden]{display:none}.existing-account-note{margin-bottom:10px;padding:12px 15px;border-right:3px solid #1b5798;background:#f4f8fc}.existing-account-note b{display:block;color:var(--deep);font-size:12px}.existing-account-note p{margin:3px 0 0;color:var(--muted);font-size:10px;line-height:1.6}.account-fields-grid{padding:2px 0 6px}.account-fields-grid .account-field-note{color:#7d8999;font-size:9px;font-weight:400;line-height:1.5}.account-submit-actions{margin-top:13px;padding-top:20px;border-top:1px solid var(--line)}.account-submit-actions .submit-btn{min-width:210px}.existing-parent-account{padding:18px;display:flex;align-items:center;gap:13px;border:1px solid #bfe4d3;background:#eff9f4;color:#126d4a}.existing-parent-account>span{width:39px;height:39px;display:grid;place-items:center;flex:0 0 39px;border-radius:50%;background:#d5f0e3;font-weight:800}.existing-parent-account b{display:block;font-size:14px}.existing-parent-account p{margin:4px 0 0;font-size:11px;line-height:1.6}

@media(max-width:700px) {
    .account-creation-step .two-cols,.account-mode-options{grid-template-columns:1fr}.account-creation-intro{align-items:flex-start;padding:14px}.account-submit-actions{align-items:stretch;flex-direction:column}.account-submit-actions .submit-btn{width:100%;min-width:0}
    .step-toggle {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 12px;
        gap: 10px
    }

    .step-number {
        width: 36px;
        height: 36px;
        border-radius: 8px
    }

    .step-state {
        grid-column: 2;
        margin-top: 2px;
        justify-self: start
    }

    .step-chevron {
        grid-column: 3;
        grid-row: 1/3
    }

    .application-form .step-heading b {
        font-size: 15px
    }

    .application-form .step-heading small {
        font-size: 11px
    }

    .step-navigation {
        padding-bottom: 12px
    }

    .step-next-button {
        width: 100%
    }
}
