/* =============================================================================
   LCCC Donation Form Styles
   Matches the main site design tokens from assets/css/style.css
   ============================================================================= */

.donate-main {
    min-height: calc(100vh - 140px);
    background: #f4f2f2;
    padding-top: 20px;
}

/* --- Main Card --- */
.donation-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    padding: 40px 35px;
}

.donation-card h1,
.donation-card h2 {
    font-family: 'Raleway', sans-serif;
    color: #255a9c;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 5px;
}

/* --- Form Sections --- */
.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 15px;
}

.section-label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #313030;
    margin-bottom: 12px;
}

/* --- Amount Buttons --- */
.amount-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amount-btn {
    flex: 1;
    min-width: 70px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #255a9c;
    color: #255a9c;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Open Sans', sans-serif;
}

.amount-btn:hover {
    background: rgba(37, 90, 156, 0.08);
}

.amount-btn.active {
    background: #255a9c;
    color: #fff;
}

.custom-amount-wrap .input-group-text {
    background: #255a9c;
    color: #fff;
    border-color: #255a9c;
    font-weight: 600;
}

/* --- Frequency Toggle --- */
.frequency-toggle {
    display: flex;
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #255a9c;
}

.freq-btn {
    flex: 1;
    padding: 10px 20px;
    background: #fff;
    border: none;
    color: #255a9c;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Open Sans', sans-serif;
}

.freq-btn:first-child {
    border-right: 1px solid #255a9c;
}

.freq-btn.active {
    background: #255a9c;
    color: #fff;
}

.freq-btn:hover:not(.active) {
    background: rgba(37, 90, 156, 0.08);
}

/* --- Form Inputs --- */
.donation-card .form-control,
.donation-card .form-select {
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ced4da;
    font-family: 'Open Sans', sans-serif;
}

.donation-card .form-control:focus,
.donation-card .form-select:focus {
    border-color: #255a9c;
    box-shadow: 0 0 0 0.2rem rgba(37, 90, 156, 0.15);
}

.donation-card .form-control::placeholder {
    color: #adb5bd;
}

/* --- Tribute Section --- */
.tribute-fields {
    background: #fff9f7;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

/* --- Stripe Card Element --- */
.card-element-container {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    transition: 0.3s;
}

.card-element-container.StripeElement--focus {
    border-color: #255a9c;
    box-shadow: 0 0 0 0.2rem rgba(37, 90, 156, 0.15);
}

.card-element-container.StripeElement--invalid {
    border-color: #dc3545;
}

/* --- Submit Button --- */
.donate-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 30px;
    background: #255a9c;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Open Sans', sans-serif;
}

.donate-submit-btn:hover:not(:disabled) {
    background: #ff7e54;
}

.donate-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Secure Note --- */
.secure-note {
    color: #656262;
    font-size: 13px;
}

.secure-note i {
    color: #255a9c;
}

/* --- Checkboxes --- */
.donation-card .form-check-input:checked {
    background-color: #255a9c;
    border-color: #255a9c;
}

.donation-card .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 90, 156, 0.15);
}

/* =============================================================================
   Donate Modal Overlay (used on index.php)
   ============================================================================= */

.donate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.donate-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 37, 46, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.donate-overlay-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    animation: donateSlideIn 0.3s ease-out;
}

@keyframes donateSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donate-overlay-content .donation-card {
    border-radius: 10px;
    margin: 0;
}

.donate-overlay-close {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 10;
    background: none;
    border: none;
    font-size: 32px;
    color: #656262;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s;
}

.donate-overlay-close:hover {
    color: #255a9c;
}

/* Scrollbar styling for overlay */
.donate-overlay-content::-webkit-scrollbar {
    width: 6px;
}

.donate-overlay-content::-webkit-scrollbar-track {
    background: transparent;
}

.donate-overlay-content::-webkit-scrollbar-thumb {
    background: rgba(37, 90, 156, 0.3);
    border-radius: 3px;
}

.donate-overlay-content::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 90, 156, 0.5);
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .donation-card {
        padding: 25px 20px;
    }

    .amount-buttons {
        gap: 8px;
    }

    .amount-btn {
        padding: 10px 12px;
        font-size: 14px;
        min-width: 60px;
    }

    .donation-card h1,
    .donation-card h2 {
        font-size: 24px;
    }

    .donate-overlay {
        padding: 10px;
    }

    .donate-overlay-content {
        max-height: 95vh;
    }
}
