.tm-enrollment-page {
    color: #0b1d3a;
    padding: clamp(24px, 5vw, 56px) 0;
}

.tm-enrollment-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.tm-enrollment-heading {
    margin-bottom: 28px;
}

.tm-enrollment-kicker {
    color: #009b9f;
    font-weight: 800;
    margin: 0 0 8px;
}

.tm-enrollment-heading h1,
.tm-enrollment-card h2,
.tm-enrollment-section-heading h2 {
    color: #082867;
    letter-spacing: 0;
}

.tm-enrollment-heading h1 {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    margin: 0 0 10px;
}

.tm-enrollment-heading p:last-child {
    color: #536985;
    font-size: 18px;
    margin: 0;
}

.tm-enrollment-section {
    margin-top: 36px;
}

.tm-enrollment-section-heading {
    margin-bottom: 18px;
}

.tm-enrollment-section-heading h2 {
    font-size: clamp(24px, 3.5vw, 38px);
    line-height: 1.25;
    margin: 0;
}

.tm-enrollment-card {
    background: #ffffff;
    border: 1px solid #dce8fb;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(8, 40, 103, 0.08);
    padding: clamp(18px, 4vw, 32px);
}

.tm-enrollment-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.tm-enrollment-card-head p {
    color: #009b9f;
    font-weight: 800;
    margin: 0 0 6px;
}

.tm-enrollment-card h2 {
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.1;
    margin: 0;
}

.tm-enrollment-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-enrollment-grid label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.tm-enrollment-grid label:first-child,
.tm-enrollment-grid label:last-child,
.tm-enrollment-note-field {
    grid-column: 1 / -1;
}

.tm-enrollment-grid span {
    color: #15396f;
}

.tm-enrollment-grid input,
.tm-enrollment-grid select,
.tm-enrollment-grid textarea {
    width: 100%;
    min-height: 56px;
    border: 1px solid #cfe0fb;
    border-radius: 8px;
    background: #f7fbff;
    color: #082867;
    font: inherit;
    font-weight: 700;
    padding: 12px 16px;
}

.tm-enrollment-grid textarea {
    min-height: 118px;
    resize: vertical;
}

.tm-enrollment-grid input:focus,
.tm-enrollment-grid select:focus,
.tm-enrollment-grid textarea:focus {
    border-color: #0f58c9;
    box-shadow: 0 0 0 3px rgba(15, 88, 201, 0.12);
    outline: none;
}

.tm-enrollment-payment {
    border: 1px solid #dce8fb;
    border-radius: 8px;
    margin-top: 24px;
    overflow: hidden;
}

.tm-enrollment-payment summary {
    background: linear-gradient(135deg, #e9ffff, #f3f7ff);
    color: #082867;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    list-style: none;
    padding: 18px 20px;
}

.tm-enrollment-payment summary::-webkit-details-marker {
    display: none;
}

.tm-enrollment-payment summary::after {
    content: "+";
    float: right;
    font-size: 24px;
    line-height: 1;
}

.tm-enrollment-payment[open] summary::after {
    content: "-";
}

.tm-enrollment-payment-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
}

.tm-enrollment-payment-card {
    border: 1px solid #dce8fb;
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
}

.tm-enrollment-payment-card img {
    aspect-ratio: 3 / 4;
    display: block;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.tm-enrollment-payment-card figcaption {
    background: #f7fbff;
    color: #082867;
    font-weight: 900;
    padding: 12px;
    text-align: center;
}

.tm-enrollment-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.tm-enrollment-actions button {
    background: #1457c7;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    min-height: 56px;
    padding: 0 28px;
}

.tm-enrollment-actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.tm-enrollment-status {
    color: #536985;
    font-weight: 800;
    margin: 0;
}

.tm-enrollment-status.is-error {
    color: #b62318;
}

.tm-enrollment-status.is-success {
    color: #087a42;
}

@media (max-width: 760px) {
    .tm-enrollment-shell {
        width: min(100% - 20px, 680px);
    }

    .tm-enrollment-card {
        padding: 18px;
    }

    .tm-enrollment-grid,
    .tm-enrollment-payment-grid {
        grid-template-columns: 1fr;
    }

    .tm-enrollment-grid input,
    .tm-enrollment-grid select,
    .tm-enrollment-grid textarea {
        min-height: 52px;
    }

    .tm-enrollment-grid textarea {
        min-height: 104px;
    }

    .tm-enrollment-payment-card img {
        max-height: 520px;
    }
}
