/* ===== CONTACT US PAGE STYLING ===== */

:root {
    --primary-color: #cd2c31;
    /* Brand Red */
    --logo-red: #d1122a;
    --leaf-green: #8cc63f;
    --slogan-gold: #ab9558;
    --text-dark: #222;
    --text-muted: #555;
    --bg-warm: #faf7f0;
    /* Premium soft cream background */
    --card-bg: rgba(255, 255, 255, 0.85);
    --input-focus: #efc481;
    --border-soft: rgba(0, 0, 0, 0.08);
}

body.contact-page {
    background-color: #fee396;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto !important;
    /* Ensure page is scrollable */
}

/* Force navbar into scrolled state (always visible backdrop & CTA) */
body.contact-page .custom-navbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
}

body.contact-page .custom-navbar .navbar-cta-wrapper {
    max-width: 150px !important;
    opacity: 1 !important;
    margin-left: 16px !important;
}

body.contact-page .custom-navbar .custom-navbar-links {
    transform: translateX(-8px) !important;
}

/* ===== MAIN CONTAINER ===== */
.contact-main {
    width: 100%;
    padding-top: 100px;
    /* Space for the floating fixed navbar */
    box-sizing: border-box;
}

/* ===== BREADCRUMBS & HEADING ===== */
.contact-heading-section {
    padding: 40px 24px 20px;
    text-align: center;
}

.contact-heading-inner {
    max-width: 800px;
    margin: 0 auto;
}

.contact-breadcrumb {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.contact-page-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.contact-page-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== GOOGLE MAP SECTION ===== */
.contact-map-section {
    padding: 20px 24px;
    width: 100%;
    box-sizing: border-box;
}

.contact-map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-soft);
    background-color: #fff;
    aspect-ratio: 21 / 9;
    min-height: 300px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===== INFO & FORM CONTENT ===== */
.contact-content-section {
    padding: 40px 24px 80px;
    width: 100%;
    box-sizing: border-box;
}

.contact-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
}

/* Left Column: Info */
.contact-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-info-block {
    background-color: #44a93d;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.contact-info-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.contact-info-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.contact-info-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.contact-detail-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.contact-info-divider {
    height: 24px;
    position: relative;
}

.contact-fssai-note {
    margin-top: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
    line-height: 1.5;
    text-align: center;
    opacity: 0.85;
}

/* Right Column: Form */
.contact-form-col {
    flex: 1.2;
}

.contact-form-card {
    background-color: #44a93d;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.contact-form-card-header {
    margin-bottom: 30px;
}

.contact-form-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #111;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.contact-form-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.required-star {
    color: var(--primary-color);
    font-weight: bold;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-row {
    display: flex;
    gap: 20px;
}

.contact-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.contact-form-full {
    width: 100%;
}

.contact-form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form-input {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-input::placeholder {
    color: #aaa;
    font-weight: 500;
}

.contact-form-input:hover {
    border-color: rgba(0, 0, 0, 0.24);
}

.contact-form-input:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(205, 44, 49, 0.15);
}

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

/* Form Validation & Errors */
.contact-form-input.is-invalid {
    border-color: var(--primary-color);
    background-color: rgba(255, 0, 0, 0.02);
}

.contact-form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(205, 44, 49, 0.2);
}

.contact-form-error {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 4px;
    min-height: 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contact-form-error.show {
    opacity: 1;
}

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

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(205, 44, 49, 0.3);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-submit-btn:hover {
    background-color: #b52227;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 44, 49, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn:disabled {
    background-color: #aaa;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.contact-submit-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover .contact-submit-icon {
    transform: translateX(4px) scale(1.1);
}

/* Success Message */
.contact-success-msg {
    display: none;
    align-items: flex-start;
    gap: 12px;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 20px;
    animation: slideDownFade 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-success-msg.show {
    display: flex;
}

.contact-success-msg svg {
    width: 22px;
    height: 22px;
    color: #4caf50;
    flex-shrink: 0;
    margin-top: 1px;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FOOTER OVERRIDES & LAYOUT ===== */
.contact-footer {
    width: 100vw;
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

.contact-footer-desktop {
    display: block;
    width: 100%;
    height: 56.25vw;
    /* 16:9 aspect ratio matches the image perfectly */
    background-image: url('footer-background-image.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Mobile drawer overlay and drawer styles scoped for contact page */
body.contact-page .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.contact-page .mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

body.contact-page .mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    box-sizing: border-box;
}

body.contact-page .mobile-nav-drawer.is-open {
    right: 0;
}

body.contact-page .mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 4px 8px;
    z-index: 10;
}

body.contact-page .mobile-nav-list {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 4px;
}

body.contact-page .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 8px;
    margin: 0 8px;
}

body.contact-page .mobile-nav-link:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

body.contact-page .mobile-nav-link.contact-active {
    color: var(--primary-color);
    background-color: rgba(205, 44, 49, 0.06);
}

body.contact-page .mobile-nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #666;
}

body.contact-page .mobile-nav-link.contact-active .mobile-nav-icon {
    color: var(--primary-color);
}

body.contact-page .mobile-nav-social {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

body.contact-page .mobile-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.contact-page .mobile-social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}


body.contact-page .mobile-social-link svg {
    width: 18px;
    height: 18px;
}

/* Hamburger menu - always show on tablet/mobile, hide on desktop */
body.contact-page .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    width: 40px;
    height: 40px;
}

body.contact-page .nav-hamburger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.contact-page .nav-hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #111;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Desktop / Tablet Breakpoint (Tablet layout) */
@media (max-width: 1024px) {
    .contact-page-title {
        font-size: 2.5rem;
    }

    .contact-map-wrapper {
        aspect-ratio: 16 / 7;
    }

    .contact-content-inner {
        flex-direction: column;
        gap: 40px;
    }

    .contact-info-col {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info-block {
        margin-bottom: 0;
    }

    .contact-info-divider {
        display: none;
    }

    .contact-fssai-note {
        grid-column: 1 / -1;
        margin-top: 10px;
    }

    /* Hide desktop footer, show responsive footer */
    .contact-footer-desktop {
        display: none !important;
    }

    /* Hide desktop nav links, show hamburger */
    body.contact-page .custom-navbar-links {
        display: none !important;
    }

    body.contact-page .navbar-cta-wrapper {
        display: none !important;
    }

    body.contact-page .nav-hamburger {
        display: flex !important;
    }

    /* Hide back-to-top button when mobile navigation is open */
    body.contact-page.mobile-nav-open .back-to-top {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Tablet (768px – 1024px) Specifics */
@media (min-width: 768px) and (max-width: 1024px) {
    .contact-info-col {
        grid-template-columns: 1fr 1fr;
    }

    .contact-fssai-note {
        grid-column: 1 / -1;
    }
}

/* Fix: style.css sets .footer-tablet-layout { opacity: 0; transform: translateY(40px) }
   as the initial state for the IntersectionObserver animation run by script.js.
   contact-us.html uses contact-us.js (no observer), so .is-animated is never added
   and the footer stays completely invisible. Force it fully visible here. */
@media (min-width: 768px) and (max-width: 1024px) {
    body.contact-page .footer-tablet-layout {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Mobile (≤ 767px) Specifics */
@media (max-width: 767px) {
    .contact-main {
        padding-top: 90px;
    }

    .contact-heading-section {
        padding: 30px 16px 15px;
    }

    .contact-page-title {
        font-size: 2rem;
    }

    .contact-page-subtitle {
        font-size: 0.95rem;
    }

    .contact-map-section {
        padding: 10px 16px;
    }

    .contact-map-wrapper {
        aspect-ratio: 4 / 3;
        min-height: 250px;
    }

    .contact-content-section {
        padding: 20px 16px 60px;
    }

    .contact-form-card {
        padding: 24px;
    }

    .contact-form-title {
        font-size: 1.5rem;
    }

    .contact-form-row {
        flex-direction: column;
        gap: 20px;
    }

    .contact-submit-btn {
        width: 100%;
    }

    .contact-info-block {
        padding: 20px;
    }

    .contact-info-heading {
        font-size: 1.2rem;
    }
}

/* Desktop (≥ 1025px) - Force show desktop footer, hide responsive footer */
@media (min-width: 1025px) {
    .contact-footer-desktop {
        display: block !important;
    }

    /* Show nav links on desktop, hide hamburger */
    body.contact-page .custom-navbar-links {
        display: flex !important;
    }

    body.contact-page .navbar-cta-wrapper {
        display: flex !important;
    }

    body.contact-page .nav-hamburger {
        display: none !important;
    }

    /* Hide responsive footer on desktop */
    body.contact-page .footer-responsive {
        display: none !important;
    }
}

/* ===== FLOATING WHATSAPP ICON (DESKTOP ONLY) ===== */
.floating-whatsapp {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (min-width: 1025px) {
    .floating-whatsapp {
        display: flex;
    }
}