/* =========================================================
   DUROMECH — contact.css
   Contact page specific styles
========================================================= */

/* ── Light navbar override (no video hero) ── */
#navbar { background: rgba(255,255,255,0.96) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 2px 40px rgba(0,0,0,.08); }
#navbar::before { display: none; }
#navbar .logo-word-duro { color: #1C1917 !important; }
#navbar .logo-word-mech { color: #EA580C !important; }
#navbar .logo-sup       { color: #EA580C !important; }
#navbar .ham-line       { background: #44403C !important; }
#navbar .nav-link       { color: #44403C !important; }
#navbar .nav-link:hover { color: #EA580C !important; }
#navbar .phone-link     { color: #44403C !important; }
#navbar .phone-icon-wrap { background: #FFF7ED !important; }

/* ── Hero ── */
#contact-hero {
    background: linear-gradient(135deg, #1C1917 55%, #2a1610);
    min-height: auto;
    display: block;
    padding-top: 7rem;
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero-grid-contact {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(249,115,22,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,115,22,.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .5;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

/* ── Contact info cards ── */
.contact-card {
    border-radius: 1.5rem;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card-icon {
    width: 52px; height: 52px;
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* ── Sticky form card ── */
.form-card {
    background: #fff;
    border: 1px solid #E7E5E4;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.02);
    position: sticky;
    top: 6rem;
}

/* ── Field error state ── */
.form-input.error { border-color: #EF4444 !important; box-shadow: 0 0 0 4px rgba(239,68,68,.1) !important; }
.field-error { color: #EF4444; font-size: .78rem; font-weight: 600; margin-top: .35rem; display: none; }
.field-error.visible { display: block; }

/* ── Submit button loading state ── */
.cta-btn:disabled { opacity: .7; cursor: not-allowed; transform: none !important; }
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}
.cta-btn.loading .spinner { display: block; }
.cta-btn.loading .btn-text { display: none; }
.cta-btn.loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success state ── */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1rem;
}
.form-success.visible { display: flex; }
.success-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 12px 32px rgba(34,197,94,.35);
    animation: bounceIn .6s cubic-bezier(.26,.53,.74,1.48) both;
}
@keyframes bounceIn {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Why Us list ── */
.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    transition: background .25s;
}
.why-us-item:hover { background: #FFF7ED; }
.why-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: .875rem;
    background: linear-gradient(135deg, #FFF7ED, #FED7AA);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: background .25s, transform .25s;
}
.why-us-item:hover .why-icon { background: linear-gradient(135deg, #F97316, #EA580C); transform: scale(1.08) rotate(-5deg); }
.why-us-item:hover .why-icon i { color: #fff !important; }

/* ── Hours badge ── */
.hours-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: 9999px;
    background: #F0FDF4; border: 1px solid #BBF7D0;
    color: #15803D; font-size: .82rem; font-weight: 700;
}
.hours-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22C55E;
    animation: pulse-green 1.8s ease-in-out infinite;
}
@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.3); }
}

/* ── Map ── */
.map-wrapper {
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid #E7E5E4;
    box-shadow: 0 16px 48px rgba(0,0,0,.07);
    height: 420px;
}

/* ── Quick info strip ── */
.quick-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
.quick-chip {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .6rem 1.25rem; border-radius: 9999px;
    background: #fff; border: 1px solid #E7E5E4;
    font-size: .88rem; font-weight: 600; color: #44403C;
    transition: all .25s;
    text-decoration: none;
}
.quick-chip:hover { border-color: #FB923C; color: #EA580C; background: #FFF7ED; }
.quick-chip i { color: #EA580C; }

/* ── CTA Banner ── */
#contact-cta { background: linear-gradient(135deg, #F97316 0%, #C2410C 100%); position: relative; overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE FIXES — contact.css
═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Hero — reduce excessive space */
    #contact-hero {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
        min-height: auto !important;
    }
    #contact-hero h1 {
        font-size: clamp(1.5rem, 6.5vw, 2.5rem) !important;
        line-height: 1.2 !important;
    }
    #contact-hero p {
        margin-top: .75rem !important;
        font-size: .95rem !important;
    }
    /* Breadcrumb less margin */
    #contact-hero nav[aria-label="Breadcrumb"] {
        margin-bottom: 1rem !important;
    }
    /* Icon + label row */
    #contact-hero .flex.items-center.gap-3.mb-5 {
        margin-bottom: .75rem !important;
    }
    /* Badges row — less top margin */
    #contact-hero .flex.flex-wrap.gap-3.mt-8 {
        margin-top: 1.25rem !important;
    }
    /* Stats grid — tighter */
    #contact-hero .grid.grid-cols-2.gap-4 {
        gap: .75rem !important;
        margin-top: 1.5rem !important;
    }
    #contact-hero .grid.grid-cols-2 > div {
        padding: .75rem !important;
    }
    #contact-hero .grid.grid-cols-2 p.text-4xl {
        font-size: 1.75rem !important;
    }
    /* 2-col grid stacks on mobile */
    #contact-hero .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Contact cards section */
    .contact-card { padding: 1.25rem !important; }
    .contact-card-icon { width: 44px !important; height: 44px !important; }
    
    /* Form */
    .form-card { padding: 1.5rem !important; border-radius: 1.25rem !important; position: static !important; }
    .form-input { font-size: .95rem !important; }
    
    /* Map */
    .map-wrapper { height: 280px !important; border-radius: 1.25rem !important; }
    
    /* Quick strip */
    .quick-strip { flex-direction: column !important; align-items: stretch !important; }
    .quick-chip { justify-content: center !important; }
    
    /* Why us */
    .why-us-item { padding: .85rem !important; }
    .why-icon { width: 38px !important; height: 38px !important; }
    
    /* CTA */
    #contact-cta h2 { font-size: clamp(1.4rem, 6vw, 2.2rem) !important; }

    /* Form + Why Us grid — reduce gap */
    .grid.gap-16 {
        gap: 2rem !important;
    }
}

@media (max-width: 1023px) {
    #contact-hero .grid.lg\:grid-cols-2 { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .form-card { position: static !important; }
}

