.quickpay-container {
    max-width: 350px;
    min-height: 350px; /* Increased height for better logo display */
    margin: 40px auto;
    padding: 32px 16px 24px 16px; /* More top padding for logo */
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fafbfc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.quickpay-logo {
    width: 300px; /* Increased width for logo */
    max-width: 90%;
    height: 100px; /* Add explicit height */
    display: block;
    margin: 0 auto 14px auto;
    background-image: url('../Images/logo.png?v=2018');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Force background to print */
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
}

@media print {
    .quickpay-logo {
        /* Force background image to print */
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        /* Ensure it's visible */
        display: block !important;
        visibility: visible !important;
        /* Optional: Add a border for reference if background still doesn't print */
        /* border: 1px solid #ddd; */
    }
}

@media (max-width: 480px) {
    .quickpay-logo {
        width: 70vw;
        max-width: 98vw;
        height: 80px; /* Smaller height for mobile */
    }
}
.quickpay-label {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2.0rem;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
    padding-bottom: 10px;
    padding-top: 2px;
    letter-spacing: 1px;
}
.quickpay-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}
.quickpay-button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.quickpay-button:hover {
    background: #125ea2;
}
.quickpay-message {
    display: block;
    margin-top: 16px;
    font-size: 1rem;
    color: #d9534f; /* Bootstrap danger color for error messages */
    text-align: center;
    word-break: break-word;
    padding: 8px 12px;
    background: #fff3cd; /* Light yellow background for visibility */
    border: 1px solid #ffeeba;
    border-radius: 4px;
    min-height: 24px;
    box-sizing: border-box;
    max-width: 100%;
}
.quickpay-amount-label {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 20px 0;
    display: block;
}
.quickpay-instruction-label {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    text-align: center;
    margin: 15px 0;
    display: block;
    line-height: 1.5;
}
.quickpay-thankyou-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 16px 0 12px 0;
    display: block;
    line-height: 1.6;
    padding: 16px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}

.quickpay-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin: 8px 0;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.quickpay-detail-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555555;
    flex: 0 0 auto;
    margin-right: 12px;
}

.quickpay-detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1976d2;
    text-align: right;
    flex: 1 1 auto;
}

.quickpay-financial-details {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 24px 20px;
    margin: 0 0 24px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.quickpay-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 40px;
}

.quickpay-amount-description {
    font-size: 1.05rem;
    font-weight: 600;
    color: #495057;
    flex: 0 0 auto;
}

.quickpay-amount-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1976d2;
    text-align: right;
    flex: 1 1 auto;
    padding-left: 16px;
}

.quickpay-surcharge-message {
    display: block;
    margin: 0 0 16px 0;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #856404;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border: 2px solid #ffc107;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.15);
}

.quickpay-surcharge-row {
    background: rgba(255, 193, 7, 0.08);
    border-radius: 6px;
    margin: 4px 0;
}

.quickpay-surcharge-row .quickpay-amount-description {
    color: #856404;
}

.quickpay-surcharge-value {
    color: #d97706 !important;
}

.quickpay-divider {
    border: none;
    border-top: 2px solid #dee2e6;
    margin: 16px 0;
}

.quickpay-total-row {
    padding: 16px 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 8px;
    margin-top: 0px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

.quickpay-total-description {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b5e20;
    flex: 0 0 auto;
}

.quickpay-total-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2e7d32;
    text-align: right;
    flex: 1 1 auto;
    padding-left: 16px;
    letter-spacing: 0.5px;
}

.quickpay-checkbox {
    display: block;
    margin: 16px auto;
    padding: 14px 16px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.95rem;
    color: #333;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    max-width: 500px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.quickpay-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
}

.quickpay-checkbox:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.quickpay-checkbox input[type="checkbox"]:checked {
    accent-color: #1976d2;
}

.quickpay-checkbox label {
    cursor: pointer;
    user-select: none;
}

/* For ASP.NET checkbox rendering */
.quickpay-checkbox label {
    display: inline;
    margin: 0;
    padding: 0;
    font-weight: 500;
}

/* Ensure checkbox and label are aligned */
.quickpay-checkbox input {
    position: relative;
    top: 2px;
}

@media (max-width: 480px) {
    .quickpay-container {
        max-width: 98vw;
        min-height: unset;
        padding: 16px 4vw;
    }
    .quickpay-logo {
        width: 70vw;
        max-width: 98vw;
        height: 80px; /* Smaller height for mobile */
    }
    .quickpay-detail-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
    }
    
    .quickpay-detail-label {
        margin-bottom: 4px;
        font-size: 0.9rem;
    }
    
    .quickpay-detail-value {
        text-align: left;
        font-size: 0.95rem;
    }
    .quickpay-financial-details {
        padding: 18px 14px;
    }
    
    .quickpay-amount-row {
        padding: 10px 6px;
        min-height: 36px;
    }
    
    .quickpay-amount-description,
    .quickpay-total-description {
        font-size: 0.95rem;
    }
    
    .quickpay-amount-value {
        font-size: 1rem;
    }
    
    .quickpay-total-value {
        font-size: 1.3rem;
    }
    
    .quickpay-surcharge-message {
        font-size: 0.88rem;
        padding: 10px 12px;
    }
    
    .quickpay-checkbox {
        font-size: 0.9rem;
        padding: 12px 14px;
        margin: 14px auto;
    }
    
    .quickpay-checkbox input[type="checkbox"] {
        margin-right: 8px;
        width: 16px;
        height: 16px;
    }
}