/* Course request form (British program) — shown on /live-sessions instead of the listing */

.live-sessions-page__filters-panel--request {
    margin-bottom: 22px;
}

.ls-category-filters__grid--single {
    grid-template-columns: minmax(0, 460px);
}

.live-sessions-results-shell--request {
    min-height: 0;
}

/* ── Card ── */
.cr-card {
    position: relative;
    padding: 30px 32px 32px;
    border-radius: 26px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFE 100%);
    border: 1px solid color-mix(in srgb, var(--blue-500, #2BA9E0) 14%, var(--line, #E3E9F0));
    box-shadow:
        0 24px 60px -36px rgba(17, 36, 58, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.cr-card__glow {
    position: absolute;
    inset-inline-end: -120px;
    top: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 169, 224, 0.16) 0%, rgba(43, 169, 224, 0) 68%);
    pointer-events: none;
}

.cr-card::before {
    content: "";
    position: absolute;
    inset-inline: 32px;
    top: 0;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: var(--brand-grad, linear-gradient(135deg, #2BA9E0 0%, #1C75BC 100%));
}

.cr-card__head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 24px 36px;
    align-items: start;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px dashed color-mix(in srgb, var(--blue-500, #2BA9E0) 22%, var(--line, #E3E9F0));
}

.cr-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--head, "Cairo", sans-serif);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue-600, #1C8FD0);
}

.cr-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F7C948 0%, #E99D1A 100%);
    box-shadow: 0 6px 16px -8px rgba(233, 157, 26, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #3B2A00;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.cr-card__title {
    margin: 0 0 10px;
    font-family: var(--head, "Cairo", sans-serif);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink, #11243A);
}

.cr-card__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--muted, #6A7889);
}

.cr-card__points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.cr-card__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line-2, #EEF2F7);
    box-shadow: 0 2px 8px rgba(17, 36, 58, 0.03);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2, #33485E);
}

.cr-card__point-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(43, 169, 224, 0.12);
    color: var(--blue-600, #1C8FD0);
}

.cr-card__point-icon svg {
    width: 18px;
    height: 18px;
}

/* ── Form ── */
.cr-form {
    position: relative;
}

.cr-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.cr-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

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

.cr-field__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-family: var(--head, "Cairo", sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-2, #33485E);
}

.cr-field__label em {
    color: #E11D48;
    font-style: normal;
    font-weight: 800;
}

.cr-field input,
.cr-field textarea,
.cr-phone {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1.5px solid var(--line, #E3E9F0);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(17, 36, 58, 0.03);
    font-family: var(--body, "Tajawal", sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink, #11243A);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cr-field textarea {
    min-height: 140px;
    padding: 14px 16px;
    line-height: 1.65;
    resize: vertical;
}

.cr-field input::placeholder,
.cr-field textarea::placeholder {
    color: #9AA7B6;
    font-weight: 500;
}

.cr-field input:hover,
.cr-field textarea:hover,
.cr-phone:hover {
    border-color: color-mix(in srgb, var(--blue-500, #2BA9E0) 35%, var(--line, #E3E9F0));
}

.cr-field input:focus,
.cr-field textarea:focus,
.cr-phone:focus-within {
    outline: none;
    border-color: var(--blue-500, #2BA9E0);
    box-shadow: 0 0 0 4px rgba(43, 169, 224, 0.14);
}

.cr-field.is-invalid input,
.cr-field.is-invalid textarea,
.cr-field.is-invalid .cr-phone {
    border-color: #E11D48;
    background: #FFF7F8;
}

.cr-field.is-invalid input:focus,
.cr-field.is-invalid textarea:focus,
.cr-field.is-invalid .cr-phone:focus-within {
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.14);
}

.cr-field__msg {
    display: block;
    min-height: 0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #E11D48;
}

.cr-field__msg:empty {
    display: none;
}

/* Dial code + number as one control; always LTR even in Arabic */
.cr-phone {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    direction: ltr;
}

.cr-phone__code {
    flex: 0 0 auto;
    width: 132px;
    max-width: 42%;
    padding: 0 30px 0 12px;
    border: 0;
    border-right: 1.5px solid var(--line, #E3E9F0);
    border-radius: 0;
    background:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A7889' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px 16px,
        #F4F8FB;
    font-family: var(--body, "Tajawal", sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2, #33485E);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cr-phone__code option {
    font-weight: 500;
}

.cr-phone input,
.cr-field .cr-phone input {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    letter-spacing: 0.02em;
}

.cr-phone input:focus,
.cr-field .cr-phone input:focus {
    box-shadow: none;
}

.cr-form__hint {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted, #6A7889);
}

.cr-form__error {
    margin: 14px 0 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: #FEF2F2;
    border: 1px solid rgba(225, 29, 72, 0.18);
    color: #B91C1C;
    font-size: 13.5px;
    font-weight: 600;
}

.cr-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 22px;
}

.cr-form__submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 240px;
    padding: 15px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-grad, linear-gradient(135deg, #2BA9E0 0%, #1C75BC 100%));
    box-shadow: 0 14px 28px -14px rgba(28, 117, 188, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: var(--head, "Cairo", sans-serif);
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cr-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px -14px rgba(28, 117, 188, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cr-form__submit:focus-visible {
    outline: 3px solid rgba(43, 169, 224, 0.45);
    outline-offset: 3px;
}

.cr-form__submit:disabled {
    cursor: progress;
    opacity: 0.85;
    transform: none;
}

.cr-form__arrow {
    width: 18px;
    height: 18px;
}

[dir="rtl"] .cr-form__arrow {
    transform: scaleX(-1);
}

.cr-form__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: crSpin 0.8s linear infinite;
}

.cr-card.is-submitting .cr-form__spinner {
    display: inline-block;
}

.cr-card.is-submitting .cr-form__arrow {
    display: none;
}

.cr-form__privacy {
    flex: 1 1 260px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted, #6A7889);
}

/* ── Success popup ── */
.cr-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.cr-popup.is-open {
    opacity: 1;
}

.cr-popup[hidden] {
    display: none;
}

.cr-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 24, 44, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cr-popup__dialog {
    position: relative;
    width: min(100%, 540px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 40px 32px 30px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 40px 90px -30px rgba(9, 24, 44, 0.6);
    text-align: center;
    outline: none;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.cr-popup.is-open .cr-popup__dialog {
    transform: none;
}

.cr-popup__icon {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #DCFCE7;
    color: #15803D;
    animation: crPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.cr-popup__icon svg {
    width: 36px;
    height: 36px;
}

.cr-popup__badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F7C948 0%, #E99D1A 100%);
    color: #3B2A00;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.cr-popup__title {
    margin: 0 0 12px;
    font-family: var(--head, "Cairo", sans-serif);
    font-size: 24px;
    font-weight: 800;
    color: var(--ink, #11243A);
}

.cr-popup__message {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: var(--ink-2, #33485E);
}

.cr-popup__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.cr-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 13px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-grad, linear-gradient(135deg, #2BA9E0 0%, #1C75BC 100%));
    box-shadow: 0 14px 28px -14px rgba(28, 117, 188, 0.85);
    color: #fff;
    font-family: var(--head, "Cairo", sans-serif);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.cr-popup__link {
    padding: 6px 10px;
    border: 0;
    background: none;
    color: var(--blue-600, #1C8FD0);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cr-popup__confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
}

.cr-popup__confetti i {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    animation: crConfetti 1.8s ease-out forwards;
}

.cr-popup__confetti i:nth-child(1) { left: 10%; background: #2BA9E0; animation-delay: 0.05s; }
.cr-popup__confetti i:nth-child(2) { left: 22%; background: #F7C948; animation-delay: 0.2s; }
.cr-popup__confetti i:nth-child(3) { left: 34%; background: #22C55E; animation-delay: 0.1s; }
.cr-popup__confetti i:nth-child(4) { left: 46%; background: #E11D48; animation-delay: 0.3s; }
.cr-popup__confetti i:nth-child(5) { left: 58%; background: #1C75BC; animation-delay: 0.15s; }
.cr-popup__confetti i:nth-child(6) { left: 70%; background: #F7C948; animation-delay: 0.25s; }
.cr-popup__confetti i:nth-child(7) { left: 82%; background: #22C55E; animation-delay: 0.05s; }
.cr-popup__confetti i:nth-child(8) { left: 92%; background: #2BA9E0; animation-delay: 0.35s; }

body.cr-popup-open {
    overflow: hidden;
}

@keyframes crSpin {
    to { transform: rotate(360deg); }
}

@keyframes crPop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes crConfetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cr-popup,
    .cr-popup__dialog,
    .cr-form__submit {
        transition: none;
    }

    .cr-popup__icon,
    .cr-popup__confetti i {
        animation: none;
    }

    .cr-popup__confetti i {
        display: none;
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .cr-card__head {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cr-card__points {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cr-card__points li {
        flex: 1 1 180px;
    }
}

@media (max-width: 680px) {
    .cr-card {
        padding: 22px 18px 24px;
        border-radius: 20px;
    }

    .cr-card::before {
        inset-inline: 18px;
    }

    .cr-card__head {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .cr-card__points {
        flex-direction: column;
        gap: 8px;
    }

    .cr-card__points li {
        flex: 0 0 auto;
        padding: 9px 12px;
    }

    .cr-form__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cr-field input,
    .cr-field textarea,
    .cr-phone {
        font-size: 16px; /* avoids iOS zoom on focus */
    }

    .cr-phone__code {
        width: 118px;
        padding-inline: 10px 26px;
        font-size: 13px;
    }

    .cr-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cr-form__submit {
        width: 100%;
        min-width: 0;
    }

    .cr-form__privacy {
        text-align: center;
    }

    .cr-popup {
        padding: 14px;
        align-items: end;
    }

    .cr-popup__dialog {
        padding: 34px 22px 24px;
        border-radius: 24px;
    }

    .cr-popup__title {
        font-size: 21px;
    }

    .cr-popup__message {
        font-size: 15px;
    }

    .cr-popup__btn {
        width: 100%;
    }
}
