/* --- Donate Page Specific --- */
.donate-page-section {
    padding: 6rem 0;
    min-height: calc(100vh - 80px - 61px); /* Header and footer height */
    display: flex;
    align-items: center;
    justify-content: center; /* Center container vertically and horizontally */
    margin-top: 80px; /* Offset for fixed header */
    background: url('/donation-header.png') no-repeat center center/cover;
    position: relative;
}

.donate-page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.donate-page-section .container {
    text-align: center;
    width: 100%;
    max-width: 900px; /* Increase max-width for better layout */
    position: relative;
    z-index: 2;
}

.donate-page-intro {
    max-width: 700px;
    margin: 1rem auto 3rem;
    font-size: 1.2rem;
}

.donation-methods {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Reduced gap */
    flex-wrap: wrap;
    align-items: stretch; /* Make cards same height */
}

.donation-method-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.donation-method-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.donation-method-card p {
    margin-bottom: 2rem;
}

.twint-card button {
    margin: 0 auto; /* Center the button */
}

.bank-details {
    text-align: left;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    margin-top: auto;
}

.bank-details p {
    margin-bottom: 0.5rem;
}

.qr-bill-image {
    max-width: 200px;
    margin: 1rem auto 0;
}

/* --- QR Facture Form & Confirmation --- */
#qr-facture-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 1rem;
}

#qr-facture-form input,
#qr-facture-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
}

#qr-facture-form .btn {
    margin-top: 1rem;
}

#qr-facture-confirmation {
    display: none; /* Hidden by default */
    padding: 1.5rem;
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius);
    background-color: #fff;
    text-align: left;
}

#confirmation-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

#confirmation-text {
    flex: 1;
}

#confirmation-text h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#confirmation-qrcode img {
    width: 150px;
    height: 150px;
    display: block;
}

#download-qr-facture-btn {
    margin-top: 1.5rem;
}