.enrolment-page {
    background: #f7f9fc;
    color: #172033;
    min-height: calc(100vh - var(--header-height));
    padding-bottom: 80px;
}

.enrolment-hero {
    background: #001f3f;
    border-bottom: 4px solid #ffd700;
    color: #fff;
    padding: 72px 0 64px;
}

.enrolment-hero h1,
.confirmation-card h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    margin: 0 0 20px;
}

.enrolment-hero p {
    color: #dbe7f4;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 760px;
}

.enrolment-layout {
    margin-top: 42px;
}

.enrolment-form {
    display: grid;
    gap: 28px;
}

.enrolment-panel,
.enrolment-empty,
.confirmation-card {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 31, 63, 0.06);
    padding: 34px;
}

.enrolment-panel-heading {
    margin-bottom: 26px;
}

.enrolment-step {
    color: #806900;
    display: block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.enrolment-panel h2,
.enrolment-empty h2 {
    color: #001f3f;
    font-size: 1.7rem;
    margin: 0 0 8px;
}

.enrolment-panel-heading p,
.enrolment-empty p {
    color: #526174;
    line-height: 1.65;
    margin: 0;
}

.class-options {
    display: grid;
    gap: 14px;
}

.class-option {
    cursor: pointer;
    display: block;
    position: relative;
}

.class-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.class-option-body {
    border: 2px solid #d7e0ea;
    border-radius: 8px;
    display: block;
    padding: 22px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.class-option input:checked + .class-option-body {
    background: #fffbea;
    border-color: #b99b00;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, .3), 0 10px 24px rgba(0, 31, 63, .12);
    transform: translateY(-1px);
}

.class-option input:focus-visible + .class-option-body {
    outline: 3px solid #2b6cb0;
    outline-offset: 3px;
}

.class-option-topline {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.class-option-topline strong {
    color: #001f3f;
    font-size: 1.18rem;
}

.class-option-selected-banner {
    align-items: center;
    background: #001f3f;
    border-radius: 5px;
    color: #ffd700;
    display: none;
    font-size: .85rem;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    letter-spacing: .04em;
    margin: -8px 0 18px;
    padding: 10px 14px;
    text-transform: uppercase;
}

.class-option input:checked + .class-option-body .class-option-selected-banner {
    display: flex;
}

.spaces-badge {
    background: #eaf7ed;
    border-radius: 999px;
    color: #176b2c;
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 800;
    padding: 5px 10px;
}

.spaces-badge--queue {
    background: #fff2d6;
    color: #805700;
}

.class-option-placement-notice {
    background: #fff8dc;
    border-left: 4px solid #d1a900;
    color: #5f4b00;
    display: block;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 14px;
    padding: 12px 14px;
}

.class-option-placement-notice i {
    margin-right: 6px;
}

.class-option-description,
.class-option-dates {
    color: #536173;
    display: block;
    margin-top: 9px;
}

.class-option-details {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 16px;
}

.class-option-details span {
    color: #27384d;
    font-size: .92rem;
}

.class-option-details i {
    color: #9b8200;
    margin-right: 5px;
    width: 16px;
}

.class-option-action {
    align-items: center;
    background: #001f3f;
    border-radius: 5px;
    color: #fff;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 800;
    justify-content: center;
    margin-top: 18px;
    min-width: 170px;
    padding: 10px 16px;
    text-transform: uppercase;
}

.class-option-action-selected {
    display: none;
}

.class-option input:checked + .class-option-body .class-option-action {
    background: #ffd700;
    color: #001f3f;
}

.class-option input:checked + .class-option-body .class-option-action-default {
    display: none;
}

.class-option input:checked + .class-option-body .class-option-action-selected {
    display: inline;
}

.class-selection-confirmation {
    align-items: center;
    background: #eaf7ed;
    border: 2px solid #7fbd8d;
    border-radius: 7px;
    color: #155b28;
    display: flex;
    font-weight: 800;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 18px;
}

.class-selection-confirmation[hidden] {
    display: none;
}

.class-selection-confirmation i {
    font-size: 1.25rem;
}

.form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

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

.field-group label {
    color: #102c4c;
    font-size: .92rem;
    font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
    background: #fff;
    border: 1px solid #aebdcd;
    border-radius: 5px;
    color: #172033;
    font: inherit;
    padding: 12px 13px;
    width: 100%;
}

.field-group textarea {
    resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: #836f00;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, .24);
    outline: 0;
}

.field-group small {
    color: #596a7f;
    font-size: .8rem;
}

.sensitive-field {
    background: #f7fafc;
    border-left: 4px solid #d7b900;
    padding: 18px;
}

.consent-list {
    display: grid;
    gap: 15px;
}

.consent-item {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #dce4ec;
    border-radius: 6px;
    color: #334155;
    display: flex;
    gap: 12px;
    line-height: 1.55;
    padding: 15px;
}

.consent-item input {
    flex: 0 0 auto;
    height: 20px;
    margin-top: 2px;
    width: 20px;
}

.consent-item a,
.confirmation-card a:not(.pathway-btn-gold),
.payment-unavailable a {
    color: #0055a5;
    text-decoration: underline;
}

.consent-item--optional {
    border-style: dashed;
}

.payment-panel {
    border-top: 5px solid #ffd700;
}

.enrolment-summary {
    align-items: center;
    background: #001f3f;
    border-radius: 6px;
    color: #fff;
    display: grid;
    gap: 3px 16px;
    grid-template-columns: 1fr auto;
    margin-bottom: 22px;
    padding: 16px 18px;
}

.enrolment-summary > span:first-child {
    color: #bfd0e2;
    font-size: .78rem;
    grid-column: 1 / -1;
    text-transform: uppercase;
}

.enrolment-summary strong {
    font-size: 1.05rem;
}

#summary-price {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    max-width: 430px;
    text-align: right;
}

paypal-button {
    display: block;
    margin-top: 18px;
    max-width: 520px;
}

.payment-action {
    color: #001f3f;
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0 0 8px;
}

.payment-note {
    color: #64748b;
    font-size: .83rem;
    margin: 16px 0 0;
}

.payment-message {
    border-radius: 5px;
    display: none;
    margin: 12px 0;
    padding: 12px 14px;
}

.payment-message:not(:empty) {
    display: block;
}

.payment-message--error {
    background: #fff1f1;
    border: 1px solid #e9a5a5;
    color: #8c1d1d;
}

.payment-message--info,
.payment-message--working {
    background: #edf6ff;
    border: 1px solid #a9cdeb;
    color: #174f7e;
}

.payment-unavailable {
    background: #fff8dc;
    border: 1px solid #e7ca55;
    border-radius: 6px;
    color: #554500;
    padding: 16px;
}

.enrolment-empty {
    margin: 60px auto;
    max-width: 720px;
    text-align: center;
}

.enrolment-empty .pathway-btn-gold {
    display: inline-block;
    margin-top: 22px;
}

.confirmation-page {
    padding-top: 70px;
}

.confirmation-card {
    margin: 0 auto;
    max-width: 760px;
    text-align: center;
}

.confirmation-card h1 {
    color: #001f3f;
}

.confirmation-card > p {
    color: #526174;
    font-size: 1.05rem;
}

.confirmation-icon {
    align-items: center;
    background: #e8f7ec;
    border-radius: 50%;
    color: #187536;
    display: inline-flex;
    font-size: 1.8rem;
    height: 64px;
    justify-content: center;
    margin-bottom: 20px;
    width: 64px;
}

.confirmation-icon--pending {
    background: #fff2d6;
    color: #805700;
}

.confirmation-details {
    border-bottom: 1px solid #dce4ec;
    border-top: 1px solid #dce4ec;
    display: grid;
    gap: 0;
    margin: 30px 0;
    text-align: left;
}

.confirmation-details div {
    display: grid;
    gap: 16px;
    grid-template-columns: 150px 1fr;
    padding: 11px 0;
}

.confirmation-details dt {
    color: #65758a;
    font-weight: 700;
}

.confirmation-details dd {
    color: #001f3f;
    font-weight: 700;
    margin: 0;
}

.confirmation-help {
    margin-bottom: 26px;
}

.confirmation-card .pathway-btn-gold {
    display: inline-block;
}

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

    #summary-price {
        text-align: left;
    }

    .enrolment-hero {
        padding: 48px 0;
    }

    .enrolment-panel,
    .enrolment-empty,
    .confirmation-card {
        padding: 24px 18px;
    }

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

    .field-group--full {
        grid-column: auto;
    }

    .class-option-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .confirmation-details div {
        gap: 2px;
        grid-template-columns: 1fr;
    }
}
