/* Fallback web font just in case Norwester doesn't load */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif; /* Standard body text fallback */
}

/* Banner Container */
.contact-banner {
    position: relative;
    width: 100%;
    height: 350px; /* Default desktop height */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Replace this URL with your actual industrial background image */
    background-image: url('/assets/img/contact.jfif'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark Blue/Grey Overlay matching your screenshot */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 38, 49, 0.75); 
    z-index: 1;
}

/* Caption Container */
.caption {
    position: relative;
    z-index: 2; /* Keeps text above the overlay */
    text-align: center;
    padding: 0 20px;
    
    /* Hidden initially for the JS animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Class added by JS to trigger animation */
.caption.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Heading Typography */
.caption h1 {
    font-family: 'Norwester', 'Oswald', sans-serif;
    font-size: 4.5rem;
    color: #ffffff;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Slight drop shadow for extra pop */
}

/* =========================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================= */
@media (max-width: 992px) {
    .contact-banner {
        height: 280px;
    }
    .caption h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .contact-banner {
        height: 200px; /* Shorter on mobile */
    }
    .caption h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
}

/* ===== Next section ===== */
/* =========================================
   MAIN LAYOUT & GRID
   ========================================= */
.constrain {
    max-width: 1200px;
    margin: 40px auto;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 70px;
}

/* Desktop layout: Form takes 60%, Contact info takes 35% */
form.asc {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-family: 'Poppins', sans-serif;
}

form.asc h4 {
   
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #1a1a1a;
    border-bottom: 3px solid #e37222;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    flex: 1 1 35%;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h4 {
    font-size: 24px;
    margin-top: 15px;
    margin-bottom: 25px;
    color: #1a2a3a;
    border-bottom: 3px solid #e37222;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   FORM STYLING
   ========================================= */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.inputWrap {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

/* Style all standard inputs and textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border: 1px solid #e37222; /* Brand Color Focus */
    outline: none;
}

/* Side-by-side inputs (City & State) */
.inputGroup {
    display: flex;
    gap: 20px;
    width: 100%;
}
.inputGroup .inputWrap {
    flex: 1;
}

/* Hide anti-spam fields visually */
input.special {
    display: none !important;
}

/* Checkbox alignment */
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.checkbox input {
    margin-top: 4px;
}
.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Submit Button */
.submit {
    background-color: #e37222; /* Primary Button Color */
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 20px;
}

.submit:hover {
    background-color: #49a177;
}

/* =========================================
   FILE POND CONTAINER FALLBACK
   ========================================= */
.file-upload-container {
    margin-bottom: 20px;
    padding: 15px;
    background: #f4f7f6;
    border: 1px dashed #ccc;
    border-radius: 4px;
}
.file-upload-container h4 {
    font-size: 16px;
    border: none;
    margin-bottom: 10px;
    padding-bottom: 0;
}

/* =========================================
   CONTACT INFORMATION PANEL
   ========================================= */
.info-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-block .left, 
.info-block .right {
    flex: 1 1 45%;
}

h5 {
    font-size: 16px;
    color: #e37222;
    margin-top: 0;
    margin-bottom: 5px;
}

.contact-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 25px;
    color: #555;
}

.contact-info a {
    color: #005A2E;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* =========================================
   GOOGLE MAP
   ========================================= */
.google-map {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.google-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

.getDirections {
    display: block;
    background: #1a2a3a;
    color: #fff;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE/TABLET)
   ========================================= */
@media (max-width: 992px) {
    .constrain {
        flex-direction: column;
    }
    form.asc, .contact-info {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .inputGroup {
        flex-direction: column;
        gap: 0;
    }
    
    .info-block {
        flex-direction: column;
        gap: 0;
    }
    
    .info-block .left, 
    .info-block .right {
        flex: 1 1 100%;
    }
}

/* ========================================= */
/* FLOATING ACTION BUTTONS                   */
/* ========================================= */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between the buttons */
    z-index: 9999; /* Ensures they are always on top of everything */
}

/* Base button styling */
.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
}

/* Icon sizing */
.float-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

/* Universal hover effect */
.float-btn:hover {
    transform: translateY(-5px); /* Hop up slightly */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.float-btn:hover svg {
    transform: scale(1.1); /* Icon slightly zooms in */
}

/* --- Specific Button Colors & Logic --- */

/* 1. Back to Top Button */
.top-btn {
    background-color: #333333; /* Dark industrial grey */
    opacity: 0;           /* Hidden by default */
    visibility: hidden;   /* Hidden by default */
    transform: scale(0.5); /* Shrunk by default */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

/* Class added by JavaScript when scrolled down */
.top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1); 
}

.top-btn:hover {
    background-color: #1a1a1a;
}

/* 2. Phone Button */
.phone-btn {
    background-color: #e37222; /* Prabhat Industrial Orange */
}

.phone-btn:hover {
    background-color: #c96019;
}

/* 3. WhatsApp Button */
.wa-btn {
    background-color: #25D366; /* Official WhatsApp Green */
}

.wa-btn:hover {
    background-color: #1ebe57;
}

/* ========================================= */
/* MOBILE RESPONSIVE TWEAKS                  */
/* ========================================= */
@media (max-width: 768px) {
    .floating-container {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .float-btn {
        width: 48px;
        height: 48px;
    }
    .float-btn svg {
        width: 24px;
        height: 24px;
    }
}