/* =========================================
   PAYMENT VERIFICATION INTERFACE STYLING
   ========================================= */

.payment-wrapper {
    padding: 10px;
    color: var(--theme-text);
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.payment-section-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 800;
    font-size: 24px;
    border-bottom: 2px solid var(--theme-border);
    padding-bottom: 15px;
    color: var(--theme-text);
}

/* --- 2-Column Grid Layout --- */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* --- Left Column (Inputs & Instructions) --- */
.payment-input-group {
    margin-bottom: 20px;
    width: 100%;
}

.payment-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--theme-text);
    font-size: 14px;
}

.payment-select, .payment-input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 12px;
    border: 2px solid var(--theme-border);
    background: var(--theme-bg-2);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.payment-select:focus, .payment-input:focus {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    background: var(--theme-bg-1);
}

html.dark .payment-select:focus, html.dark .payment-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

/* --- NEW: Custom Select Dropdown with Icons --- */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 15px;
    border-radius: 12px;
    border: 2px solid var(--theme-border);
    background: var(--theme-bg-2);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

html.dark .custom-select-trigger {
    background: rgba(255, 255, 255, 0.05);
}

.custom-select-trigger:hover {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    background: var(--theme-bg-1);
}

html.dark .custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.selected-content-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .arrow-icon {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--theme-bg-1);
    border: 2px solid var(--theme-border);
    border-radius: 12px;
    margin-top: 5px;
    z-index: 999;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

html.dark .custom-option {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: var(--theme-bg-2);
}

/* --- QR Code Display --- */
.qr-code-container {
    animation: fadeIn 0.5s ease;
}

/* --- Instructions Card --- */
.payment-instructions-card {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark .payment-instructions-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.instructions-card-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 15px;
    color: var(--theme-border);
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.6;
    font-size: 13px;
    color: var(--theme-text);
}

.instructions-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.check-icon {
    color: #2ecc71; /* Green Tick */
    margin-right: 10px;
    margin-top: 3px;
    font-size: 16px;
}

/* --- Right Column (Billing, Upload, Button) --- */
.payment-right-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.billing-amount-box {
    background: var(--theme-bg-2);
    border: 2px solid var(--theme-border);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.billing-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
}

.billing-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--theme-border);
    margin-top: 5px;
}

/* --- Upload Area (Matching your provided image) --- */
.upload-container {
    width: 100%;
    margin-top: 5px;
}

.upload-dashed-box {
    border: 2px dashed #b0b8c1;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    transition: 0.3s;
}

html.dark .upload-dashed-box {
    background: rgba(0, 0, 0, 0.2);
    border-color: #5E2A5D; 
}

/* Disabled State Styling */
.upload-container.disabled .upload-dashed-box {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.02);
}

.upload-icon {
    font-size: 45px;
    color: #b0b8c1;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
}

.upload-subtext {
    font-size: 12px;
    color: #adb5bd;
}

html.dark .upload-icon, 
html.dark .upload-text, 
html.dark .upload-subtext {
    color: #a0aab5;
}

/* --- Verify Payment Button --- */
.verify-action-box {
    margin-top: 10px;
}

.payment-verify-btn {
    width: 100%;
    padding: 16px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-verify-btn:hover {
    background: var(--btn-hover);
    color: var(--btn-hover-text);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Alert Messages --- */
.payment-alert-box {
    padding: 12px 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
    animation: fadeIn 0.3s;
}

.payment-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .payment-section-title {
        font-size: 20px;
    }
    
    .billing-value {
        font-size: 24px;
    }
}