/* ─────────────────────────────────────────────────────────────────────────────
   ASR Training Registration Modal — Enterprise Checkout Aesthetic
   Design tokens pulled from the ASR theme.
───────────────────────────────────────────────────────────────────────────── */

/* ── CSS Variables ───────────────────────────────────────────────────────── */
:root {
    --asr-navy:       #193a64;
    --asr-navy-dark:  #0a1f3d;
    --asr-yellow:     #ffcd05;
    --asr-green:      #136035;
    --asr-bg:         #fff;
    --asr-text:       #193a64;
    --asr-summary-bg: #f4f6fa;
    --asr-radius:     0px;   /* sharp — enterprise feel */
    --asr-border:     #d0d5dd;
}

/* ── Scroll lock ─────────────────────────────────────────────────────────── */
html.asr-tr-no-scroll,
body.asr-tr-no-scroll {
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

/* ── Backdrop ────────────────────────────────────────────────────────────── */
.asr-tr-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.asr-tr-modal.asr-tr-modal--open {
    visibility: visible;
    opacity: 1;
}

.asr-tr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 61, 0.65);
    cursor: pointer;
}

/* ── Dialog ──────────────────────────────────────────────────────────────── */
.asr-tr-modal__dialog {
    position: relative;
    background: #f4f6fa;
    border-radius: 0 !important;
    box-shadow: 0 8px 40px rgba(10, 31, 61, 0.35);
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.22s ease;
    scrollbar-width: thin;
    scrollbar-color: #193a64 #f4f6fa;
    box-sizing: border-box;
}

/* Chrome / Safari / Edge */
.asr-tr-modal__dialog::-webkit-scrollbar {
    width: 4px;
}

.asr-tr-modal__dialog::-webkit-scrollbar-track {
    background: #f4f6fa;
}

.asr-tr-modal__dialog::-webkit-scrollbar-thumb {
    background: #193a64;
}

.asr-tr-modal__dialog::-webkit-scrollbar-thumb:hover {
    background: #0a1f3d;
}

.asr-tr-modal.asr-tr-modal--open .asr-tr-modal__dialog {
    transform: translateY(0);
}

/* ── Close button ────────────────────────────────────────────────────────── */
.asr-tr-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    padding: 4px 8px;
    transition: opacity 0.2s;
    z-index: 10;
}

.asr-tr-modal__close:hover,
.asr-tr-modal__close:focus {
    opacity: 1;
    outline: none;
}

/* ── Full-width header ───────────────────────────────────────────────────── */
.asr-tr-modal__header {
    padding: 28px 36px 24px;
    background: linear-gradient(112deg, #193a64 0%, #1e4d87 60%, #3375ca 100%);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

/* Yellow bottom stripe */
.asr-tr-modal__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--asr-yellow);
}

.asr-tr-modal__title {
    font-family: var(--font-heading, "Roboto", sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.25;
    padding-right: 40px;
}

.asr-tr-modal__subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    font-weight: 400;
    padding-right: 40px;
}

/* ── Two-column body ─────────────────────────────────────────────────────── */
.asr-tr-modal__body {
    display: grid;
    grid-template-columns: 1fr 260px;
    min-height: 400px;
    width: 100%;
    box-sizing: border-box;
}

/* LEFT — form column */
.asr-tr-modal__form-col {
    padding: 24px 28px 28px;
    background: var(--asr-bg);
    min-width: 0; /* prevent grid blowout */
    overflow: hidden;
    box-sizing: border-box;
}

/* RIGHT — summary panel */
.asr-tr-modal__summary-col {
    padding: 24px 20px 28px;
    background: var(--asr-summary-bg);
    border-left: 1px solid #e2e6ed;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

/* ── Summary panel contents ──────────────────────────────────────────────── */
.asr-tr-summary__title {
    font-family: var(--font-heading, "Roboto", sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--asr-navy);
    margin: 0 0 10px;
    line-height: 1.35;
}

.asr-tr-summary__excerpt {
    font-size: 0.82rem;
    color: #5a6a7e;
    margin: 0 0 16px;
    line-height: 1.55;
    border-left: 3px solid var(--asr-yellow);
    padding-left: 10px;
}

.asr-tr-summary__meta {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.asr-tr-summary__meta li {
    font-size: 0.875rem;
    color: #4a5568;
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.4;
}

.asr-tr-summary__meta-label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--asr-navy);
    min-width: 64px;
}

.asr-tr-summary__fee {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}

.asr-tr-summary__fee-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.asr-tr-summary__fee-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--asr-navy);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.asr-tr-summary__divider {
    border: none;
    border-top: 1px solid #d1d9e0;
    margin: 0 0 20px;
}

.asr-tr-summary__payment {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.asr-tr-summary__payment-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0;
}

.asr-tr-summary__pay-later-note {
    font-size: 0.76rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ── Payment buttons ─────────────────────────────────────────────────────── */
.asr-tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 0;
    font-family: var(--font-heading, "Roboto", sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 0.18s, background 0.18s, color 0.18s;
    line-height: 1;
}

.asr-tr-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Next step button — solid navy */
.asr-tr-btn--next {
    background: var(--asr-navy);
    color: #fff;
    border: 2px solid var(--asr-navy);
}

.asr-tr-btn--next:hover:not(:disabled) {
    background: var(--asr-navy-dark);
    border-color: var(--asr-navy-dark);
}

/* Pay Now — solid navy */
.asr-tr-btn--pay-now {
    background: var(--asr-navy);
    color: #fff;
    border: 2px solid var(--asr-navy);
}

.asr-tr-btn--pay-now:hover:not(:disabled) {
    background: var(--asr-navy-dark);
    border-color: var(--asr-navy-dark);
}

.asr-tr-btn__arrow {
    font-size: 1em;
    color: inherit;
    transition: transform 0.18s;
}

.asr-tr-btn--pay-now:hover:not(:disabled) .asr-tr-btn__arrow {
    transform: translateX(4px);
}

/* Pay Later — outline navy */
.asr-tr-btn--pay-later {
    background: #fff;
    color: var(--asr-navy);
    border: 2px solid var(--asr-navy);
}

.asr-tr-btn--pay-later:hover:not(:disabled) {
    background: var(--asr-navy);
    color: #fff;
}

/* Success step close button */
.asr-tr-btn--close-success {
    background: var(--asr-navy);
    color: #fff;
    border: 2px solid var(--asr-navy);
    margin-top: 12px;
    width: auto;
    padding: 10px 28px;
}

.asr-tr-btn--close-success:hover {
    background: var(--asr-navy-dark);
    border-color: var(--asr-navy-dark);
}

/* ── Error box ───────────────────────────────────────────────────────────── */
.asr-tr-modal__error {
    background: #fff5f5;
    border-left: 3px solid #c0392b;
    color: #9b2335;
    border-radius: 0;
    padding: 10px 14px;
    font-size: 0.875rem;
    margin-bottom: 18px;
    line-height: 1.5;
}

.asr-tr-modal__error[hidden] {
    display: none;
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.asr-tr-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.asr-tr-form__group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.asr-tr-form__group label {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--asr-navy);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Required-field asterisk — red for form labels, not the file-upload button */
.asr-tr-form__group label:not(.asr-tr-file-upload__label) span {
    color: #c0392b;
    margin-left: 2px;
}

.asr-tr-form__group input,
.asr-tr-form__group select {
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--asr-border);
    border-radius: 0;
    font-size: 0.9rem;
    font-family: var(--font-body, sans-serif);
    color: var(--asr-navy-dark);
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    box-sizing: border-box;
}

.asr-tr-form__group input::placeholder {
    color: rgba(25, 58, 100, 0.35);
}

.asr-tr-form__group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23193a64' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}

.asr-tr-form__group input:focus,
.asr-tr-form__group select:focus {
    outline: none;
    border-color: var(--asr-navy);
    box-shadow: 0 0 0 3px rgba(25, 58, 100, 0.1);
}

.asr-tr-form__group input.asr-tr-field--error,
.asr-tr-form__group select.asr-tr-field--error {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.asr-tr-form__note {
    font-size: 0.76rem;
    color: rgba(25, 58, 100, 0.5);
    margin: 0 0 4px;
    line-height: 1.5;
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.asr-tr-modal__step--hidden {
    display: none;
}

/* ── Processing screen ───────────────────────────────────────────────────── */
.asr-tr-modal__processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 20px;
}

.asr-tr-modal__processing p {
    color: var(--asr-navy);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.asr-tr-modal__spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(25, 58, 100, 0.12);
    border-top-color: var(--asr-navy);
    border-radius: 50%;
    animation: asr-tr-spin 0.7s linear infinite;
}

@keyframes asr-tr-spin {
    to { transform: rotate(360deg); }
}

/* ── Success screen ──────────────────────────────────────────────────────── */
.asr-tr-modal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    gap: 10px;
}

.asr-tr-modal__success-icon {
    width: 64px;
    height: 64px;
    background: var(--asr-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.asr-tr-modal__success-heading {
    font-family: var(--font-heading, "Roboto", sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--asr-navy);
    margin: 0;
}

.asr-tr-modal__success-program {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.asr-tr-modal__success-message {
    font-size: 0.925rem;
    color: #555;
    margin: 6px 0 0;
    line-height: 1.6;
    max-width: 420px;
}

/* ── Banner trigger button ───────────────────────────────────────────────── */
button.asr-tr-register-btn,
button.program-banner__btn--primary.asr-tr-register-btn {
    background: var(--asr-bg, #ffffff) !important;
    color: var(--asr-navy-dark, #0a1f3d) !important;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    white-space: nowrap; /* keep on one line */
    flex-shrink: 1;      /* allow shrinking if space is tight */
    min-width: 0;
}

button.asr-tr-register-btn *,
button.program-banner__btn--primary.asr-tr-register-btn * {
    color: var(--asr-navy-dark, #0a1f3d) !important;
}

button.asr-tr-register-btn:hover,
button.program-banner__btn--primary.asr-tr-register-btn:hover {
    background: #f6ba00 !important;
    color: var(--asr-navy-dark, #0a1f3d) !important;
}

/* Price range label on banner button */
.asr-tr-banner-price {
    opacity: 0.72;
    font-size: 0.78em;
    font-weight: 500;
    white-space: nowrap;
}

.asr-tr-register-btn--closed {
    background: rgba(255, 255, 255, 0.18) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Admin page badges (also used inline) ───────────────────────────────── */
.asr-tr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.6;
    white-space: nowrap;
}

.asr-tr-badge--paid      { background: #136035; color: #fff; }
.asr-tr-badge--pending   { background: #e67e22; color: #fff; }
.asr-tr-badge--failed    { background: #c0392b; color: #fff; }
.asr-tr-badge--pay-later { background: #193a64; color: #fff; }
.asr-tr-badge--opt-now   { background: #dbeafe; color: #1e40af; }
.asr-tr-badge--opt-later { background: #f3f4f6; color: #555; }

/* ── Review flow — file upload ──────────────────────────────────────────── */
.asr-tr-review-fields {
    margin-top: 16px;
    padding: 16px;
    background: #f0f4ff;
    border-left: 3px solid var(--asr-navy);
    border-radius: 0;
}

.asr-tr-review-fields label {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--asr-navy);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Only target the required-asterisk span, not the file upload button */
.asr-tr-review-fields label:not(.asr-tr-file-upload__label) span {
    color: #c0392b;
    margin-left: 2px;
}

.asr-tr-field-description {
    font-size: 0.8rem;
    color: #5a6a7e;
    margin: 0 0 10px;
    line-height: 1.5;
}

.asr-tr-checkbox {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--asr-navy);
    padding: 12px 16px;
    border: 1.5px solid var(--asr-border);
    border-radius: 2px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
    user-select: none;
}

.asr-tr-checkbox:hover {
    border-color: rgba(25, 58, 100, 0.5);
}

.asr-tr-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #b6c2d4;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.asr-tr-checkbox input[type="checkbox"]:hover {
    border-color: var(--asr-navy);
}

.asr-tr-checkbox input[type="checkbox"]:checked {
    background: var(--asr-navy);
    border-color: var(--asr-navy);
}

/* Animated checkmark (draw-in pop) */
.asr-tr-checkbox input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.asr-tr-checkbox input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

.asr-tr-checkbox input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(25, 58, 100, 0.35);
    outline-offset: 1px;
}

/* Highlight the whole card when the checkbox is checked */
.asr-tr-checkbox:has(input:checked),
.asr-tr-checkbox.asr-tr-checkbox--checked {
    background: rgba(25, 58, 100, 0.06);
    border-color: var(--asr-navy);
    color: var(--asr-navy);
    font-weight: 700 !important;
}

.asr-tr-file-upload {
    position: relative;
}

.asr-tr-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    z-index: -1;
}

.asr-tr-file-upload__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--asr-navy);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.18s;
    border-radius: 0;
}

.asr-tr-file-upload__label:hover {
    background: var(--asr-navy-dark);
}

.asr-tr-file-upload__icon {
    font-size: 1.1rem;
    color: #fff;
}

.asr-tr-file-upload__text {
    color: #fff;
}

.asr-tr-file-upload__list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asr-tr-file-upload__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--asr-border);
    font-size: 0.8rem;
    color: var(--asr-navy);
}

.asr-tr-file-upload__item-icon {
    flex-shrink: 0;
}

.asr-tr-file-upload__item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asr-tr-file-upload__item-size {
    color: #888;
    flex-shrink: 0;
}

.asr-tr-file-upload__empty {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* Submit for Review button */
.asr-tr-btn--review {
    background: var(--asr-green);
    color: #fff;
    border: 2px solid var(--asr-green);
}

.asr-tr-btn--review:hover:not(:disabled) {
    background: #0d4a28;
    border-color: #0d4a28;
}

.asr-tr-review-message {
    font-size: 0.8rem;
    color: #5a6a7e;
    margin: 8px 0 0;
    line-height: 1.5;
    padding: 10px;
    background: #fefce8;
    border-left: 3px solid #e6b800;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Collapse to single column at tablet width */
@media (max-width: 720px) {
    .asr-tr-modal {
        padding: 0;
        align-items: flex-end;
    }

    .asr-tr-modal__dialog {
        max-width: 100%;
        max-height: 96vh;
        border-radius: 0;
        width: 100%;
    }

    /* Stack: summary on top, form below */
    .asr-tr-modal__body {
        grid-template-columns: 1fr;
    }

    .asr-tr-modal__summary-col {
        order: -1;
        border-left: none;
        border-bottom: 1px solid #d1d9e0;
        padding: 16px 20px;
    }

    /* Hide verbose summary items on mobile to save space */
    .asr-tr-summary__excerpt,
    .asr-tr-summary__meta { display: none; }

    .asr-tr-modal__header {
        padding: 20px 20px 16px;
    }

    .asr-tr-modal__title {
        font-size: 1rem;
        padding-right: 30px;
    }

    .asr-tr-modal__form-col {
        padding: 18px 16px 24px;
    }

    .asr-tr-form__row {
        grid-template-columns: 1fr;
    }

    .asr-tr-steps__label { display: none; }
    .asr-tr-steps__divider { margin-bottom: 8px; }

    .asr-tr-form__nav--split { flex-direction: column; }
    .asr-tr-btn--outline { width: 100%; }
    .asr-tr-fee-option__body { flex-direction: column; align-items: flex-start; gap: 2px; }

    .asr-tr-modal__success {
        padding: 40px 20px;
    }
}

/* Mobile responsive: Banner Register Now button */
@media (max-width: 768px) {
    button.asr-tr-register-btn,
    button.program-banner__btn--primary.asr-tr-register-btn {
        white-space: normal;
        word-break: break-word;
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .asr-tr-register-btn__price,
    .asr-tr-banner-price {
        white-space: normal;
        word-break: break-word;
    }

    .asr-tr-register-wrap {
        width: 100%;
    }

    .asr-tr-register-wrap .asr-tr-register-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Step indicator ──────────────────────────────────────────────────────── */
.asr-tr-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 20px;
}

.asr-tr-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.asr-tr-steps__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
}

.asr-tr-steps__label {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
}

.asr-tr-steps__divider {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 0 6px;
    margin-bottom: 18px;
}

.asr-tr-steps__item--active .asr-tr-steps__num {
    background: var(--asr-yellow);
    color: var(--asr-navy-dark);
    border-color: var(--asr-yellow);
}

.asr-tr-steps__item--active .asr-tr-steps__label {
    color: #fff;
}

.asr-tr-steps__item--done .asr-tr-steps__num {
    background: rgba(255,255,255,0.9);
    color: var(--asr-navy);
    border-color: rgba(255,255,255,0.9);
}

.asr-tr-steps__item--done .asr-tr-steps__label {
    color: rgba(255,255,255,0.75);
}

/* ── Form sections ───────────────────────────────────────────────────────── */
.asr-tr-form__section--hidden {
    display: none;
}

.asr-tr-form__section-title {
    font-family: var(--font-heading, "Roboto", sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--asr-navy);
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--asr-yellow);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Textarea */
.asr-tr-form__group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--asr-border);
    border-radius: 0;
    font-size: 0.9rem;
    font-family: var(--font-body, sans-serif);
    color: var(--asr-navy-dark);
    background: #fff;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
}

.asr-tr-form__group textarea:focus {
    outline: none;
    border-color: var(--asr-navy);
    box-shadow: 0 0 0 3px rgba(25,58,100,0.1);
}

/* Radio group */
.asr-tr-radio-group {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.asr-tr-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--asr-navy);
    cursor: pointer;
    padding: 10px 18px;
    border: 1.5px solid var(--asr-border);
    border-radius: 2px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
    user-select: none;
}

.asr-tr-radio:hover {
    border-color: rgba(25, 58, 100, 0.5);
}

.asr-tr-radio input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #b6c2d4;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.asr-tr-radio input[type="radio"]:hover {
    border-color: var(--asr-navy);
}

/* Animated centre dot (scale pop) */
.asr-tr-radio input[type="radio"]::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 3px;
    background: var(--asr-navy);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.asr-tr-radio input[type="radio"]:checked {
    border-color: var(--asr-navy);
}

.asr-tr-radio input[type="radio"]:checked::after {
    transform: scale(1);
    opacity: 1;
}

.asr-tr-radio input[type="radio"]:focus-visible {
    outline: 3px solid rgba(25, 58, 100, 0.35);
    outline-offset: 1px;
}

/* Highlight the whole card when its radio is selected */
.asr-tr-radio:has(input:checked),
.asr-tr-radio.asr-tr-radio--checked {
    background: rgba(25, 58, 100, 0.06);
    border-color: var(--asr-navy);
    color: var(--asr-navy);
    font-weight: 700;
}

/* Form navigation buttons */
.asr-tr-form__nav {
    margin-top: 20px;
}

.asr-tr-form__nav--split {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.asr-tr-payment-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Outline / back button */
.asr-tr-btn--outline {
    background: #fff;
    color: var(--asr-navy);
    border: 2px solid var(--asr-navy);
    padding: 11px 18px;
    width: auto;
    flex-shrink: 0;
}

.asr-tr-btn--outline:hover:not(:disabled) {
    background: var(--asr-navy);
    color: #fff;
}

/* ── Fee tier options ────────────────────────────────────────────────────── */
.asr-tr-fee-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.asr-tr-fee-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--asr-border);
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.asr-tr-fee-option:hover {
    border-color: rgba(25, 58, 100, 0.5);
}

.asr-tr-fee-option input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #b6c2d4;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.asr-tr-fee-option input[type="radio"]:hover {
    border-color: var(--asr-navy);
}

/* Animated centre dot (scale pop) */
.asr-tr-fee-option input[type="radio"]::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 3px;
    background: var(--asr-navy);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.asr-tr-fee-option input[type="radio"]:checked {
    border-color: var(--asr-navy);
}

.asr-tr-fee-option input[type="radio"]:checked::after {
    transform: scale(1);
    opacity: 1;
}

.asr-tr-fee-option input[type="radio"]:focus-visible {
    outline: 3px solid rgba(25, 58, 100, 0.35);
    outline-offset: 1px;
}

.asr-tr-fee-option__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.asr-tr-fee-option__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--asr-navy);
}

.asr-tr-fee-option__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--asr-navy-dark);
}

.asr-tr-fee-option--selected,
.asr-tr-fee-option:has(input:checked) {
    border-color: var(--asr-navy);
    background: rgba(25, 58, 100, 0.06);
}

.asr-tr-fee-note {
    font-size: 0.78rem;
    color: #6b7280;
    margin: -4px 0 10px 0;
    padding: 8px 12px;
    background: #fef9e7;
    border-left: 3px solid var(--asr-yellow);
    line-height: 1.5;
}

/* ── Discounts info ──────────────────────────────────────────────────────── */
.asr-tr-discounts {
    margin-bottom: 8px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.asr-tr-discounts__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--asr-navy);
    margin: 0 0 10px;
}

.asr-tr-discount-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.asr-tr-discount-item:last-child {
    margin-bottom: 0;
}

.asr-tr-discount-item__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--asr-navy);
}

.asr-tr-discount-item__note {
    font-size: 0.78rem;
    color: #6b7280;
}

/* mobile rules consolidated above */
