/* ==========================================================================
   Premium 3D Contact Us Page Styles
   ========================================================================== */

/* Remove Astra Default Top Spacing (White Gap Fix) */
#content,
.site-content,
.ast-container,
.site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
#masthead {
    margin-bottom: 0 !important;
}
.ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.contact-page {
    overflow-x: hidden;
}

.contact-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. HERO BANNER (Full Width Background)
   ========================================================================== */
.contact-hero-section {
    position: relative;
    padding: 11rem 0 13rem; /* Big padding for premium look */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Premium Parallax Effect */
    background-attachment: fixed; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay (Primary green to black) for text readability */
    background: linear-gradient(135deg, rgba(4, 92, 47, 0.75) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.contact-hero-section .container {
    position: relative;
    z-index: 2;
}

.contact-hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-title {
    color: #ffffff;
    font-weight: 900;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-hero-desc {
    font-size: 1.4rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 3rem;
    }
    .contact-hero-desc {
        font-size: 1.15rem;
    }
    .contact-hero-section {
        padding: 7rem 0 9rem;
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }
}

/* ==========================================================================
   2. CONTACT DETAILS (3D Parallax Cards)
   ========================================================================== */
.contact-details-section {
    padding: 6rem 0 8rem;
    background-color: #ffffff;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    perspective: 1200px;
}

@media (min-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    transform: translateZ(20px) translateY(-10px);
    box-shadow: 0 25px 50px rgba(4, 92, 47, 0.12); /* primary-green tint shadow */
}

.card-icon {
    margin-bottom: 1rem;
    transform: translateZ(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark, #1a1a1a);
    margin-bottom: 1rem;
    margin-top: 0;
    transform: translateZ(25px);
}

.contact-card strong {
    font-size: 1.1rem;
    color: var(--color-primary-green, #045c2f);
    transform: translateZ(20px);
    display: block;
    line-height: 1.6;
}

.contact-card address {
    font-style: normal;
    color: var(--color-text-light, #4a4a4a);
    line-height: 1.6;
    transform: translateZ(20px);
    font-size: 0.95rem;
}

.contact-card address strong {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* ==========================================================================
   3. INTERACTIVE CONTACT FORM & PARTNERSHIP SECTION
   ========================================================================== */
.contact-form-section {
    background-color: var(--color-primary-green, #045c2f);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .contact-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-ui-col {
    position: relative;
    z-index: 2;
}

.form-title {
    color: #ffffff;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Glassmorphism Form */
.glass-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 2px;
}

.glass-form input,
.glass-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.glass-form input::placeholder,
.glass-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.glass-form input:focus,
.glass-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary-yellow, #f7b731);
    box-shadow: 0 0 0 4px rgba(247, 183, 49, 0.15);
}

.btn-submit {
    width: 100%;
    background-color: var(--color-secondary-yellow, #f7b731);
    color: var(--color-text-dark, #1a1a1a);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #ffffff;
    color: var(--color-primary-green, #045c2f);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Image 3D Tilt */
.form-img-col {
    perspective: 1000px;
}

.tilt-img-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tilt-img-wrapper:hover {
    transform: rotateY(-8deg) rotateX(4deg) translateZ(30px);
}

.tilt-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

/* ==========================================================================
   Scroll Reveal Animations (Intersection Observer)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px); /* Default slide up */
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }

.scroll-reveal.fade-left { transform: translateX(-50px); }
.scroll-reveal.fade-right { transform: translateX(50px); }
.scroll-reveal.fade-scale { transform: scale(0.9) translateY(40px); }

.scroll-reveal.in-view.fade-left,
.scroll-reveal.in-view.fade-right,
.scroll-reveal.in-view.fade-scale {
    transform: translate(0) scale(1);
}
