/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.payment-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: calc(100% - 40px);
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    z-index: 10001;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.payment-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 4px 8px;
    transition: color 0.2s;
    z-index: 1;
}

.payment-modal-close:hover {
    color: #333;
}

.payment-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    padding-right: 30px;
}

.payment-modal-body .form-group {
    margin-bottom: 18px;
}

.payment-modal-body label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.payment-modal-body .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.payment-modal-body .form-control:focus {
    border-color: #6abf4b;
    box-shadow: 0 0 0 3px rgba(106, 191, 75, 0.15);
}

.payment-modal-body select.form-control {
    appearance: none;
    -webkit-appearance: none;
    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='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.payment-modal-body input[readonly].form-control {
    background: #f7f7f7;
    color: #999;
    cursor: default;
}

.amount-display {
    font-size: 2rem;
    font-weight: 700;
    color: #6abf4b;
    padding: 8px 0 2px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.form-text {
    display: block;
    font-size: 0.76rem;
    color: #bbb;
    margin-top: 5px;
}

.btn-payment {
    width: 100%;
    padding: 14px;
    background: #6abf4b;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 6px;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.btn-payment:hover {
    background: #5aaf3b;
    transform: translateY(-1px);
}

.btn-payment:active {
    transform: translateY(0);
}

@media (max-width: 520px) {
    .payment-modal-content {
        padding: 28px 18px;
        border-radius: 12px;
    }
}
