/**
 * Donate Page Styles
 *
 * Styles for the Oasis Retreat donation page
 * Theme: "Impact & Generosity"
 */

/* ========================================
   HERO SECTION
   ======================================== */

.donate-page-container {
    background:
        radial-gradient(at 0% 0%, rgba(46, 163, 242, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(90, 185, 245, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(46, 163, 242, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(212, 235, 250, 0.2) 0px, transparent 50%),
        #FFFFFF;
    min-height: 100vh;
}

.donate-hero-section {
    background: linear-gradient(135deg, #f3f3f3 0%, #ffffff 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 3px solid #2EA3F2;
    position: relative;
}

/* Hero Section with Background Image */
.donate-hero-section.has-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect on desktop */
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay for background images */
.donate-hero-section.has-background-image .hero-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Dark overlay (default) */
.donate-hero-section.has-background-image[data-overlay-color="dark"] .hero-overlay {
    background: rgba(0, 0, 0, var(--overlay-opacity, 0.5));
}

/* Blue gradient overlay */
.donate-hero-section.has-background-image[data-overlay-color="blue"] .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(46, 163, 242, 0.6) 0%,
        rgba(0, 0, 0, var(--overlay-opacity, 0.5)) 100%
    );
}

/* Light overlay */
.donate-hero-section.has-background-image[data-overlay-color="light"] .hero-overlay {
    background: rgba(255, 255, 255, var(--overlay-opacity, 0.3));
}

/* Content positioning over background */
.donate-hero-section .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Frosted Glass Card */
.donate-hero-section .hero-text-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Typography */
.donate-hero-section .hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #2EA3F2;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.donate-hero-section .hero-subtitle {
    font-size: 1.375rem;
    color: #333333;
    margin: 0 0 2rem 0;
    font-weight: 300;
    line-height: 1.4;
}

/* Impact Stat */
.donate-hero-section .hero-impact-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #666666;
    font-size: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E2E2;
}

.donate-hero-section .impact-icon {
    color: #2EA3F2;
    flex-shrink: 0;
}

/* ========================================
   FORM WRAPPER
   ======================================== */

.donate-form-wrapper {
    background: transparent;
    min-height: 60vh;
    padding: 3rem 0;
}

/* ========================================
   SUGGESTED DONATION AMOUNTS
   ======================================== */

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

.donation-amount-btn {
    background: white;
    border: 2px solid #E2E2E2;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.donation-amount-btn:hover {
    border-color: #2EA3F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 163, 242, 0.15);
}

.donation-amount-btn.active {
    border-color: #2EA3F2;
    background: linear-gradient(135deg, #2EA3F2 0%, #5AB9F5 100%);
    color: white;
}

.donation-amount-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 0.5rem;
}

.donation-amount-btn.active .donation-amount-value {
    color: white;
}

.donation-amount-impact {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.3;
}

.donation-amount-btn.active .donation-amount-impact {
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   ENHANCED FORM STYLING
   ======================================== */

.donate-form-wrapper .gform_wrapper,
.donate-form-wrapper form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #E2E2E2;
}

.donate-form-wrapper h2,
.donate-form-wrapper .gform_title {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.donate-form-wrapper .gform_description,
.donate-form-wrapper .form-description {
    font-size: 1.125rem;
    color: #666666;
    margin-bottom: 2rem;
}

/* Heart icon for donation form */
.donate-form-wrapper h2:before,
.donate-form-wrapper .gform_title:before {
    content: '❤️';
    font-size: 1.75rem;
}

/* Enhanced input styling */
.donate-form-wrapper input[type="text"],
.donate-form-wrapper input[type="email"],
.donate-form-wrapper input[type="number"],
.donate-form-wrapper select,
.donate-form-wrapper textarea {
    border: 2px solid #E2E2E2;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.donate-form-wrapper input:focus,
.donate-form-wrapper select:focus,
.donate-form-wrapper textarea:focus {
    border-color: #2EA3F2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.1);
}

/* Enhanced submit button */
.donate-form-wrapper input[type="submit"],
.donate-form-wrapper .gform_button,
.donate-form-wrapper button[type="submit"] {
    background: linear-gradient(135deg, #2EA3F2 0%, #1E87D2 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(46, 163, 242, 0.25);
}

.donate-form-wrapper input[type="submit"]:hover,
.donate-form-wrapper .gform_button:hover,
.donate-form-wrapper button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 163, 242, 0.35);
}

/* Field labels */
.donate-form-wrapper label {
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    display: block;
}

/* ========================================
   IMPACT MESSAGING
   ======================================== */

.impact-message {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #2EA3F2;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.impact-message-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2EA3F2;
    margin-bottom: 0.75rem;
}

.impact-message-text {
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
}

/* Tax deductible note styling */
.donate-form-wrapper .tax-note,
.donate-form-wrapper small {
    display: block;
    text-align: center;
    color: #666666;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    font-style: italic;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .donate-hero-section {
        padding: 3rem 1.5rem;
    }

    /* Disable parallax on mobile for better performance */
    .donate-hero-section.has-background-image {
        background-attachment: scroll;
        min-height: 35vh;
    }

    /* Adjust text card on mobile */
    .donate-hero-section .hero-text-card {
        padding: 2rem 1.5rem;
    }

    .donate-hero-section .hero-title {
        font-size: 2rem;
    }

    .donate-hero-section .hero-subtitle {
        font-size: 1.125rem;
    }

    .donate-hero-section .hero-impact-stat {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.9375rem;
    }

    /* Donation amounts on mobile */
    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .donation-amount-btn {
        padding: 1.25rem 0.75rem;
    }

    .donation-amount-value {
        font-size: 1.5rem;
    }

    .donation-amount-impact {
        font-size: 0.8125rem;
    }

    /* Form styling on mobile */
    .donate-form-wrapper .gform_wrapper,
    .donate-form-wrapper form {
        padding: 1.5rem;
    }

    .donate-form-wrapper h2,
    .donate-form-wrapper .gform_title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .donate-hero-section {
        padding: 2rem 1rem;
    }

    /* Simplify hero on very small screens */
    .donate-hero-section.has-background-image {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .donate-hero-section .hero-text-card {
        padding: 1.5rem 1.25rem;
    }

    .donate-hero-section .hero-title {
        font-size: 1.75rem;
    }

    .donate-hero-section .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .donate-hero-section .hero-impact-stat {
        padding-top: 1.5rem;
        font-size: 0.875rem;
    }

    /* Donation amounts - single column on very small screens */
    .donation-amounts {
        grid-template-columns: 1fr;
    }

    .donation-amount-btn {
        padding: 1rem;
    }

    /* Form styling on very small screens */
    .donate-form-wrapper .gform_wrapper,
    .donate-form-wrapper form {
        padding: 1.25rem;
    }

    .impact-message {
        padding: 1.25rem;
    }
}

/* Dynamic overlay opacity */
.donate-hero-section[data-overlay-opacity="0"] .hero-overlay { background: rgba(0, 0, 0, 0); }
.donate-hero-section[data-overlay-opacity="10"] .hero-overlay { background: rgba(0, 0, 0, 0.1); }
.donate-hero-section[data-overlay-opacity="20"] .hero-overlay { background: rgba(0, 0, 0, 0.2); }
.donate-hero-section[data-overlay-opacity="30"] .hero-overlay { background: rgba(0, 0, 0, 0.3); }
.donate-hero-section[data-overlay-opacity="40"] .hero-overlay { background: rgba(0, 0, 0, 0.4); }
.donate-hero-section[data-overlay-opacity="50"] .hero-overlay { background: rgba(0, 0, 0, 0.5); }
.donate-hero-section[data-overlay-opacity="60"] .hero-overlay { background: rgba(0, 0, 0, 0.6); }
.donate-hero-section[data-overlay-opacity="70"] .hero-overlay { background: rgba(0, 0, 0, 0.7); }
.donate-hero-section[data-overlay-opacity="80"] .hero-overlay { background: rgba(0, 0, 0, 0.8); }
