/* =========================================================
   CHAISE PROCESS
   Payment Modal
========================================================= */


/* =========================================================
   Modal Container
========================================================= */

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}


/* Open State */

.payment-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* =========================================================
   Backdrop
========================================================= */

.payment-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(5, 18, 35, 0.76);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* =========================================================
   Dialog
========================================================= */

.payment-modal-dialog {
    position: relative;
    z-index: 1;

    width: min(100%, 520px);

    padding: 44px;

    background: #ffffff;

    border: 1px solid rgba(16, 36, 62, 0.12);
    border-radius: 10px;

    box-shadow:
        0 28px 70px rgba(5, 18, 35, 0.28),
        0 6px 20px rgba(5, 18, 35, 0.10);

    transform: translateY(14px) scale(0.985);

    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}


.payment-modal.is-open .payment-modal-dialog {
    transform: translateY(0) scale(1);
}


/* =========================================================
   Close Button
========================================================= */

.payment-modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    color: #607086;
    background: transparent;

    border: 1px solid transparent;
    border-radius: 50%;

    font-size: 18px;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}


.payment-modal-close:hover {
    color: #10243e;

    background: #f4f6f8;
    border-color: #e2e7ec;
}


.payment-modal-close:focus-visible {
    outline: 3px solid rgba(190, 151, 82, 0.32);
    outline-offset: 2px;
}


/* =========================================================
   Payment Icon
========================================================= */

.payment-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 22px;

    color: #10243e;
    background: rgba(190, 151, 82, 0.14);

    border: 1px solid rgba(190, 151, 82, 0.28);
    border-radius: 50%;

    font-size: 20px;
}


/* =========================================================
   Header
========================================================= */

.payment-modal-header {
    margin-bottom: 28px;
}


.payment-modal-header .section-label {
    display: block;

    margin-bottom: 10px;

    color: #a77f3e;

    font-family: "Open Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.payment-modal-header h2 {
    margin: 0 0 12px;

    color: #10243e;

    font-family: "Libre Baskerville", serif;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
}


.payment-modal-header p {
    margin: 0;

    color: #5c6877;

    font-family: "Open Sans", sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* =========================================================
   Information Area
========================================================= */

.payment-modal-info {
    display: grid;

    margin-bottom: 28px;

    border-top: 1px solid #e3e7eb;
    border-bottom: 1px solid #e3e7eb;
}


.payment-modal-info-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;

    padding: 18px 0;
}


.payment-modal-info-item + .payment-modal-info-item {
    border-top: 1px solid #e3e7eb;
}


.payment-modal-info-item > i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: #b58a46;
    background: #f8f5ef;

    border-radius: 6px;

    font-size: 14px;
}


.payment-modal-info-item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.payment-modal-info-item strong {
    color: #10243e;

    font-family: "Open Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
}


.payment-modal-info-item span {
    color: #687586;

    font-family: "Open Sans", sans-serif;
    font-size: 0.82rem;
    line-height: 1.55;
}


/* =========================================================
   PayPal Form
========================================================= */

.payment-paypal-form {
    width: 100%;
    margin: 0;
}


.payment-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;

    min-height: 50px;

    cursor: pointer;
}


.payment-submit i {
    font-size: 0.8rem;
}


/* =========================================================
   Security Note
========================================================= */

.payment-security-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;

    margin: 18px 0 0;

    color: #7a8490;

    font-family: "Open Sans", sans-serif;
    font-size: 0.73rem;
    line-height: 1.55;
    text-align: center;
}


.payment-security-note i {
    flex: 0 0 auto;

    margin-top: 3px;

    color: #a77f3e;

    font-size: 0.7rem;
}


/* =========================================================
   Body State While Modal Is Open
========================================================= */

body.payment-modal-open {
    overflow: hidden;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 600px) {

    .payment-modal {
        align-items: flex-end;

        padding: 12px;
    }


    .payment-modal-dialog {
        width: 100%;

        max-height: calc(100vh - 24px);
        overflow-y: auto;

        padding: 36px 24px 28px;

        border-radius: 10px;
    }


    .payment-modal-close {
        top: 12px;
        right: 12px;
    }


    .payment-modal-header {
        margin-bottom: 22px;
    }


    .payment-modal-info {
        margin-bottom: 22px;
    }

}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .payment-modal,
    .payment-modal-dialog,
    .payment-modal-close {
        transition: none;
    }

}