/* ==========================================
   BAGESHWAR DONATION PLUGIN - PREMIUM THEME
   Spiritual • Trustworthy • Premium
   Version: 1.2.0 - Enhanced Design
   ========================================== */

:root {
    /* Primary Colors - Saffron/Gold Theme */
    --bgd-primary: #d4a500;
    --bgd-primary-light: #f4d03f;
    --bgd-primary-dark: #b8860b;
    --bgd-primary-gradient: linear-gradient(135deg, #d4a500 0%, #f4d03f 50%, #b8860b 100%);
    
    /* Secondary Colors - Sacred Brown */
    --bgd-secondary: #8b4513;
    --bgd-secondary-light: #a0522d;
    --bgd-secondary-dark: #5d2906;
    
    /* Status Colors */
    --bgd-success: #28a745;
    --bgd-success-light: #d4edda;
    --bgd-warning: #ffc107;
    --bgd-warning-light: #fff3cd;
    --bgd-error: #dc3545;
    --bgd-error-light: #f8d7da;
    --bgd-info: #17a2b8;
    --bgd-info-light: #d1ecf1;
    
    /* Backgrounds */
    --bgd-bg: #fffbf0;
    --bgd-bg-gradient: linear-gradient(180deg, #fffbf0 0%, #fff8e7 100%);
    --bgd-card: #ffffff;
    --bgd-card-hover: #fffef9;
    
    /* Text Colors */
    --bgd-text: #333333;
    --bgd-text-light: #666666;
    --bgd-text-muted: #999999;
    
    /* Borders & Shadows - Enhanced */
    --bgd-border: #e5d9c3;
    --bgd-border-light: #f0e6d3;
    --bgd-shadow-sm: 0 2px 8px rgba(139, 69, 19, 0.08);
    --bgd-shadow-md: 0 4px 20px rgba(139, 69, 19, 0.12);
    --bgd-shadow-lg: 0 8px 40px rgba(139, 69, 19, 0.15);
    --bgd-shadow-xl: 0 12px 60px rgba(139, 69, 19, 0.18);
    --bgd-shadow-glow: 0 0 30px rgba(212, 165, 0, 0.3);
    --bgd-shadow-glow-strong: 0 0 50px rgba(212, 165, 0, 0.4);
    
    /* Transitions - Smooth */
    --bgd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bgd-transition-fast: all 0.15s ease;
    --bgd-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --bgd-radius-sm: 8px;
    --bgd-radius-md: 12px;
    --bgd-radius-lg: 16px;
    --bgd-radius-xl: 24px;
    --bgd-radius-full: 50px;
}

/* ==========================================
   BASE STYLES - Enhanced
   ========================================== */

.bgd-donation-container,
.bgd-receipt-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 25px;
    font-family: 'Segoe UI', 'Noto Sans Devanagari', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bgd-bg-gradient);
    min-height: 100vh;
}

/* ==========================================
   HEADER - More Premium & Divine
   ========================================== */

.bgd-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 35px 25px;
    background: linear-gradient(135deg, rgba(212, 165, 0, 0.12) 0%, rgba(139, 69, 19, 0.06) 100%);
    border-radius: var(--bgd-radius-xl);
    border: 2px solid var(--bgd-border-light);
    position: relative;
    overflow: hidden;
}

/* Decorative pattern */
.bgd-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a500' fill-opacity='0.04'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.bgd-om-symbol {
    font-size: 80px;
    color: var(--bgd-primary);
    text-shadow: 0 6px 25px rgba(212, 165, 0, 0.5);
    animation: om-pulse 3s ease-in-out infinite;
    display: inline-block;
    position: relative;
    z-index: 1;
}

@keyframes om-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

.bgd-title {
    font-size: 30px;
    color: var(--bgd-secondary);
    margin: 15px 0 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.bgd-subtitle {
    color: var(--bgd-text-light);
    font-size: 16px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.bgd-tagline {
    color: var(--bgd-primary-dark);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ==========================================
   PROGRESS BAR - Enhanced
   ========================================== */

.bgd-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    gap: 8px;
    padding: 22px;
    background: var(--bgd-card);
    border-radius: var(--bgd-radius-lg);
    box-shadow: var(--bgd-shadow-md);
    border: 1px solid var(--bgd-border-light);
}

.bgd-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: var(--bgd-transition);
    cursor: default;
}

.bgd-progress-step.active {
    opacity: 1;
}

.bgd-progress-step .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bgd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    color: var(--bgd-text-light);
    transition: var(--bgd-transition);
    border: 3px solid transparent;
}

.bgd-progress-step.active .step-number {
    background: var(--bgd-primary-gradient);
    color: white;
    box-shadow: var(--bgd-shadow-glow);
    border-color: rgba(255, 255, 255, 0.3);
}

.bgd-progress-step .step-label {
    font-size: 13px;
    margin-top: 8px;
    color: var(--bgd-text-light);
    font-weight: 500;
}

.bgd-progress-step.active .step-label {
    color: var(--bgd-secondary);
    font-weight: 600;
}

.bgd-progress-line {
    width: 55px;
    height: 3px;
    background: var(--bgd-border);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* ==========================================
   CARDS - More Premium
   ========================================== */

.bgd-card {
    background: var(--bgd-card);
    border-radius: var(--bgd-radius-lg);
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: var(--bgd-shadow-md);
    border: 1px solid var(--bgd-border-light);
    transition: var(--bgd-transition);
}

.bgd-card:hover {
    box-shadow: var(--bgd-shadow-lg);
    transform: translateY(-2px);
}

.bgd-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--bgd-primary);
}

.bgd-card-icon {
    font-size: 30px;
}

.bgd-card-title {
    font-size: 20px;
    color: var(--bgd-secondary);
    font-weight: 700;
    margin: 0;
}

/* ==========================================
   FORM ELEMENTS - Enhanced
   ========================================== */

.bgd-form-group {
    margin-bottom: 24px;
}

.bgd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .bgd-form-row {
        grid-template-columns: 1fr;
    }
}

.bgd-form-group label {
    display: block;
    font-weight: 600;
    color: var(--bgd-text);
    margin-bottom: 1px;   /* ✅ FIXED */
    font-size: 15px;
}


.bgd-form-group .required {
    color: var(--bgd-error);
}

.bgd-form-group input,
.bgd-form-group select,
.bgd-form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--bgd-border);
    border-radius: var(--bgd-radius-md);
    font-size: 16px;
    transition: var(--bgd-transition);
    background: #fafafa;
    color: var(--bgd-text);
}

.bgd-form-group input:focus,
.bgd-form-group select:focus,
.bgd-form-group textarea:focus {
    outline: none;
    border-color: var(--bgd-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 165, 0, 0.15);
}

.bgd-form-group input::placeholder,
.bgd-form-group textarea::placeholder {
    color: var(--bgd-text-muted);
}

/* Amount Input */
.bgd-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bgd-amount-input-wrapper .currency-symbol {
    position: absolute;
    left: 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--bgd-primary-dark);
}

.bgd-amount-input-wrapper input {
    padding-left: 45px;
    font-size: 22px;
    font-weight: 600;
}

/* Hint Text */
.bgd-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bgd-text-light);
    margin-top: 10px;
}

.bgd-hint-icon {
    font-size: 15px;
}

/* Field Error */
.bgd-field-error {
    background: var(--bgd-error-light);
    color: var(--bgd-error);
    padding: 12px 16px;
    border-radius: var(--bgd-radius-sm);
    font-size: 13px;
    margin-top: 10px;
    border-left: 4px solid var(--bgd-error);
}

/* Quick Amount Buttons */
.bgd-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.bgd-quick-btn {
    padding: 12px 20px;
    border: 2px solid var(--bgd-border);
    border-radius: var(--bgd-radius-full);
    background: var(--bgd-bg);
    color: var(--bgd-text);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--bgd-transition);
}

.bgd-quick-btn:hover {
    border-color: var(--bgd-primary);
    background: rgba(212, 165, 0, 0.12);
    color: var(--bgd-primary-dark);
    transform: translateY(-2px);
}

.bgd-quick-btn.active {
    background: var(--bgd-primary);
    border-color: var(--bgd-primary);
    color: white;
    box-shadow: var(--bgd-shadow-glow);
}

/* ==========================================
   PAYMENT METHODS - Enhanced
   ========================================== */

.bgd-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 600px) {
    .bgd-payment-methods {
        grid-template-columns: 1fr;
    }
}

.bgd-payment-card {
    cursor: pointer;
    display: block;
}

.bgd-payment-card input {
    display: none;
}

.bgd-payment-card-content {
    padding: 28px 18px;
    border: 2px solid var(--bgd-border);
    border-radius: var(--bgd-radius-lg);
    text-align: center;
    transition: var(--bgd-transition);
    background: var(--bgd-bg);
}

.bgd-payment-card:hover .bgd-payment-card-content {
    border-color: var(--bgd-primary);
    transform: translateY(-3px);
    box-shadow: var(--bgd-shadow-md);
}

.bgd-payment-card input:checked + .bgd-payment-card-content {
    border-color: var(--bgd-primary);
    background: linear-gradient(135deg, rgba(212, 165, 0, 0.15) 0%, rgba(212, 165, 0, 0.05) 100%);
    box-shadow: var(--bgd-shadow-glow);
}

.bgd-payment-card.disabled {
    cursor: not-allowed;
}

.bgd-payment-card.disabled .bgd-payment-card-content {
    opacity: 0.5;
}

.payment-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.payment-name {
    font-weight: 700;
    color: var(--bgd-text);
    display: block;
    font-size: 16px;
}

.payment-desc {
    font-size: 13px;
    color: var(--bgd-text-light);
    display: block;
    margin-top: 5px;
}

.coming-soon {
    font-size: 11px;
    background: var(--bgd-primary);
    color: white;
    padding: 5px 12px;
    border-radius: var(--bgd-radius-full);
    margin-top: 12px;
    display: inline-block;
    font-weight: 600;
}

/* ==========================================
   PAYMENT DETAILS - Enhanced
   ========================================== */

.bgd-payment-details {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8dc 100%);
    border: 2px solid var(--bgd-primary);
    animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.bgd-payment-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px dashed var(--bgd-primary);
}

.payment-icon-large {
    font-size: 52px;
}

.bgd-payment-header h3 {
    margin: 0 0 5px;
    color: var(--bgd-secondary);
    font-size: 21px;
}

.bgd-payment-header p {
    margin: 0;
    color: var(--bgd-text-light);
    font-size: 14px;
}

.payment-header-subtitle {
    font-style: italic;
}

.bgd-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .bgd-detail-grid {
        grid-template-columns: 1fr;
    }
}

.bgd-detail-item {
    background: white;
    padding: 18px;
    border-radius: var(--bgd-radius-md);
    border: 1px solid var(--bgd-border);
    transition: var(--bgd-transition);
}

.bgd-detail-item:hover {
    border-color: var(--bgd-primary);
    box-shadow: var(--bgd-shadow-sm);
}

.bgd-detail-item.full-width {
    grid-column: 1 / -1;
}

.bgd-detail-item .label {
    display: block;
    font-size: 11px;
    color: var(--bgd-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.bgd-detail-item .value {
    font-size: 17px;
    font-weight: 600;
    color: var(--bgd-text);
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bgd-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    opacity: 0.6;
    transition: var(--bgd-transition-fast);
    border-radius: var(--bgd-radius-sm);
}

.bgd-copy-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    background: rgba(212, 165, 0, 0.1);
}

.bgd-instruction-box {
    display: flex;
    gap: 16px;
    background: white;
    border-left: 5px solid var(--bgd-primary);
    padding: 20px 22px;
    margin-top: 25px;
    border-radius: 0 var(--bgd-radius-md) var(--bgd-radius-md) 0;
}

.bgd-instruction-box.bgd-instruction-warning {
    border-left-color: var(--bgd-warning);
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
}

.bgd-instruction-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.bgd-instruction-text strong {
    display: block;
    color: var(--bgd-secondary);
    margin-bottom: 8px;
    font-size: 15px;
}

.bgd-instruction-text p {
    margin: 0;
    color: var(--bgd-text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
   BUTTONS - Enhanced with better effects
   ========================================== */

.bgd-btn {
    padding: 17px 34px;
    border: none;
    border-radius: var(--bgd-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bgd-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.bgd-btn-full {
    width: 100%;
}

.bgd-btn-primary {
    background: var(--bgd-primary-gradient);
    color: white;
    box-shadow: 0 4px 18px rgba(212, 165, 0, 0.4);
}

.bgd-btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 165, 0, 0.5);
}

.bgd-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bgd-btn-secondary {
    background: white;
    color: var(--bgd-text);
    border: 2px solid var(--bgd-border);
}

.bgd-btn-secondary:hover {
    border-color: var(--bgd-primary);
    background: var(--bgd-bg);
    transform: translateY(-2px);
}

.bgd-btn-success {
    background: linear-gradient(135deg, var(--bgd-success), #218838);
    color: white;
    box-shadow: 0 4px 18px rgba(40, 167, 69, 0.4);
}

.bgd-btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.5);
}

.bgd-btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.bgd-btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.bgd-btn-download {
    background: linear-gradient(135deg, var(--bgd-secondary), var(--bgd-secondary-dark));
    color: white;
}

.bgd-btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.bgd-btn-download-receipt {
    width: 100%;
    margin-top: 20px;
    padding: 18px 30px;
    font-size: 17px;
}

.btn-icon {
    font-size: 20px;
}

.bgd-btn-group {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

@media (max-width: 500px) {
    .bgd-btn-group {
        flex-direction: column;
    }
    
    .bgd-btn-group .bgd-btn {
        width: 100%;
    }
}

/* ==========================================
   UPLOAD AREA - Enhanced
   ========================================== */

.bgd-upload-area {
    position: relative;
    border: 2px dashed var(--bgd-border);
    border-radius: var(--bgd-radius-lg);
    padding: 45px 25px;
    text-align: center;
    transition: var(--bgd-transition);
    cursor: pointer;
    background: var(--bgd-bg);
}

.bgd-upload-area:hover {
    border-color: var(--bgd-primary);
    background: rgba(212, 165, 0, 0.06);
}

.bgd-upload-area.dragover {
    border-color: var(--bgd-primary);
    background: rgba(212, 165, 0, 0.12);
    transform: scale(1.02);
}

.bgd-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 18px;
}

.upload-text {
    font-size: 17px;
    color: var(--bgd-text);
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: var(--bgd-text-light);
}

.upload-preview {
    padding: 18px;
    background: white;
    border-radius: var(--bgd-radius-md);
    border: 1px solid var(--bgd-border);
}

.upload-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--bgd-radius-sm);
}

/* ==========================================
   SUCCESS SCREEN - More Celebratory
   ========================================== */

.bgd-success-card {
    text-align: center;
    padding: 45px 35px;
}

.success-animation {
    margin-bottom: 28px;
}

.success-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--bgd-success), #218838);
    color: white;
    font-size: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: successPop 0.6s ease;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.4);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.bgd-success-card h2 {
    color: var(--bgd-secondary);
    margin-bottom: 12px;
    font-size: 26px;
}

.success-message {
    color: var(--bgd-text-light);
    font-size: 18px;
    margin-bottom: 28px;
}

.receipt-info {
    background: var(--bgd-bg);
    padding: 25px;
    border-radius: var(--bgd-radius-md);
    margin-bottom: 22px;
    border: 2px solid var(--bgd-border);
}

.receipt-info .label {
    display: block;
    font-size: 12px;
    color: var(--bgd-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.receipt-info .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--bgd-primary-dark);
    letter-spacing: 2px;
}

.bgd-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: var(--bgd-radius-md);
    margin-bottom: 22px;
    text-align: left;
}

.bgd-notice-info {
    background: var(--bgd-info-light);
    border: 1px solid var(--bgd-info);
}

.bgd-notice-warning {
    background: var(--bgd-warning-light);
    border: 1px solid var(--bgd-warning);
}

.bgd-notice-error {
    background: var(--bgd-error-light);
    border: 1px solid var(--bgd-error);
}

.bgd-notice-success {
    background: var(--bgd-success-light);
    border: 1px solid var(--bgd-success);
}

.notice-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.bgd-notice p {
    margin: 0;
    font-size: 14px;
    color: var(--bgd-text);
    line-height: 1.6;
}

.contact-note {
    color: var(--bgd-text-light);
    font-size: 15px;
    margin-bottom: 28px;
}

.bgd-success-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.bgd-blessing {
    padding: 25px;
    background: linear-gradient(135deg, rgba(212, 165, 0, 0.12) 0%, rgba(139, 69, 19, 0.06) 100%);
    border-radius: var(--bgd-radius-md);
    border: 2px solid var(--bgd-border);
}

.bgd-blessing p {
    margin: 0;
    color: var(--bgd-secondary);
    font-weight: 700;
    font-size: 22px;
}

.blessing-text {
    font-style: italic;
    font-size: 15px !important;
    color: var(--bgd-text-light) !important;
    font-weight: 400 !important;
    margin-top: 10px !important;
}

.blessing-text-en {
    font-style: italic;
    font-size: 13px !important;
    color: var(--bgd-text-muted) !important;
    font-weight: 400 !important;
    margin-top: 6px !important;
}

/* ==========================================
   RECEIPT PAGE - Enhanced
   ========================================== */

.bgd-divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
}

.bgd-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bgd-border);
}

.bgd-divider span {
    background: var(--bgd-card);
    padding: 0 22px;
    position: relative;
    color: var(--bgd-text-light);
    font-size: 14px;
    font-weight: 500;
}

/* Receipt Result States - FIXED: All states styled properly */
#bgd-receipt-result .bgd-card {
    text-align: center;
    animation: fadeSlideIn 0.4s ease;
}

/* Input Error State */
.result-input-error {
    border-left: 5px solid var(--bgd-warning);
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e7 100%);
}

.result-input-error .result-icon {
    font-size: 52px;
    margin-bottom: 18px;
}

.result-input-error h3 {
    color: #856404;
    margin-bottom: 12px;
    font-size: 20px;
}

/* Not Found State - Case A */
.result-not-found {
    border-left: 5px solid var(--bgd-error);
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
}

.result-not-found .result-icon {
    font-size: 52px;
    margin-bottom: 18px;
}

.result-not-found h3 {
    color: var(--bgd-error);
    margin-bottom: 12px;
    font-size: 20px;
}

.result-not-found p {
    color: var(--bgd-text);
    font-size: 15px;
    margin-bottom: 8px;
}

.result-subtext {
    color: var(--bgd-text-muted) !important;
    font-size: 13px !important;
    font-style: italic;
}

/* Pending State - Case B */
.result-pending {
    border-left: 5px solid var(--bgd-warning);
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e7 100%);
}

.result-pending .result-icon {
    font-size: 52px;
    margin-bottom: 18px;
}

.result-pending h3 {
    color: #856404;
    margin-bottom: 12px;
    font-size: 20px;
}

/* Verified State - Case C */
.result-verified {
    border-left: 5px solid var(--bgd-success);
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
}

.result-verified .result-icon {
    font-size: 56px;
    margin-bottom: 18px;
}

.result-verified h3 {
    color: var(--bgd-success);
    margin-bottom: 12px;
    font-size: 22px;
}

.result-verified p {
    color: var(--bgd-text);
    font-size: 16px;
}

/* Connection Error State */
.result-connection-error {
    border-left: 5px solid var(--bgd-text-muted);
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
}

.result-connection-error .result-icon {
    font-size: 52px;
    margin-bottom: 18px;
}

.result-connection-error h3 {
    color: var(--bgd-text);
    margin-bottom: 12px;
}

/* Result Details Box */
.result-details {
    margin: 22px 0;
    text-align: left;
    background: white;
    padding: 18px;
    border-radius: var(--bgd-radius-md);
    border: 1px solid var(--bgd-border);
}

.result-details p {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.result-details strong {
    color: var(--bgd-text-light);
}

.result-details span {
    font-weight: 600;
    color: var(--bgd-text);
}

/* ==========================================
   MESSAGE CONTAINER - Enhanced
   ========================================== */

#bgd-message-container {
    margin-bottom: 22px;
}

.bgd-message {
    padding: 18px 22px;
    border-radius: var(--bgd-radius-md);
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: fadeSlideIn 0.3s ease;
}

.bgd-message-error {
    background: var(--bgd-error-light);
    border: 1px solid var(--bgd-error);
    color: #721c24;
}

.bgd-message-success {
    background: var(--bgd-success-light);
    border: 1px solid var(--bgd-success);
    color: #155724;
}

.bgd-message-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.bgd-message-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================
   RESPONSIVE DESIGN - Enhanced
   ========================================== */

@media (max-width: 768px) {
    .bgd-donation-container,
    .bgd-receipt-container {
        padding: 18px;
    }
    
    .bgd-header {
        padding: 28px 18px;
        margin-bottom: 32px;
    }
    
    .bgd-om-symbol {
        font-size: 60px;
    }
    
    .bgd-title {
        font-size: 24px;
    }
    
    .bgd-card {
        padding: 24px;
    }
    
    .bgd-progress-bar {
        padding: 16px 12px;
    }
    
    .bgd-progress-step .step-number {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    
    .bgd-progress-line {
        width: 40px;
    }
    
    .bgd-btn {
        padding: 15px 26px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .bgd-quick-amounts {
        justify-content: center;
    }
    
    .bgd-quick-btn {
        flex: 1;
        min-width: calc(50% - 6px);
        justify-content: center;
    }
    
    .bgd-payment-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   ANIMATIONS - Enhanced
   ========================================== */

.bgd-step {
    animation: fadeSlideIn 0.4s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Smooth hover effects */
.bgd-card,
.bgd-btn,
.bgd-quick-btn,
.bgd-payment-card-content,
.bgd-detail-item {
    will-change: transform;
}

/* =========================================
   FIX: Select dropdown text clipping issue
   ========================================= */

.bgd-form-group select {
    height: auto;
    min-height: 48px;
    line-height: 1.4;
    padding: 12px 16px;
    box-sizing: border-box;
}

/* Option text clarity */
.bgd-form-group select option {
    line-height: 1.4;
    padding: 8px 10px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .bgd-form-group select {
        min-height: 46px;
        font-size: 15px;
    }
}

