/* Parseh Course Registration Modal */
.pcr,
.pcr *,
.pcr-modal,
.pcr-modal * {
    box-sizing: border-box;
}

.pcr {
    width: 100%;
    direction: rtl;
    font-family: inherit;
}

.pcr__trigger {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #21427d 0%, #0d63d8 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(33, 66, 125, 0.18);
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.pcr__trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(33, 66, 125, 0.24);
}

.pcr__trigger:focus-visible,
.pcr-modal button:focus-visible,
.pcr-modal a:focus-visible {
    outline: 3px solid rgba(33, 66, 125, .22);
    outline-offset: 3px;
}

.pcr-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    direction: rtl;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.pcr-modal[hidden] {
    display: none !important;
}

.pcr-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pcr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 23, 42, .60);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pcr-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(220, 227, 239, .95);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(8, 22, 49, .28);
    transform: translateY(14px) scale(.985);
    transition: transform .22s ease;
}

.pcr-modal.is-open .pcr-modal__dialog {
    transform: translateY(0) scale(1);
}

.pcr-modal__close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e3e9f2;
    border-radius: 50%;
    background: #fff;
    color: #4b596e;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.pcr-modal__close:hover {
    background: #f3f6fb;
    color: #14213a;
}

.pcr-modal__header {
    flex: 0 0 auto;
    padding: 30px 72px 20px;
    text-align: center;
    border-bottom: 1px solid #edf1f6;
}

.pcr-modal__header h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 900;
    line-height: 1.45;
}

.pcr-modal__header p {
    margin: 7px 0 0;
    color: #748095;
    font-size: 15px;
    line-height: 1.8;
}

.pcr-modal__content {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px;
}

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

.pcr-option {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid #e5eaf2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(16, 38, 74, .045);
}

.pcr-option__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #eef4ff;
    color: #2166d1;
}

.pcr-option__icon svg {
    width: 34px;
    height: 34px;
}

.pcr-option--online .pcr-option__icon {
    background: #edf9f3;
    color: #0e9a5b;
}

.pcr-option--in_person .pcr-option__icon {
    background: #f6efff;
    color: #8146d7;
}

.pcr-option--generic .pcr-option__icon {
    background: #f3f5f8;
    color: #52647f;
}

.pcr-option__body {
    min-width: 0;
}

.pcr-option__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.pcr-option__heading h3 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.6;
}

.pcr-option__heading p {
    margin: 3px 0 0;
    color: #778296;
    font-size: 14px;
    line-height: 1.75;
}

.pcr-option__price {
    min-width: 145px;
    text-align: left;
}

.pcr-option__price > span {
    display: block;
    margin-bottom: 2px;
    color: #8a95a7;
    font-size: 12px;
    line-height: 1.6;
}

.pcr-option__price strong,
.pcr-option__price .price {
    display: block;
    color: #165ec7;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.7;
    white-space: nowrap;
}

.pcr-option--online .pcr-option__price strong,
.pcr-option--online .pcr-option__price .price {
    color: #0b8c52;
}

.pcr-option--in_person .pcr-option__price strong,
.pcr-option--in_person .pcr-option__price .price {
    color: #7540c8;
}

.pcr-option__price del {
    color: #a1a9b7;
    font-size: 13px;
    font-weight: 500;
    opacity: .8;
}

.pcr-option__price ins {
    text-decoration: none;
}

.pcr-option__after {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f9fc;
}

.pcr-option__check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e5f6ec;
    color: #078b4d;
    font-size: 12px;
    font-weight: 900;
    margin-top: 1px;
}

.pcr-option__after p {
    margin: 0;
    color: #59667a;
    font-size: 13px;
    line-height: 1.8;
}

.pcr-option__after strong {
    color: #243149;
}

.pcr-option__form {
    margin: 13px 0 0 !important;
    padding: 0 !important;
}

.pcr-option__submit {
    width: 100%;
    min-height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 11px 18px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: #1769e0 !important;
    color: #fff !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease, transform .2s ease;
}

.pcr-option__submit:hover {
    background: #0f56bd !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.pcr-option__submit[disabled],
.pcr-option__submit.is-loading,
.pcr-option__submit[aria-disabled="true"] {
    opacity: .72;
    cursor: wait;
    pointer-events: none;
    transform: none;
}

.pcr-help {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #dfe9f8;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #f2f7ff 100%);
    text-align: center;
}

.pcr-help h3 {
    margin: 0;
    color: #1c2a41;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.7;
}

.pcr-help > p {
    max-width: 600px;
    margin: 5px auto 0;
    color: #617087;
    font-size: 13px;
    line-height: 1.9;
}

.pcr-help__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.pcr-help__button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #b9c9df;
    border-radius: 12px;
    background: #fff;
    color: #263850;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.pcr-help__button svg {
    width: 19px;
    height: 19px;
}

.pcr-help__button:hover {
    border-color: #6e8db6;
    background: #f8fbff;
    color: #162944;
}

.pcr-help__button--primary {
    border-color: #2166d1;
    color: #145abf;
}

.pcr-help__faq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
    color: #345b91;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.pcr-help__faq:hover {
    color: #174f9e;
}

.pcr-empty {
    padding: 18px;
    border: 1px dashed #cbd5e2;
    border-radius: 16px;
    background: #f8fafc;
    color: #5d6a7d;
    text-align: center;
    font-size: 14px;
    line-height: 1.9;
}

body.pcr-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .pcr-modal {
        align-items: flex-end;
        padding: 0;
    }

    .pcr-modal__overlay {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .pcr-modal__dialog {
        width: 100%;
        max-height: 92dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .pcr-modal.is-open .pcr-modal__dialog {
        transform: translateY(0);
    }

    .pcr-modal__dialog::before {
        content: '';
        position: absolute;
        top: 9px;
        left: 50%;
        width: 44px;
        height: 5px;
        border-radius: 10px;
        background: #d5dce7;
        transform: translateX(-50%);
    }

    .pcr-modal__close {
        top: 18px;
        left: 14px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .pcr-modal__header {
        padding: 36px 54px 16px;
    }

    .pcr-modal__header h2 {
        font-size: 21px;
    }

    .pcr-modal__header p {
        font-size: 13px;
    }

    .pcr-modal__content {
        padding: 14px;
    }

    .pcr-option {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
        border-radius: 17px;
    }

    .pcr-option__icon {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .pcr-option__icon svg {
        width: 27px;
        height: 27px;
    }

    .pcr-option__heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pcr-option__heading h3 {
        font-size: 16px;
    }

    .pcr-option__heading p {
        font-size: 12px;
    }

    .pcr-option__price {
        min-width: 0;
        text-align: right;
    }

    .pcr-option__price strong,
    .pcr-option__price .price {
        font-size: 15px;
    }

    .pcr-option__after {
        margin-top: 9px;
        padding: 9px 10px;
    }

    .pcr-option__after p {
        font-size: 12px;
    }

    .pcr-help {
        padding: 15px;
        border-radius: 17px;
    }

    .pcr-help__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pcr__trigger,
    .pcr-modal,
    .pcr-modal__dialog,
    .pcr-option__submit,
    .pcr-help__button {
        transition: none !important;
    }
}
