/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* ========================================
   PAGE BACKGROUND
   ======================================== */

.contact-page {
    background-image: url('/img/background-contact.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

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

.contact-page .hero-section {
    position: relative;
    width: 100%;
    min-height: 120vh;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* DIAGNOSTIC: Ensure no background inheritance from base hero-section class */
    background: none !important;
    background-image: none !important;
    padding-top: 80px; /* Account for fixed header */
}

.contact-page .hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    min-height: 120vh;
    overflow-y: visible; /* Allow scrolling */
    overflow-x: hidden; /* Prevent horizontal overflow */
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top instead of center */
    margin-top: 0; /* Remove margin since we added padding-top to hero-section */
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

/* ========================================
   CONTACT FORM IFRAME (Consolidated Styles)
   ======================================== */

.google-form-iframe {
    border: none;
    border-radius: var(--border-radius-large);
    width: 100%;
    height: 120vh !important;
    max-width: 800px; /* Match the max-width from contact-card */
    box-sizing: border-box;
    
    /* Consolidated styles from contact-card and form-container */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border: 2px solid var(--forest-green);
    position: relative;
    margin: 2rem auto;
    overflow: hidden;
    
    /* Gradient border effect from contact-card::before */
    background-clip: padding-box;
}

/* ========================================
   HERO SPACER
   ======================================== */

.contact-page .hero-spacer {
    display: none; /* Remove hero-spacer since hero is no longer fixed */
}

/* ========================================
   MAIN CONTENT POSITIONING
   ======================================== */

.contact-page main {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-bottom: 0;
}

.contact-page .content-section {
    position: relative;
    z-index: 1;
}

/* ========================================
   NAVIGATION MENU FIX
   ======================================== */

/* Ensure navigation menu appears above all content */
.contact-page #nav-menu {
    z-index: 1003 !important;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    margin: 2rem 0 0 0; /* Remove bottom margin to eliminate gap */
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(58, 90, 64, 0.1);
    padding: 3rem 2rem;
}

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

@media (max-width: 768px) {
    .contact-page .hero-container {
        padding: 0 1rem;
    }
    
    .google-form-iframe {
        height: 120vh;
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .google-form-iframe {
        height: 120vh;
        padding: 1.5rem;
        margin: 0.5rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus states for keyboard navigation */
.google-form-iframe:focus {
    outline: 2px solid var(--forest-green);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .google-form-iframe {
        background: rgba(255, 255, 255, 0.98);
        border: 3px solid var(--forest-green);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .google-form-iframe {
        transition: none;
    }
}

/* ========================================
   PAGE-SPECIFIC OVERRIDES
   ======================================== */

.contact-page .google-form-iframe {
    /* Ensure iframe doesn't inherit background */
    background-image: none !important;
}

.contact-page .newsletter-section {
    border-radius: 0; /* Square corners */
    margin-bottom: 0; /* No gap before footer */
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .contact-page {
        background: white;
    }
    
    .google-form-iframe {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .google-form-wrapper {
        display: none;
    }
}
