.payment-section {
    margin-top: 32px;
    padding: 28px;
    border: 1px solid #eadce5;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(255, 79, 163, .10);
}

.payment-section h2 {
    margin: 0 0 10px;
    font-weight: 900;
    color: #0d0d0f;
}

.payment-section > p {
    color: #6b6b72;
    line-height: 1.6;
    margin-bottom: 22px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.payment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f7f4f6;
    border: 2px solid transparent;
    border-radius: 22px;
    padding: 18px;
    min-height: 420px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.payment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(255, 79, 163, .14);
}

.payment-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.payment-card-header input {
    width: 18px;
    height: 18px;
    accent-color: #ff4fa3;
}

.payment-card-header span {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #0d0d0f;
}

.payment-image-button {
    width: 100%;
    height: 310px;
    border: 1px solid #eadce5;
    border-radius: 18px;
    background: #fff;
    padding: 12px;
    cursor: zoom-in;
    overflow: hidden;
}

.payment-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.payment-download {
    text-align: center;
    display: inline-block;
    background: #0d0d0f;
    color: #fff;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 999px;
    font-weight: 900;
}

.payment-download:hover {
    background: #ff4fa3;
    color: #fff;
}

.payment-card:has(input:checked) {
    border-color: #ff4fa3;
    box-shadow: 0 18px 50px rgba(255, 79, 163, .22);
}

.payment-reference {
    margin-top: 22px;
}

/* Enlarged preview modal */

.payment-preview-modal {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
}

.payment-preview-modal .modal-header {
    background: #0d0d0f;
    color: #fff;
    border-bottom: 0;
    padding: 22px 26px;
}

.payment-preview-modal .btn-close {
    filter: invert(1);
}

.payment-preview-modal .modal-title {
    font-weight: 900;
}

.payment-preview-modal .modal-body {
    background: #f7f4f6;
    padding: 26px;
    text-align: center;
}

.payment-preview-modal img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: #fff;
    border-radius: 22px;
    padding: 16px;
    border: 1px solid #eadce5;
}

.payment-preview-download {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .payment-card {
        min-height: auto;
    }

    .payment-image-button {
        height: 420px;
    }
}

@media (max-width: 480px) {
    .payment-section {
        padding: 20px;
    }

    .payment-image-button {
        height: 310px;
    }

    .payment-preview-modal .modal-body {
        padding: 16px;
    }

    .payment-preview-modal img {
        max-height: 70vh;
        padding: 10px;
    }
    .rate-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.rate-list span {
    display: inline-flex;
    width: fit-content;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 800;
}

.rate-box,
.estimated-total-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: #f7f4f6;
    border: 1px solid #eadce5;
}

.rate-box strong,
.estimated-total-box strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
}

.rate-box p,
.estimated-total-box p {
    margin: 4px 0;
    color: #6b6b72;
}

#estimatedTotal {
    font-size: 18px;
    font-weight: 900;
    color: #d92f81;
}
}
.payment-proof-upload {
    margin-top: 22px;
}

.payment-proof-upload input[type="file"] {
    padding: 14px;
    background: #fff;
    border: 1px dashed #ff4fa3;
    border-radius: 14px;
    cursor: pointer;
}

.upload-note {
    display: block;
    margin-top: 8px;
    color: #6b6b72;
    font-size: 13px;
    line-height: 1.5;
}