/* === CONTACT PAGE STYLES === */

/* === VISUAL SYSTEM & SETUP === */
:root {
    --heading-color: #0f1c3f;
    --body-color: #334155;
    --brand-blue: #3d56a6;
    --cta-red: #e02424;
    --surface-color: #ffffff;
    --border-color: #e6eaf2;
    --background-color: #f7fafc;
    --font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body.page-template-contact {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--body-color);
    line-height: 1.6;
}

.page-template-contact .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-template-contact section {
    padding: 80px 0;
}

.page-template-contact h1,
.page-template-contact h2,
.page-template-contact h3,
.page-template-contact h4 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

.page-template-contact h1 {
    font-size: 44px;
}

.page-template-contact h2 {
    font-size: 36px;
}

.page-template-contact .section-heading {
    text-align: center;
    margin-bottom: 48px;
}

/* === A. HERO & STICKY CTA === */
.page-template-contact .hero-section {
    background: var(--surface-color);
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    /* Lower than mobile menu (10002) */
}

.page-template-contact .hero-section h1 {
    margin-bottom: 16px;
}

.page-template-contact .hero-section .subhead {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--body-color);
}

.page-template-contact .hero-section .cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-template-contact .hero-section .trust-pill {
    background: #f1f5f9;
    color: var(--body-color);
    padding: 8px 16px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 14px;
}

.page-template-contact .hero-section .trust-pill .stars {
    color: #fbbc05;
}

.page-template-contact .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    border: 2px solid transparent;
    transition: all 180ms ease;
    cursor: pointer;
}

.page-template-contact .cta-button.primary {
    background: var(--cta-red);
    color: #fff;
}

.page-template-contact .cta-button.primary:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-md);
}

.page-template-contact .cta-button.ghost {
    background: transparent;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.page-template-contact .cta-button.ghost:hover {
    background: var(--brand-blue);
    color: #fff;
}


/* === B. QUICK CONTACT GRID === */
.page-template-contact .quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.page-template-contact .contact-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 180ms ease;
}

.page-template-contact .contact-card:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-md);
}

.page-template-contact .contact-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.page-template-contact .contact-card .content {
    flex-grow: 1;
}

.page-template-contact .contact-card .contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-blue);
    margin: 8px 0;
}

.page-template-contact .contact-card .btn-small {
    margin-top: 24px;
    height: 44px;
    font-size: 14px;
    padding: 0 20px;
}

.page-template-contact .contact-card select,
.page-template-contact .contact-card input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    margin-bottom: 8px;
}

/* === C. OPERATING HOURS === */
.page-template-contact .hours-section .container {
    display: flex;
    justify-content: center;
}

.page-template-contact .hours-card {
    background: var(--brand-blue);
    color: #fff;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    box-shadow: var(--shadow-md);
}

.page-template-contact .hours-card h2 {
    color: #fff;
}

.page-template-contact .hours-card ul {
    list-style: none;
    margin: 24px 0;
    font-size: 18px;
}

.page-template-contact .hours-card li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-template-contact .hours-card li:last-child {
    border-bottom: none;
}

.page-template-contact .hours-card .note {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 16px;
}

/* === E. SERVICE AREA & MAP === */
.page-template-contact .service-area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.page-template-contact .service-area-content ul {
    list-style: none;
    margin-top: 24px;
}

.page-template-contact .service-area-content li {
    padding: 8px 0;
}

.page-template-contact .service-area-map {
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 16px;
    background: var(--surface-color);
    box-shadow: var(--shadow-md);
}

.page-template-contact .service-area-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 16px;
}

.page-template-contact .service-area-map .map-title {
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 8px;
}

/* === F. SOCIAL & DIRECTORIES === */
.page-template-contact .social-directories-section {
    background: var(--surface-color);
}

.page-template-contact .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.page-template-contact .social-links a {
    font-size: 24px;
    color: var(--body-color);
    transition: color 180ms ease;
}

.page-template-contact .social-links a:hover {
    color: var(--brand-blue);
}

.page-template-contact .directories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-template-contact .directory-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--body-color);
    transition: all 180ms ease;
}

.page-template-contact .directory-badge:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
}

.page-template-contact .directory-badge .info {
    flex-grow: 1;
}

.page-template-contact .directory-badge .info span {
    font-weight: 600;
    color: var(--heading-color);
}

.page-template-contact .directory-badge .info p {
    font-size: 14px;
}

/* === G. FINAL CTA BANNER === */
.page-template-contact .final-cta-banner {
    background: var(--brand-blue);
    color: #fff;
    padding: 60px 0;
}

.page-template-contact .final-cta-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.page-template-contact .final-cta-banner h2 {
    color: #fff;
    max-width: 600px;
}

/* === NEW: CHAT POPUP === */
.page-template-contact .chat-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 100%;
    max-width: 360px;
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 300ms ease, opacity 300ms ease, visibility 300ms ease;
}

.page-template-contact .chat-popup.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.page-template-contact .chat-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--brand-blue);
    color: #fff;
    border-radius: 16px 16px 0 0;
}

.page-template-contact .chat-popup-header h3 {
    font-size: 18px;
    color: #fff;
}

.page-template-contact .chat-popup-header .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
}

.page-template-contact .chat-popup-body {
    padding: 24px;
    flex-grow: 1;
    text-align: center;
}

.page-template-contact .chat-popup-body p {
    margin: 0;
    font-size: 15px;
}

.page-template-contact .chat-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.page-template-contact .chat-popup-footer .cta-button {
    width: 100%;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    .page-template-contact .quick-contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-template-contact .service-area-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .page-template-contact h1 {
        font-size: 36px;
    }

    .page-template-contact h2 {
        font-size: 28px;
    }

    .page-template-contact section {
        padding: 60px 0;
    }

    .page-template-contact .container {
        padding: 0 16px;
    }

    .page-template-contact .quick-contact-grid,
    .page-template-contact .directories-grid {
        grid-template-columns: 1fr;
    }


    .page-template-contact .final-cta-banner .container {
        justify-content: center;
        text-align: center;
    }

    .page-template-contact .chat-popup {
        right: 16px;
        bottom: 16px;
        max-width: calc(100% - 32px);
    }
}