/* 
    Checkout & Payment Premium Styles
    Project: Growth School
*/

/* --- Common Checkout Layout --- */
.page-header {
    background-color: #f8fbff;
}

.loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.loader img {
    width: 70px;
}

.lbl_msg {
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* --- Billing & Form Styles --- */
.billing_details {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #ebebeb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
}

.billing_input_box {
    margin-bottom: 20px;
    position: relative;
}

.billing_input_box input.form-control,
.billing_input_box select.form-select {
    height: 52px !important;
    width: 100% !important;
    background-color: transparent !important;
    border: 2px solid #ebebeb !important;
    padding: 0 20px !important;
    outline: none !important;
    font-size: 16px !important;
    color: #444 !important;
    font-weight: 400 !important;
    border-radius: 8px !important;
    line-height: 52px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.billing_input_box input.form-control:focus,
.billing_input_box select.form-select:focus {
    border-color: #0067ff !important;
}

/* --- Package Selection (aiz-megabox) --- */
.aiz-megabox input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.aiz-megabox-elem {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.aiz-megabox-elem:hover {
    border-color: #0067ff;
}

.aiz-megabox>input:checked~.aiz-megabox-elem {
    border-color: #0067ff;
    background: #f8fbff;
    box-shadow: 0 5px 15px rgba(0, 103, 255, 0.1);
}

.aiz-megabox>input:checked~.aiz-megabox-elem .fw-bold {
    color: #0067ff !important;
}

/* --- Payment Modes Architecture --- */
.payment-modes-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #ebebeb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    animation: fadeInUp 0.5s ease;
}

.payment-accordion .accordion-item {
    border: 1px solid #ebebeb;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.payment-accordion .accordion-item:hover {
    border-color: #0067ff;
    box-shadow: 0 5px 15px rgba(0, 103, 255, 0.05);
}

.payment-accordion .accordion-button {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    background: #fff;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-accordion .accordion-button:not(.collapsed) {
    color: #0067ff;
    background: #f8fbff;
}

.payment-accordion .accordion-button i {
    font-size: 20px;
    color: #0067ff;
    width: 30px;
    text-align: center;
}

.payment-accordion .accordion-body {
    padding: 25px 28px;
    background: #fff;
    border-top: 1px solid #f2f2f2;
}

/* --- Cash Payment (QR) Specifics --- */
.cash-payment-section {
    padding: 50px 0;
    background: #f8fbff;
}

.payment-verification-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #ebebeb;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.qr-display-box {
    background: #fcfdfe;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.amount-badge {
    display: inline-block;
    background: rgba(0, 103, 255, 0.08);
    color: #0067ff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
}

.upi-detail-card {
    background: #fff;
    border: 2px dashed #0067ff;
    padding: 18px 22px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.upi-id-value {
    font-size: 19px;
    font-weight: 700;
    color: #222;
}

.copy-trigger {
    background: #0067ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.whatsapp-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-contact:hover {
    background: #1eb956;
    color: #fff;
    transform: translateY(-3px);
}

.preview-container {
    width: 100px;
    height: 100px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin: 0 auto;
}

/* --- Responsive Improvements --- */
@media (max-width: 991px) {

    .billing_details,
    .payment-modes-container,
    .payment-verification-card {
        padding: 20px;
    }

    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .amount-badge {
        font-size: 18px;
        padding: 6px 15px;
    }

    .qr-display-box {
        padding: 20px;
    }

    .upi-detail-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .upi-id-value {
        font-size: 16px;
    }

    .copy-trigger {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .cash-payment-section {
        padding: 30px 0;
    }

    .thm-btn {
        font-size: 16px;
        padding: 12px 25px;
    }

    .aiz-megabox-elem {
        padding: 8px;
    }

    .aiz-megabox-elem .fw-bold {
        font-size: 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}