/* SureWay Donation Plugin Styles - Modern & Attractive Design */
/* Version: Updated with Mobile Optimizations and White Background */
/* Last Updated: November 26, 2025 */

/* CSS Variables for Consistent Theming */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --light-bg: #f7fafc;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* General Donation Form Styles */
.sureway-donation-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: var(--shadow-lg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.sureway-donation-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.sureway-donation-form h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.sureway-donation-form .donation-description {
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.8;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
}

/* Currency Selector Styles */
.currency-selector-section {
    margin-bottom: 35px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.currency-selector-section::before {
    content: '💱';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--card-bg);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.currency-selector-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.currency-selector {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    background: var(--card-bg);
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
}

.currency-selector:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.currency-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.currency-converter-info {
    margin-top: 15px;
    display: block;
}

.conversion-note {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-color);
    display: block;
}

/* Amount Selection Styles */
.donation-amounts {
    margin-bottom: 35px;
    position: relative;
}

.donation-amounts label {
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 18px;
    text-align: center;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.amount-button {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.amount-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.amount-button:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.amount-button:hover::before {
    left: 100%;
}

.amount-button.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.amount-button .currency-symbol {
    font-weight: bold;
    font-size: 18px;
}

.custom-amount-wrapper {
    position: relative;
    margin-top: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    border: 2px dashed var(--border-color);
    transition: var(--transition);
}

.custom-amount-wrapper label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.custom-amount-wrapper:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.02);
}

.custom-amount-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    box-sizing: border-box;
    background: var(--card-bg);
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.custom-amount-input:hover {
    border-color: var(--primary-color);
}

.currency-symbol-input {
    position: absolute;
    right: 20px;
    top: calc(50% + 12px);
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
    color: var(--primary-color);
    pointer-events: none;
    background: var(--card-bg);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Donor Information Styles */
.donor-info {
    margin-bottom: 35px;
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.donor-info::before {
    content: '👤';
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.donor-info h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    margin-left: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 15px;
}

.form-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: var(--transition);
    box-sizing: border-box;
    background: var(--card-bg);
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-field input:hover {
    border-color: var(--primary-color);
}

.form-field input.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.form-field input.error:focus {
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.2);
}

/* Payment Methods Styles */
.payment-methods {
    margin-bottom: 35px;
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.payment-methods::before {
    content: '💳';
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.payment-methods h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    margin-left: 15px;
}

.payment-method-option {
    margin-bottom: 15px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    background: var(--card-bg);
    overflow: hidden;
    position: relative;
}

.payment-method-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.6s;
}

.payment-method-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
}

.payment-method-option:hover::before {
    left: 100%;
}

.payment-method-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.payment-method-option label {
    cursor: pointer;
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    transition: var(--transition);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.payment-method-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--primary-color);
    font-weight: 600;
}

.payment-method-option input[type="radio"]:checked {
    border-color: var(--primary-color);
}

.payment-specific-field {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.phone-field {
    margin-top: 0;
    width: 100%;
}

.phone-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 15px;
}

.phone-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    box-sizing: border-box;
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    transition: var(--transition);
}

.phone-field input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-field input:hover {
    border-color: var(--primary-color);
}

/* Force white background and remove any potential dark styling */
.sureway-donation-form,
.sureway-donation-form * {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

.currency-selector-section,
.donor-info,
.payment-methods {
    background: var(--light-bg) !important;
}

/* Ensure form elements are properly styled */
.form-field input,
.currency-selector,
.custom-amount-input,
.phone-field input {
    background-color: #ffffff !important;
    color: #2d3748 !important;
    border-color: #e2e8f0 !important;
}

/* Donation Button Styles */
.donate-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.donate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.donate-button:hover::before {
    left: 100%;
}

.donate-button:active {
    transform: translateY(0);
}

.donate-button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.donate-button.processing {
    background: #a0aec0;
    cursor: wait;
}

.donate-button .button-text {
    position: relative;
    z-index: 1;
}

/* Additional Form Improvements */
.sureway-donation-form * {
    box-sizing: border-box;
}

.sureway-donation-form input,
.sureway-donation-form select,
.sureway-donation-form button {
    font-family: inherit;
}

/* Ensure white background on all form elements */
.form-field input,
.currency-selector,
.custom-amount-input,
.phone-field input {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

/* Better mobile button styling */
.donate-button {
    min-height: 48px; /* Ensure touch-friendly size */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Improved focus states for accessibility */
.form-field input:focus,
.currency-selector:focus,
.custom-amount-input:focus,
.phone-field input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Better spacing for mobile */
@media (max-width: 768px) {
    .currency-selector-section::before,
    .donor-info::before,
    .payment-methods::before {
        top: -8px;
        font-size: 12px;
    }
    
    .currency-selector-section label,
    .donation-amounts label {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .form-field label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .conversion-note {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .sureway-donation-form {
        padding: 10px;
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .amount-button {
        padding: 10px;
        font-size: 13px;
    }
    
    .donate-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Modern Animations and Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-8px);
    }
    70% {
        transform: translateY(-4px);
    }
    90% {
        transform: translateY(-2px);
    }
}

.sureway-donation-form {
    animation: fadeInUp 0.6s ease-out;
}

.donation-amounts,
.donor-info,
.payment-methods,
.currency-selector-section {
    animation: fadeInUp 0.6s ease-out;
}

.donation-amounts {
    animation-delay: 0.1s;
}

.donor-info {
    animation-delay: 0.2s;
}

.payment-methods {
    animation-delay: 0.3s;
}

.donation-submit {
    animation-delay: 0.4s;
}

/* Focus States */
.form-field input:focus,
.currency-selector:focus,
.custom-amount-input:focus {
    transform: translateY(-1px);
}

.amount-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.payment-method-option input[type="radio"]:focus + label {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Payment Success Notice */
.payment-success-notice {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 178, 172, 0.1));
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    animation: slideInFromTop 0.5s ease-out;
}

.payment-success-notice .success-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    animation: successPulse 1s ease-in-out;
}

.payment-success-notice h4 {
    color: var(--success-color);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.payment-success-notice p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Success Animation */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Donation Summary Enhancements */
.donation-summary {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    margin-bottom: 25px;
}

.donation-summary h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item:hover {
    background: rgba(102, 126, 234, 0.05);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 6px;
}

.summary-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.summary-value {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: right;
    word-break: break-all;
}

.summary-value:not(:empty) {
    color: var(--text-primary);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: var(--card-bg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.rounded { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: #ffffff;
        --light-bg: #f7fafc;
        --text-primary: #2d3748;
        --text-secondary: #718096;
        --border-color: #e2e8f0;
    }
    
    .sureway-donation-form {
        background: var(--card-bg);
        color: var(--text-primary);
    }
    
    .amount-button {
        background: var(--card-bg);
        color: var(--text-primary);
    }
    
    .form-field input,
    .currency-selector,
    .custom-amount-input {
        background: var(--card-bg);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
}

/* Print Styles */
@media print {
    .sureway-donation-form {
        box-shadow: none;
        border: 2px solid #000;
        background: white !important;
    }
    
    .donate-button,
    .payment-methods,
    .currency-selector-section {
        display: none;
    }
    
    .donation-summary {
        background: white !important;
        border: 2px solid #000;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800080;
        --border-color: #000000;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
    
    .amount-button,
    .form-field input,
    .currency-selector,
    .custom-amount-input {
        border-width: 3px;
    }
    
    .donate-button {
        border: 3px solid #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .amount-button:hover,
    .donate-button:hover {
        transform: none;
    }
}

/* Donation Summary Styles */
.donation-summary {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    margin: 25px 0;
    position: relative;
}

.donation-summary::before {
    content: '📋';
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.donation-summary h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    margin-left: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
    border-top: 2px solid var(--primary-color);
    margin-top: 15px;
    font-size: 18px;
    font-weight: 700;
}

.summary-total .summary-label {
    color: var(--primary-color);
}

.summary-total .summary-value {
    color: var(--primary-color);
    font-size: 20px;
}

.donate-button .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Security Notice */
.security-notice {
    text-align: center;
    margin-top: 15px;
    color: #666;
}

.security-notice small {
    font-size: 12px;
}

.security-notice .icon-lock:before {
    content: "🔒";
    margin-right: 5px;
}

/* No Payment Methods Warning */
.no-payment-methods {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    text-align: center;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Loading States and Messages */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.donation-message {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin: 20px 0;
    font-weight: 500;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.donation-message.success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 178, 172, 0.1));
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.donation-message.success::before {
    content: '✅';
    margin-right: 10px;
    font-size: 16px;
}

.donation-message.error {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1), rgba(229, 62, 62, 0.1));
    border: 1px solid rgba(245, 101, 101, 0.3);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.donation-message.error::before {
    content: '❌';
    margin-right: 10px;
    font-size: 16px;
}

.donation-message.warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1), rgba(221, 107, 32, 0.1));
    border: 1px solid rgba(237, 137, 54, 0.3);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.donation-message.warning::before {
    content: '⚠️';
    margin-right: 10px;
    font-size: 16px;
}

.donation-message.info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.donation-message.info::before {
    content: 'ℹ️';
    margin-right: 10px;
    font-size: 16px;
}

/* Progress Indicators */
.donation-progress {
    margin: 25px 0;
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.progress-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.progress-bar-container {
    background: #e2e8f0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    transition: width 1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-percentage {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

/* Statistics Styles */
.sureway-donation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    .sureway-donation-form {
        padding: 15px;
        margin: 15px;
        border-radius: var(--border-radius-sm);
        max-width: calc(100% - 30px);
    }
    
    .sureway-donation-form h3 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .currency-selector-section,
    .donor-info,
    .payment-methods {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .donation-amounts {
        margin-bottom: 20px;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .amount-button {
        padding: 15px 12px;
        font-size: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .custom-amount-wrapper {
        padding: 15px;
        margin-top: 15px;
    }
    
    .custom-amount-input {
        padding: 14px 45px 14px 16px;
        font-size: 16px;
    }
    
    .donate-button {
        padding: 14px 30px;
        font-size: 16px;
        margin-top: 15px;
    }
    
    .donor-info h4,
    .payment-methods h4 {
        font-size: 18px;
        margin-bottom: 15px;
        margin-left: 10px;
    }
    
    .donor-info::before,
    .payment-methods::before,
    .currency-selector-section::before {
        left: 15px;
        font-size: 14px;
        padding: 4px 8px;
    }
    
    .donation-summary {
        padding: 15px;
        margin: 15px 0;
    }
    
    .summary-item,
    .summary-total {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .summary-total {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sureway-donation-form {
        padding: 12px;
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .sureway-donation-form h3 {
        font-size: 22px;
    }
    
    .amount-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .amount-button {
        padding: 12px;
        font-size: 14px;
    }
    
    .currency-selector-section,
    .donor-info,
    .payment-methods {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .custom-amount-wrapper {
        padding: 12px;
    }
    
    .custom-amount-input {
        padding: 12px 40px 12px 14px;
        font-size: 15px;
    }
    
    .donate-button {
        padding: 12px 20px;
        font-size: 15px;
        letter-spacing: 0.3px;
    }
    
    .form-field input,
    .currency-selector,
    .phone-field input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .payment-method-option label {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .donor-info h4,
    .payment-methods h4 {
        font-size: 16px;
        margin-left: 5px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .progress-bar-container {
        height: 10px;
    }
}

/* Multi-step Form Styles */
.donation-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding: 20px 0;
}

.donation-steps-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.step.active .step-number {
    background: #0073aa;
    color: white;
}

.step.active .step-label {
    color: #0073aa;
    font-weight: 600;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-number:after {
    content: '✓';
    font-size: 14px;
}

.step.completed .step-label {
    color: #28a745;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: #28a745;
    transition: width 0.5s ease;
    z-index: 1;
    width: 0%;
    margin-top: -1px;
}

.progress-line:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: #e9ecef;
    z-index: -1;
    width: 300%;
}

/* Step containers */
.donation-step {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 300px;
    display: none;
}

.donation-step:first-of-type {
    display: block;
}

.donation-step h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Step navigation buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-back,
.btn-next {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover:not(:disabled) {
    background: #545b62;
}

.btn-next {
    background: #0073aa;
    color: white;
    margin-left: auto;
}

.btn-next:hover:not(:disabled) {
    background: #005a87;
}

.btn-next:disabled,
.btn-back:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Payment method selection */
.payment-method-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-method-option:hover {
    border-color: #0073aa;
    background-color: #f8f9fa;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method-option label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    display: block;
    width: 100%;
}

.payment-method-option input[type="radio"]:checked + label {
    color: #0073aa;
}

.payment-method-option:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background-color: #e7f3ff;
}

/* M-Pesa payment section */
.mpesa-payment-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.mpesa-pay-button {
    width: 100%;
    background: linear-gradient(135deg, #00A86B, #008B5A);
    color: white !important;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpesa-pay-button * {
    color: white !important;
}

.mpesa-pay-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #008B5A, #007147);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 107, 0.3);
}

.mpesa-pay-button:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.mpesa-pay-button .loading-spinner {
    display: none;
}

.mpesa-pay-button.loading .button-text {
    display: none;
}

.mpesa-pay-button.loading .loading-spinner {
    display: inline-block;
}

/* Payment Status Indicators */
.mpesa-payment-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.payment-pending {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.payment-success {
    background: #d1edff;
    border: 1px solid #74b9ff;
    color: #155724;
}

.payment-failed {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.payment-timer {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
}

#payment-countdown {
    color: var(--warning-color);
    font-weight: 700;
    font-size: 18px;
}

.retry-payment-button {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.retry-payment-button:hover {
    background: #e53e3e;
}

/* Payment status icons */
.mpesa-payment-status i {
    margin-right: 8px;
    font-size: 16px;
}

.icon-clock::before { content: "⏰"; }
.icon-check::before { content: "✅"; }
.icon-x::before { content: "❌"; }

/* Loading spinner animation */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Payment section responsive */
@media (max-width: 768px) {
    .mpesa-payment-section {
        margin-top: 15px;
        padding: 15px;
    }
    
    .mpesa-pay-button {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .payment-timer {
        font-size: 13px;
    }
}

/* Credit Card Payment Section */
.stripe-payment-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.stripe-card-element {
    background: white;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    transition: var(--transition);
}

.stripe-card-element:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.stripe-pay-button {
    width: 100%;
    background: linear-gradient(135deg, #635bff, #4f46e5);
    color: white !important;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stripe-pay-button * {
    color: white !important;
}

.stripe-pay-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.3);
}

.stripe-pay-button:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* PayPal Payment Section */
.paypal-payment-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.paypal-email-field {
    margin-bottom: 15px;
}

.paypal-email-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 15px;
}

.paypal-email-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    box-sizing: border-box;
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    transition: var(--transition);
}

.paypal-email-field input:focus {
    outline: none;
    border-color: #0070ba;
    box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.1);
}

.paypal-pay-button {
    width: 100%;
    background: linear-gradient(135deg, #0070ba, #003087);
    color: white !important;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paypal-pay-button * {
    color: white !important;
}

.paypal-pay-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #003087, #001c64);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.3);
}

.paypal-pay-button:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Payment status sections */
.stripe-payment-status,
.paypal-payment-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
}

/* Payment buttons loading states */
.stripe-pay-button.loading .button-text,
.paypal-pay-button.loading .button-text {
    display: none;
}

.stripe-pay-button.loading .loading-spinner,
.paypal-pay-button.loading .loading-spinner {
    display: inline-block;
}

.stripe-pay-button .loading-spinner,
.paypal-pay-button .loading-spinner {
    display: none;
}

/* Payment method icons */
.payment-method-icon {
    margin-right: 10px;
    font-size: 18px;
}

.payment-method-option .stripe-icon::before { content: "💳"; }
.payment-method_option .paypal-icon::before { content: "🅿️"; }
.payment-method-option .mpesa-icon::before { content: "📱"; }

/* ===== GLOBAL CREDIT CARD PAYMENT STYLES ===== */

.global-card-payment-section {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    animation: slideInUp 0.4s ease-out;
}

.global-card-payment-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.global-card-payment-section h4:before {
    content: "💳";
    margin-right: 8px;
    font-size: 18px;
}

.payment-description {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

/* Global Card Form Layout */
.global-card-form {
    margin-bottom: 20px;
}

.card-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.card-row:last-child {
    margin-bottom: 0;
}

/* Form Fields */
.global-card-form .form-field {
    flex: 1;
    min-width: 0;
}

.global-card-form .form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.global-card-form .form-field input,
.global-card-form .form-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

.global-card-form .form-field input:focus,
.global-card-form .form-field select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.global-card-form .form-field input.error,
.global-card-form .form-field select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Card Number Field with Icons */
.card-number-field {
    position: relative;
}

.card-icons {
    position: absolute;
    right: 10px;
    top: 35px;
    display: flex;
    gap: 5px;
    pointer-events: none;
}

.card-icon {
    width: 24px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.card-icon.active {
    opacity: 1;
}

.card-icon.visa {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAxNiIgZmlsbD0ibm9uZSI+PHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjE2IiByeD0iNCIgZmlsbD0iIzAwNThBNSIvPjx0ZXh0IHg9IjMiIHk9IjExIiBmb250LWZhbWlseT0iQXJpYWwiIGZvbnQtc2l6ZT0iNyIgZmlsbD0id2hpdGUiPlZJU0E8L3RleHQ+PC9zdmc+');
}

.card-icon.mastercard {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAxNiIgZmlsbD0ibm9uZSI+PHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjE2IiByeD0iNCIgZmlsbD0iI0VCMDAxQiIvPjx0ZXh0IHg9IjIiIHk9IjExIiBmb250LWZhbWlseT0iQXJpYWwiIGZvbnQtc2l6ZT0iNiIgZmlsbD0id2hpdGUiPk1hc3RlcjwvdGV4dD48L3N2Zz4=');
}

.card-icon.amex {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAxNiIgZmlsbD0ibm9uZSI+PHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjE2IiByeD0iNCIgZmlsbD0iIzAwNkZDRiIvPjx0ZXh0IHg9IjMiIHk9IjExIiBmb250LWZhbWlseT0iQXJpYWwiIGZvbnQtc2l6ZT0iNyIgZmlsbD0id2hpdGUiPkFNRVg8L3RleHQ+PC9zdmc+');
}

.card-icon.discover {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAxNiIgZmlsbD0ibm9uZSI+PHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjE2IiByeD0iNCIgZmlsbD0iI0ZGNjAwMCIvPjx0ZXh0IHg9IjIiIHk9IjExIiBmb250LWZhbWlseT0iQXJpYWwiIGZvbnQtc2l6ZT0iNiIgZmlsbD0id2hpdGUiPkRJU0NPPC90ZXh0Pjwvc3ZnPg==');
}

/* Specific field widths */
.card-expiry-field {
    max-width: 120px;
}

.card-cvc-field {
    max-width: 100px;
}

.city-field {
    flex: 2;
}

.zip-field {
    flex: 1;
    max-width: 150px;
}

/* Billing Address Section */
.billing-address-toggle {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.billing-address-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
    animation: slideInDown 0.3s ease-out;
}

.billing-address-section h5 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
}

.address-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.address-row:last-child {
    margin-bottom: 0;
}

/* Global Card Pay Button */
.global-card-payment-actions {
    margin: 20px 0;
}

.global-card-pay-button {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.global-card-pay-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.global-card-pay-button:active {
    transform: translateY(0);
}

.global-card-pay-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.global-card-pay-button:disabled:hover {
    background: #6c757d;
    transform: none;
}

/* Payment Status Styles */
.global-card-payment-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.global-card-payment-status .payment-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.global-card-payment-status .payment-failed {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.global-card-payment-status i {
    margin-right: 8px;
}

.retry-payment-button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.retry-payment-button:hover {
    background-color: #c82333;
}

/* Security Notice */
.payment-security-notice {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    font-size: 13px;
    color: #004085;
}

.payment-security-notice i {
    margin-right: 5px;
    color: #28a745;
}

/* Form Help Text */
.global-card-form .form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

/* Error Messages */
.global-card-form .field-error {
    display: none;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

.global-card-form .field-error.show {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .card-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .address-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-expiry-field,
    .card-cvc-field,
    .zip-field {
        max-width: none;
    }
    
    .card-icons {
        right: 10px;
        top: 40px;
    }
    
    .global-card-pay-button {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .global-card-payment-section {
        padding: 15px;
    }
    
    .card-icons {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .card-icon {
        width: 20px;
        height: 14px;
    }
}

/* Loading States */
.global-card-pay-button .loading-spinner {
    display: inline-flex;
    align-items: center;
}

.global-card-pay-button .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Payment Method Icon for Global Card */
.payment-method-option .global_card-icon:before {
    content: "💳";
    font-size: 18px;
    margin-right: 8px;
}

/* ========================================
   Email Copy Section Styles
   ======================================== */

.email-copy-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    transition: var(--transition);
}

.email-copy-section:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.email-copy-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-copy-header h4 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.email-copy-header .icon-envelope {
    color: var(--primary-color);
    font-size: 20px;
}

.email-copy-description {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.email-copy-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-send-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-width: 160px;
    max-width: 220px;
    box-shadow: var(--shadow-sm);
}

.email-send-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4c51bf 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.email-send-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.email-send-button:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.email-send-button.email-sent {
    background: linear-gradient(135deg, var(--success-color) 0%, #38a169 100%);
    cursor: default;
}

.email-send-button .button-icon {
    font-size: 16px;
    line-height: 1;
}

.email-send-button .button-text {
    line-height: 1;
}

.email-status {
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-status.success {
    background: #e6fffa;
    color: var(--success-color);
    border: 1px solid #b2f5ea;
}

.email-status.success:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
}

.email-status.error {
    background: #fed7d7;
    color: var(--danger-color);
    border: 1px solid #feb2b2;
}

.email-status.error:before {
    content: "⚠";
    color: var(--danger-color);
    font-weight: bold;
}

.email-auto-notice {
    background: #e6f3ff;
    border: 1px solid #b3d9ff;
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    margin-top: 12px;
}

.auto-email-note {
    color: #1e40af;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.auto-email-note .icon-info {
    color: #3b82f6;
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Mobile Responsiveness for Email Section */
@media (max-width: 768px) {
    .email-copy-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .email-copy-wrapper {
        gap: 12px;
    }
    
    .email-copy-header h4 {
        font-size: 16px;
    }
    
    .email-send-button {
        width: 100%;
        max-width: none;
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .email-copy-section {
        padding: 14px;
        margin: 12px 0;
    }
    
    .email-copy-description {
        font-size: 13px;
    }
    
    .auto-email-note {
        font-size: 12px;
    }
}

/* Animation for email status changes */
@keyframes emailStatusFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-status {
    animation: emailStatusFadeIn 0.3s ease-out;
}

/* Email loading state */
.email-send-button.loading {
    position: relative;
    color: transparent;
}

.email-send-button.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success checkmark animation */
@keyframes checkmark {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.email-send-button.email-sent .button-icon {
    animation: checkmark 0.5s ease-out;
}
