.donation-section {
    padding: 0 1rem 2rem 1rem1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.donation-container {
    display: grid;
    gap: 2rem;
    padding: 0 2rem 3rem 2rem;
}

.donation-section h2 {
   margin-top: 0;
}

.donation-intro {
    max-width: 800px;
    margin: 0 auto;
}

.donation-intro h2 {
    color: #0E1038;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    font-variation-settings: 'opsz' 17;
}

.trust-indicators {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    font-variant-caps: all-small-caps;
    background-color: #fff;
    border: 1px solid #ccc;
}

.trust-item {
    display: flex;
    gap: 0.3rem;
    
    line-height: 1.2;
    text-align: left;
    align-items: center;
    
    letter-spacing: -0.005rem;
    color: #0E1038;
    
}   

.trust-icon {
    width: 1rem;
    height: 1rem;
    display: block;
    flex-shrink: 0;
    opacity: 1.0;
}

.trust-item span {
    font-size: 1rem;
}

.donation-type-selector {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border: 2px solid #0E1038;
    overflow: hidden;
}

.donation-type-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-right: 2px solid #0E1038;
    background: none;
    color: #0E1038;
    background-color: #fff;
    font-family: 'Warbler', 'WarblerText', serif;
    font-size: 1rem;
    font-variation-settings: 'opsz' 16;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.donation-type-btn:last-child {
    border-right: none;
}

.donation-type-btn.active {
    background: #0E1038;
    color: white;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn {
    padding: 1rem;
    border: 2px solid #0E1038;
    background: none;
    color: #0E1038;
    background-color: #fff;
    font-family: 'Warbler', 'WarblerText', serif;
    font-size: 1rem;
    font-variation-settings: 'opsz' 16;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn:hover,
.amount-btn.selected {
    background: #0E1038;
    color: white;
}

.donation-form {
    margin-top: 2rem;
}

#card-element {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-family: 'Warbler', 'WarblerText', serif;
    font-size: 16px;
    color: #32325d;
    min-height: 40px;
    background: linear-gradient(45deg, #f8f9fa 25%, #fff 25%, #fff 50%, #f8f9fa 50%, #f8f9fa 75%, #fff 75%, #fff 100%);
    background-size: 20px 20px;
    position: relative;
}

.contact-heading {
    font-family: 'Warbler', 'WarblerText', serif;
    font-size: 1.2rem;
    font-weight: 500;
    font-style: normal;
    color: #32325d;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

#contact-details {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-family: 'Warbler', 'WarblerText', serif;
    font-size: 16px;
    color: #32325d;
    min-height: 40px;
}

#address-errors {
    color: #fa755a;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

#card-element::placeholder {
    color: #aab7c4;
}

#card-element.StripeElement--focus {
    border-color: #0E1038;
    box-shadow: 0 0 0 2px rgba(14, 16, 56, 0.1);
}

#card-element.StripeElement--invalid {
    border-color: #fa755a;
}

#card-errors {
    color: #fa755a;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.donation-summary {
    background: #fff6d8;
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

.donate-button {
    width: 100%;
    padding: 1rem;
    background: #0E1038;
    color: white;
    border: none;
    font-family: 'Warbler', 'WarblerText', serif;
    font-variation-settings: 'opsz' 16;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.donate-button:hover {
    background: #1a1f4d;
}

.donate-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    color: #0E1038;
    margin-bottom: 1rem;
}

.close-modal {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: #0E1038;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Warbler', 'WarblerText', serif;
    font-variation-settings: 'opsz' 16;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-modal:hover {
    background: #1a1f4d;
}

@media (min-width: 768px) {
    .donation-container {
        grid-template-columns: 1fr 1fr;
        padding: 0 4rem 3rem 4rem;
        padding-top: 0;
    }

    .donation-intro {
        text-align: left;
    }

    .trust-indicators {
        justify-content: flex-start;
    }
}

.custom-amount-input {
    margin-top: 1rem;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    color: #32325d;
    font-family: 'Warbler', 'WarblerText', serif;
    font-size: 1rem;
}

#custom-amount {
    width: 100%;
    padding: 1rem 1rem 1rem 2rem;
    border: 2px solid #0E1038;
    border-radius: 4px;
    font-family: 'Warbler', 'WarblerText', serif;
    font-size: 1rem;
    color: #32325d;
    background: white;
    transition: all 0.2s;
}

#custom-amount:focus {
    outline: none;
    border-color: #0E1038;
    box-shadow: 0 0 0 2px rgba(14, 16, 56, 0.1);
}

#custom-amount::placeholder {
    color: #aab7c4;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
} 