/* --- Contact Hero Section --- */
.contact-hero-section {
    /* Using hero.webp as a placeholder */
    background-image: url('../../assets/img/contactus.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Changed from height: 100vh to min-height to prevent cutting off content */
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
#contactHero .hero-overlay{
    background: rgba(0, 0, 0, 0.4);
}
/* Ensure the container takes full height to allow vertical centering */
.contact-container-wrapper {
    /* Increased top padding to ensure form clears the fixed header completely */
    padding-top: 140px; 
    padding-bottom: 80px;
    z-index: 2; /* Above overlay */
    min-height: 100vh; /* Ensures it stretches to full height */
}

/* --- Contact Form Box --- */
.contact-form-box {
    background-color: #000000;
    padding: 50px;
    border-radius: 4px;
    width: 100%;
    max-width: 550px;
    margin-left: auto; /* Pushes box to the right by default on Desktop */
    
    /* Animation Initial State */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-form-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-heading {
    font-family: 'Manropemedium', sans-serif;
    font-size: clamp(24px, 2.5vw, 36px);
    color: #FFFFFF;
    margin-bottom: 30px;
    font-weight: 400;
}

/* --- Form Elements --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Manropemedium', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    margin: 0;
}

.form-input {
    background-color: #1A1A1A; /* Dark Grey Background */
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: 'Manroperegular', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    width: 100%;
}

.form-input::placeholder {
    color: #666666;
}

.form-input:focus {
    border-color: #FC5000;
    background-color: #222222;
}

.form-textarea {
    min-height: 120px;
    resize: none;
}

/* --- Submit Button Wrapper --- */
.form-submit-wrapper {
    margin-top: 10px;
}

.contact-submit-btn {
    background: rgba(252, 80, 0, 0.1);
    width: fit-content;
    border-radius: 30px;
}

.contact-submit-btn:hover {
    background: rgba(252, 80, 0, 0.2);
}

/* --- Responsive Adjustments --- */

/* Small Desktop / Laptop (1024px - 1366px) */
@media (max-width: 1366px) {
    .contact-container-wrapper {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .contact-form-box {
        padding: 30px;
        max-width: 480px;
    }

    .contact-heading {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .contact-form {
        gap: 15px;
    }

    .form-input {
        padding: 10px 14px;
    }
}

/* Tablet Override (max-width: 991px) */
@media (max-width: 991px) {
    .contact-hero-section {
        height: auto;
        min-height: 100vh;
        background-position: center top;
    }

    .contact-container-wrapper {
        padding-top: 120px; /* Ensure header doesn't overlap */
        align-items: flex-start; /* Prevent vertical centering overlapping header */
        justify-content: center !important; /* Center horizontally */
    }

    /* CRITICAL FIX: Override Bootstrap's 'justify-content-end' on the row */
    .contact-container-wrapper .row {
        justify-content: center !important;
    }

    .contact-form-box {
        margin: 0 auto; /* Remove right-align, center box */
        width: 100%;
        max-width: 550px; /* Reset width for tablet readability */
    }
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .contact-container-wrapper {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .contact-form-box {
        padding: 25px 20px;
    }
    
    .contact-heading {
        font-size: 24px;
    }
}