/* Re-designed Donation Page & Widget (Sync with Live Contact Style) */
:root {
    --brand-anthracite: #383838;
    --brand-gold: #C99B3B;
    --brand-gold-light: #D4B066;
    --brand-white: #FFFFFF;
    --brand-gray-light: #F8F9FA;
    --brand-gray-border: #E9ECEF;
    --brand-text-muted: #636E72;
    --brand-breadcrumb-bg: #383838;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 1. Page Header (Hero Section) - EXACT SYNC WITH LIVE */
.page-header.donate-header {
    background: linear-gradient(to right, var(--brand-anthracite) 0%, var(--brand-gold) 100%);
    color: #fff;
    height: 195px;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.header-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.header-content-left {
    width: 100%;
}

.header-title {
    margin: 0;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: -0.5px;
}

.header-subtitle {
    margin: 12px auto 0;
    font-size: 1.05rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: var(--tig-form-max, 1200px);
}

/* 2. Breadcrumb Pill (Inside Hero) - Dark Grey #343A40 */
.header-meta-bar {
    background: var(--brand-breadcrumb-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 22px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--brand-gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.header-meta-bar a {
    color: var(--brand-gold);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.header-meta-bar a:hover {
    opacity: 1;
}

.meta-sep {
    opacity: 0.5;
    font-size: 0.7rem;
}

.meta-item span {
    opacity: 0.7;
}

/* 3. Donation Section Wrapper */
.donation-page-wrapper {
    background: #f8fafc;
    padding: 30px 0 35px;
}

.donation-card {
    max-width: var(--tig-form-max, 1200px);
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--brand-gray-border);
    overflow: hidden;
    padding: 0;
}

/* Method Tabs */
.method-tabs {
    display: flex;
    border-bottom: 1px solid var(--brand-gray-border);
    background: #fdfdfd;
}

.method-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--brand-text-muted);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.method-tab i {
    font-size: 1.2rem;
}

.method-tab:hover {
    color: var(--brand-anthracite);
    background: #fff;
}

.method-tab.active {
    color: var(--brand-anthracite);
    background: #fff;
    border-bottom-color: var(--brand-gold);
}

.tab-content {
    padding: 22px 18px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* Bank Details Styling */
.bank-transfer-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #f1f5f9;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.bank-value {
    font-weight: 700;
    color: var(--brand-anthracite);
    font-family: inherit;
    font-size: 0.95rem;
}

/* Form Styles */
.donation-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
    margin-bottom: 0.25rem;
}

.donation-form-row .form-group {
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .donation-form-row {
        grid-template-columns: 1fr;
    }
}

.form-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

@media (max-width: 520px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.amount-box {
    padding: 15px 5px;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.amount-box.active {
    border-color: var(--brand-gold);
    background: var(--brand-gold);
    color: #fff;
}

.donation-submit-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #c5a059 0%, #a67c00 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.donation-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
    background: linear-gradient(135deg, #a67c00 0%, #c5a059 100%);
}

.donation-submit-btn i {
    font-size: 1.3rem;
}

/* Header Cancel Button - Refined */
.st-cancel-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.st-cancel-btn:hover {
    background: #fff;
    color: #d9534f;
    border-color: #d9534f;
    box-shadow: 0 2px 8px rgba(217, 83, 79, 0.2);
}

.st_checkout_header {
    background: #fdfdfd;
    border: 1px solid #eee;
}

/* Period Toggle Styles */
.period-toggle {
    display: flex;
    gap: 10px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.period-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-text-muted);
    border-radius: 8px;
    transition: all 0.2s;
}

.period-btn.active {
    background: var(--brand-white);
    color: var(--brand-anthracite);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Bank Transfer Modern Layout */
.bank-details-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.bank-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.bank-card-icon {
    background: var(--brand-gold);
    color: #fff;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.bank-card-details {
    flex: 1;
    padding: 18px 22px;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.detail-item span {
    font-weight: 700;
    color: var(--brand-anthracite);
    font-size: 0.95rem;
    line-height: 1.2;
}

.copy-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    margin-top: 3px;
}

.copy-btn {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: var(--brand-gold);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--brand-gold);
    color: #fff;
}

.copy-btn.success {
    background: #28a745 !important;
    color: #fff !important;
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-zone:hover {
    border-color: var(--brand-gold);
    background: rgba(201, 155, 59, 0.05);
}

.upload-zone i {
    font-size: 2rem;
    color: var(--brand-gold);
}

.upload-text strong {
    display: block;
    color: var(--brand-anthracite);
}

.upload-text span {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
}

/* Custom Amount Group */
.custom-amount-group {
    position: relative;
    margin-bottom: 30px;
}

.custom-amount-group .currency-marker {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--brand-anthracite);
}

.custom-amount-group input {
    padding-left: 35px !important;
    height: 55px;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    font-weight: 700;
}

.custom-amount-group input:focus {
    border-color: var(--brand-gold);
    box-shadow: none;
}

/* Trust Badges Spacing */
.trust-badges {
    margin-top: 35px !important;
    color: var(--brand-text-muted);
}

.trust-badges i {
    opacity: 0.7;
    margin: 0 12px !important;
    transition: opacity 0.3s;
}

.trust-badges i:hover {
    opacity: 1;
}

/* QR Code Section Centering */
.qr-code-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.qr-image {
    display: block;
    margin: 0 auto;
}

/* Payment Instructions Note */
.payment-note {
    max-width: 480px;
    margin: 20px auto 0;
    padding: 12px 20px;
    background: #fdfaf3; /* Very soft gold-tinted creamy background */
    border-radius: 50px;
    border: 1px solid rgba(201, 155, 59, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--brand-anthracite);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.payment-note i {
    color: var(--brand-gold);
    font-size: 1.1rem;
}

.payment-note span {
    font-weight: 600;
}

/* Responsiveness */
@media (max-width: 992px) {
    .header-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .header-title {
        font-size: 2.2rem;
        justify-content: center;
    }
}

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

/* checkout Header st-Prefixed Styling (Priority Layout) */
.st-checkout-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 20px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.st-secure-title {
    font-weight: 700 !important;
    color: #334155 !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.st-secure-title i {
    color: #22c55e !important;
}

.st-cancel-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.st-cancel-btn:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
}
