﻿/* ===== Donation Page (screenshot look) ===== */
:root {
    --bg: #eef3fb;
    --text: #1f2937;
    --muted: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(16,24,40,.12);
    --radius: 18px;
    --pill: 999px;
    /* gradients */
    --make-from: #ff6b6b;
    --make-mid: #ff8a85;
    --make-to: #ffb199;
    --pledge-from: #ffe259;
    --pledge-mid: #f7d553;
    --pledge-to: #f6c343;
    --btn-dark: #111827;
    --btn-dark-hover: #0b1220;
    --green: #1cc35e;
}

html, body {
    background: var(--bg);
    font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
}

/* Layout */
.donation-forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 28px 0 40px;
}

@media (max-width: 992px) {
    .donation-forms-container {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.donation-form-card {
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 22px 26px;
    overflow: hidden;
    color: var(--text);
}

    .donation-form-card .form-header h3 {
        font-weight: 800;
        font-size: 28px;
        letter-spacing: .2px;
        margin: 2px 0 18px;
    }

/* Gradients like the screenshot */
/*.make-donation {
    background: linear-gradient(180deg, var(--make-from) 0%, var(--make-mid) 45%, var(--make-to) 100%);
}*/

.make-donation {
    background: linear-gradient( 180deg, #009B3A 0%, #00B649 45%, #007A2E 100% );
}

.pledge-donation {
    background: linear-gradient(180deg, var(--pledge-from) 0%, var(--pledge-mid) 45%, var(--pledge-to) 100%);
}

/* Groups, labels */
.form-group {
    margin-bottom: 16px;
}

    .form-group h3,
    .donation-form-card h3 {
        font-size: 18px;
        margin: 0 0 10px;
        font-weight: 700;
    }

    .form-label,
    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 6px;
    }

.required {
    color: #b91c1c;
    margin-left: 3px;
}

/* Inputs (pill style) */
.form-control,
.form-select,
.amount-btn,
.currency-dropdown select {
    border: none;
    outline: none;
    height: 48px;
    border-radius: var(--pill);
    padding: 0 16px;
    background: var(--white);
    box-shadow: inset 0 0 0 1px rgba(17,24,39,.08);
    width: 100%;
}

textarea.form-control {
    min-height: 90px;
    border-radius: 14px;
    padding: 12px 14px;
}

/* Amount row */
.amount-section {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.currency-dropdown {
    min-width: 110px;
}

    .currency-dropdown select {
        appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%);
        background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
        background-size: 6px 6px, 6px 6px;
        background-repeat: no-repeat;
        font-weight: 700;
        text-transform: uppercase;
    }

.amount-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amount-btn {
    width: auto;
    min-width: 96px;
    padding: 0 16px;
    font-weight: 800;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}

    .amount-btn:hover {
        box-shadow: 0 6px 14px rgba(17,24,39,.15);
        transform: translateY(-1px);
    }

    .amount-btn.active {
        background: var(--btn-dark);
        color: #fff;
    }

/* Custom amount spacing */
.custom-amount {
    margin-top: 8px;
}

/* Submit buttons */
.submit-btn,
.pledge-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--btn-dark);
    color: #fff;
    border: none;
    border-radius: var(--pill);
    padding: 12px 22px;
    height: 48px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 10px 18px rgba(17,24,39,.25);
    transition: background .2s ease, transform .05s ease, box-shadow .2s ease;
}

    .submit-btn:hover,
    .pledge-submit-btn:hover {
        background: var(--btn-dark-hover);
        transform: translateY(-1px);
    }

/* Radio group (hidden in your HTML, but styled if used) */
.radio-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

    .radio-option input {
        display: none;
    }

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(17,24,39,.8);
    background: #fff;
    display: inline-block;
    position: relative;
}

.radio-option input:checked + .radio-custom {
    box-shadow: inset 0 0 0 6px var(--btn-dark);
}

/* Pledge items row */
.add-item-container .donation-item {
    display: grid;
    grid-template-columns: 1fr 160px 48px;
    gap: 10px;
    align-items: end;
}

@media (max-width: 576px) {
    .add-item-container .donation-item {
        grid-template-columns: 1fr 1fr 48px;
    }
}

.add-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--green);
    box-shadow: 0 8px 16px rgba(28,195,94,.35);
    cursor: pointer;
}

    .add-item-btn:hover {
        filter: brightness(.95);
    }

.note-section p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    margin: 8px 0 0;
}

/* Utility */
.hidden {
    display: none !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

/* Make headings & fields stand out on gradients */
.donation-form-card .form-control,
.donation-form-card .form-select,
.donation-form-card .amount-btn,
.donation-form-card textarea {
    background: #fff;
}

/* Optional: soften focus ring */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(59,130,246,.25), inset 0 0 0 1px rgba(17,24,39,.08);
    outline: none;
}

.hurricane-banner {
    position: relative;
    width: 100%;
    height: 60%; /* ensure container height follows the image */
    overflow: hidden;
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center; /*center vertically */
    border-radius: 12px; /*Rounded corners */
    margin-top: 20px; /*Space above the image */
}

    /* Ensure image doesn't block flex centering */
    .hurricane-banner img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

/* Banner text styling */
.banner-text {
    position: absolute;
    width: 80%;
    max-width: 900px;
    text-align: center;
    font-size: clamp(18px, 4vw, 32px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 4px 12px rgba(0,0,0,0.7);
    padding: 10px;
    pointer-events: none; /* allows clicks on image below if needed */
}


/*Responsive heights for smaller screens */
@media (max-width: 992px) {
    .hurricane-banner {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hurricane-banner {
        height: 220px;
    }
}

.hurricane-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    /* Make image fully responsive */
    .hurricane-banner img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Centered text overlay */
.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    text-align: center;
    font-size: clamp(18px, 4vw, 32px); /* ✅ Responsive font size */
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 4px 12px rgba(0,0,0,0.7);
    padding: 10px;
}

.banner-logo {
    display: block;
    margin: 0 auto 10px auto;
    height: auto; /* let image keep its natural aspect ratio */
    width: 25%; /* scales proportionally with banner width */
    max-width: 140px; /* prevents oversizing on large screens */
}

@media (max-width: 768px) {
    .banner-logo {
        width: 35%;
        max-width: 100px;
    }
}

.donation-item {
    display: flex;
    align-items: flex-end; /* ✅ Bottom-align everything */
    gap: 12px;
    width: 100%;
}

.item-name-group,
.item-quantity-group {
    flex: 1; /* ✅ Both fields expand evenly */
}

/* Ensures the button has same height as input */
.add-item-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #1cc35e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .add-item-btn img {
        width: 24px;
        height: 24px;
    }
