/* =========================================
   Donation Page
   ========================================= */

:root {
    --don-purple:       #530966;
    --don-purple-light: rgba(83, 9, 102, 0.08);
    --don-purple-mid:   rgba(83, 9, 102, 0.15);
    --don-gold:         #C6A877;
    --don-card-border:  #f0e8f4;
    --don-shadow:       0 4px 24px rgba(83, 9, 102, 0.09);
    --don-shadow-hover: 0 12px 40px rgba(83, 9, 102, 0.18);
    --don-radius:       16px;
    --don-bg:           #f8f6fb;
}

/* =========================================
   Hero
   ========================================= */

.don-hero {
    background: linear-gradient(135deg, #530966 0%, #7a1fa3 100%);
    margin-top: 79px;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.don-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 40%, rgba(198, 168, 119, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.don-hero__title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.don-hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 0;
    position: relative;
}

/* =========================================
   Benefits section
   ========================================= */

.don-section {
    background: var(--don-bg);
    padding: 4rem 0;
}

.don-section__heading {
    text-align: center;
    color: var(--don-purple);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.don-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .don-benefits {
        grid-template-columns: repeat(4, 1fr);
    }
}

.don-benefit {
    background: #fff;
    border: 1px solid var(--don-card-border);
    border-radius: var(--don-radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--don-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.don-benefit:hover {
    transform: translateY(-4px);
    box-shadow: var(--don-shadow-hover);
}

.don-benefit__icon {
    width: 56px;
    height: 56px;
    background: var(--don-purple-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--don-purple);
}

.don-benefit__text {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.don-image-wrap {
    display: flex;
    justify-content: center;
}

.don-image {
    max-width: 480px;
    width: 100%;
    border-radius: var(--don-radius);
}

/* =========================================
   Form section
   ========================================= */

.don-form-section {
    background: #fff;
    padding: 4rem 0 5rem;
}

.don-form-section__heading {
    text-align: center;
    color: var(--don-purple);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.don-alert {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* =========================================
   Amount options
   ========================================= */

.don-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
    .don-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .don-options {
        grid-template-columns: repeat(5, 1fr);
    }
}

.don-option__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
    border: 2px solid var(--don-card-border);
    border-radius: var(--don-radius);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    background: #fff;
    box-shadow: var(--don-shadow);
    height: 100%;
}

.don-option__label:hover {
    border-color: var(--don-purple);
    transform: translateY(-3px);
    box-shadow: var(--don-shadow-hover);
}

.donation-radio:checked + .don-option__label {
    border-color: var(--don-purple);
    background: var(--don-purple-light);
    box-shadow: 0 0 0 3px rgba(83, 9, 102, 0.15);
}

.don-option__name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--don-purple);
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.don-option__img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.don-option__img--gift {
    width: 56px;
    height: 56px;
}

.don-option__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--don-purple);
}

.don-custom-wrap {
    width: 100%;
}

.don-custom-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--don-purple);
    font-family: inherit;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.don-custom-input:focus {
    border-color: var(--don-purple);
    box-shadow: 0 0 0 3px rgba(83, 9, 102, 0.1);
}

/* =========================================
   Payment details
   ========================================= */

.payment-method-section {
    max-width: 600px;
    margin: 0 auto 2rem;
    background: var(--don-bg);
    border: 1px solid var(--don-card-border);
    border-radius: var(--don-radius);
    padding: 2rem;
}

.don-payment__title {
    color: var(--don-purple);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.don-payment__field {
    margin-bottom: 1.25rem;
}

.don-payment__label {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

.don-payment__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.97rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.don-payment__input:focus {
    border-color: var(--don-purple);
    box-shadow: 0 0 0 3px rgba(83, 9, 102, 0.1);
}

.don-payment__hint {
    color: #9ca3af;
    font-size: 0.83rem;
    display: block;
    margin-top: 0.3rem;
}

.don-card-element {
    padding: 0.85rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s;
}

.don-card-element.StripeElement--focus {
    border-color: var(--don-purple);
    box-shadow: 0 0 0 3px rgba(83, 9, 102, 0.1);
}

.don-card-errors {
    color: #dc2626;
    font-size: 0.88rem;
    margin-top: 0.5rem;
    text-align: center;
    min-height: 1.25rem;
}

/* =========================================
   Buttons
   ========================================= */

.don-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.don-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 3rem;
    background: var(--don-purple);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(83, 9, 102, 0.3);
    text-decoration: none;
}

.don-btn:hover {
    background: #7a1fa3;
    box-shadow: 0 8px 24px rgba(83, 9, 102, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 480px) {
    .don-benefits {
        grid-template-columns: 1fr;
    }

    .don-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-method-section {
        padding: 1.25rem;
    }
}
