/* =========================
   GENERAL
   (navbar styles come from navbar.css)
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #f8f9fc;
    color: #123fa5;
    overflow-x: hidden;
    padding-top: 80px; /* space for the fixed navbar */
}


/* =========================
   CONTACT HERO
========================= */

.contact-hero {
    min-height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #123fa5, #1769d1);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-hero::before,
.contact-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.contact-hero::before { width: 420px; height: 420px; top: -120px; left: -100px; }
.contact-hero::after { width: 300px; height: 300px; bottom: -100px; right: -60px; }

.contact-hero-content { max-width: 720px; padding: 50px 20px; position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    margin-bottom: 15px;
    background: rgba(255, 107, 0, 0.18);
    color: #ff6b00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 107, 0, 0.35);
}

.contact-hero-content h1 { font-size: 52px; font-weight: 700; margin-bottom: 15px; line-height: 1.2; }
.hero-highlight { color: #ff6b00; }

.contact-hero-content > p { font-size: 17px; line-height: 1.7; color: #d6e0ff; margin-bottom: 40px; }

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 14px 32px;
}

.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-stat strong { font-size: 20px; font-weight: 700; color: #ffffff; }
.hero-stat span { font-size: 11px; color: #b8cbff; letter-spacing: 0.5px; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255, 255, 255, 0.25); }


/* =========================
   CONTACT SECTION
========================= */

.contact-section { padding: 80px 8%; }
.contact-container { max-width: 1100px; margin: auto; }

.contact-heading { text-align: center; margin-bottom: 50px; }
.contact-heading h2 { font-size: 34px; color: #123fa5; margin-bottom: 12px; font-weight: 700; }
.contact-heading p { color: #777; font-size: 16px; max-width: 520px; margin: auto; line-height: 1.7; }


/* =========================
   CONTACT OPTION CARDS
========================= */

.contact-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    background: white;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f8;
    border-left: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}
.contact-card:hover::after { left: 120%; }
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.11); }

.whatsapp-card { border-left-color: #25d366; }
.phone-card { border-left-color: #123fa5; }
.email-card { border-left-color: #ff6b00; }
.location-card { border-left-color: #e53935; }

.contact-icon { min-width: 62px; height: 62px; display: flex; justify-content: center; align-items: center; border-radius: 15px; flex-shrink: 0; }
.contact-icon svg { width: 28px; height: 28px; }

.whatsapp-icon { background: #e8faf0; color: #25d366; }
.phone-icon { background: #e8eeff; color: #123fa5; }
.email-icon { background: #fff0e6; color: #ff6b00; }
.location-icon { background: #fdecea; color: #e53935; }

.card-content { min-width: 0; }
.card-content h3 { color: #123fa5; font-size: 20px; font-weight: 600; margin-bottom: 5px; }
.card-content p { color: #777; font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.card-link { color: #ff6b00; font-size: 13px; font-weight: 700; letter-spacing: 0.3px; }


/* =========================
   FORM + HOURS SECTION
========================= */

.form-section { background: white; padding: 80px 8%; border-top: 1px solid #eef1f8; }

.form-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: start; }

.form-wrapper, .hours-wrapper { min-width: 0; }

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff6b00;
    background: #fff0e6;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.form-wrapper h2, .hours-wrapper h2 { font-size: 30px; font-weight: 700; color: #123fa5; margin-bottom: 8px; }

.form-subtitle { color: #777; font-size: 15px; line-height: 1.6; margin-bottom: 28px; }


/* FORM ALERTS */

.form-alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; margin-bottom: 22px; line-height: 1.6; }
.success-alert { background: #e8faf0; color: #1a7a3f; border: 1px solid #a8e6c0; }
.error-alert { background: #fdecea; color: #b71c1c; border: 1px solid #f5a8a5; }


/* CONTACT FORM */

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-group label { font-size: 13px; font-weight: 600; color: #123fa5; }
.required { color: #ff6b00; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    color: #2d2d2d;
    background: #f8f9fc;
    border: 1.5px solid #e0e6f5;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23123fa5'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #123fa5;
    box-shadow: 0 0 0 3px rgba(18, 63, 165, 0.1);
    background: white;
}

.form-group textarea { resize: vertical; min-height: 130px; }

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    width: 100%;
    background: linear-gradient(135deg, #ff6b00, #ff8c38);
    color: white;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.submit-btn svg { width: 18px; height: 18px; }
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255, 107, 0, 0.45); background: linear-gradient(135deg, #e55f00, #ff6b00); }
.submit-btn:active { transform: translateY(0); }


/* BUSINESS HOURS */

.hours-list { display: flex; flex-direction: column; margin-bottom: 28px; border: 1.5px solid #eef1f8; border-radius: 16px; overflow: hidden; }
.hours-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-size: 14px; border-bottom: 1px solid #eef1f8; }
.hours-item:last-child { border-bottom: none; }
.hours-item:nth-child(odd) { background: #f8f9fc; }
.hours-item .day { color: #444; font-weight: 500; }
.hours-item .time { color: #123fa5; font-weight: 600; text-align: right; }
.hours-item .time.closed { color: #e53935; }


/* WHATSAPP NOTE */

.whatsapp-note { display: flex; align-items: flex-start; gap: 16px; background: #e8faf0; border: 1.5px solid #a8e6c0; border-radius: 16px; padding: 18px 20px; margin-bottom: 28px; }
.note-icon { min-width: 42px; height: 42px; background: #25d366; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.note-icon svg { width: 22px; height: 22px; color: white; }
.whatsapp-note strong { display: block; color: #1a5c35; font-size: 14px; margin-bottom: 4px; }
.whatsapp-note p { color: #2e7d52; font-size: 13px; line-height: 1.5; }


/* SOCIAL LINKS */

.social-section > p { font-size: 13px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.social-links { display: flex; gap: 12px; }

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f3fb;
    color: #123fa5;
    border-radius: 12px;
    border: 1.5px solid #e0e6f5;
    transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: #123fa5; color: white; border-color: #123fa5; transform: translateY(-3px); }


/* =========================
   FOOTER (fallback - footer.css loads after and wins)
========================= */

.footer { background: #123fa5; color: white; margin-top: 20px; }
.footer-content { max-width: 1200px; margin: auto; padding: 50px 8%; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 50px; }
.footer h3 { font-size: 25px; margin-bottom: 12px; }
.footer h4 { margin-bottom: 18px; font-size: 18px; }
.footer p { color: #e0e7ff; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { color: #e0e7ff; text-decoration: none; margin-bottom: 10px; transition: 0.2s; }
.footer-links a:hover { color: #ff6b00; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); text-align: center; padding: 18px; }
.footer-bottom p { font-size: 14px; }


/* =========================
   TABLET (max 900px)
========================= */

@media (max-width: 900px) {
    .form-grid { grid-template-columns: 1fr; gap: 50px; }
}


/* =========================
   PHONES (max 760px) - navbar is ~115px tall
========================= */

@media (max-width: 760px) {
    body { padding-top: 115px; }
}


/* =========================
   MOBILE (max 800px)
========================= */

@media (max-width: 800px) {

    .contact-hero { min-height: 0; }
    .contact-hero-content { padding: 40px 20px; }
    .contact-hero-content h1 { font-size: 40px; }
    .contact-hero-content > p { font-size: 15px; margin-bottom: 28px; }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: center;
        gap: 18px;
        padding: 14px 22px;
        border-radius: 22px;
    }
    .hero-stat-divider { display: none; }
    .hero-stat span { font-size: 12px; }

    .contact-options { grid-template-columns: 1fr; }
    .contact-card:hover { transform: none; }

    .form-row { grid-template-columns: 1fr; }

    /* 16px stops iPhone auto-zoom when tapping a field */
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 16px; }

    .footer-content { grid-template-columns: 1fr; gap: 30px; }
}


/* =========================
   SMALL PHONES (max 500px)
========================= */

@media (max-width: 500px) {

    .contact-section, .form-section { padding: 50px 5%; }

    .contact-heading { margin-bottom: 32px; }
    .contact-heading h2 { font-size: 27px; }
    .contact-heading p { font-size: 14px; }

    .contact-card { padding: 18px; gap: 16px; }
    .contact-icon { min-width: 54px; height: 54px; }
    .contact-icon svg { width: 25px; height: 25px; }
    .card-content h3 { font-size: 18px; }
    .card-content p { font-size: 13.5px; }
    .card-link { font-size: 14px; }

    .contact-hero-content h1 { font-size: 32px; }
    .hero-badge { font-size: 11px; }
    .hero-stats { gap: 12px; padding: 12px 16px; }
    .hero-stat strong { font-size: 17px; }

    .form-wrapper h2, .hours-wrapper h2 { font-size: 25px; }
    .form-subtitle { font-size: 14px; margin-bottom: 22px; }

    .hours-item { padding: 14px 16px; font-size: 13.5px; }
    .whatsapp-note { padding: 16px; gap: 12px; }
    .whatsapp-note p { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}