
/* =========================================================
   SMK MODULARS LLP - CONTACT US PAGE
   File: /css/contact-us.css

   All page styles are scoped under .contact-page or use
   contact-specific classes to protect the shared header/footer.
========================================================= */

.contact-page,
.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}

.contact-page {
    width: 100%;
    color: #183d3b;
    font-family: var(--font-primary, "Poppins", sans-serif);
}

.contact-page img {
    max-width: 100%;
}

.contact-page a {
    overflow-wrap: anywhere;
}

.contact-page .contact-section-label {
    display: inline-block;
    margin: 0 0 13px;
    color: #f07f00;
    font-size: var(--font-small, 12px);
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================================
   1. HERO
========================================================= */

.contact-page .contact-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 390px;
    padding: 70px 0;
    overflow: hidden;
    isolation: isolate;
    background-color: #183d3b;
    background-image: url('/images/about-us-banner.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.contact-page .contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(24, 61, 59, 0.96) 0%,
        rgba(24, 61, 59, 0.86) 55%,
        rgba(24, 61, 59, 0.55) 100%
    );
}

.contact-page .contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-page .contact-hero-content {
    max-width: 800px;
}

.contact-page .contact-eyebrow {
    display: inline-block;
    margin: 0 0 15px;
    color: #ff9a32;
    font-size: var(--font-small, 12px);
    font-weight: 600;
    letter-spacing: 1.7px;
    line-height: 1.6;
}

.contact-page .contact-hero h1 {
    margin: 0 0 18px;
    padding: 0;
    color: #ffffff;
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: var(--font-h1, 44px);
    font-weight: 600;
    line-height: var(--line-heading, 1.25);
    letter-spacing: -0.5px;
}

.contact-page .contact-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-lead, 16px);
    line-height: var(--line-body, 1.8);
}

.contact-page .contact-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--font-small, 12px);
    line-height: 1.6;
}

.contact-page .contact-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-page .contact-breadcrumb a:hover {
    color: #ff9a32;
}

.contact-page .contact-breadcrumb i {
    color: #f07f00;
}


/* =========================================================
   2. INTRODUCTION
========================================================= */

.contact-page .contact-intro {
    padding: 75px 0 65px;
    background: #ffffff;
}

.contact-page .contact-intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-page .contact-intro h2 {
    margin: 0 0 20px;
    color: #183d3b;
    font-size: var(--font-h2, 36px);
    font-weight: 600;
    line-height: var(--line-heading, 1.25);
}

.contact-page .contact-intro p {
    margin: 0 0 15px;
    color: #626d69;
    font-size: var(--font-body, 14px);
    line-height: var(--line-body, 1.8);
}

.contact-page .contact-intro p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   3. ENQUIRY SECTION
========================================================= */

.contact-page .contact-enquiry-section {
    padding: 85px 0;
    background: #f3f6f4;
}

.contact-page .contact-enquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 42px;
}

.contact-page .contact-enquiry-aside {
    padding-top: 15px;
}

.contact-page .contact-enquiry-aside h2 {
    margin: 0 0 18px;
    color: #183d3b;
    font-size: var(--font-h2, 36px);
    font-weight: 600;
    line-height: var(--line-heading, 1.25);
}

.contact-page .contact-enquiry-aside > p {
    margin: 0 0 28px;
    color: #626d69;
    font-size: var(--font-body, 14px);
    line-height: var(--line-body, 1.8);
}


/* Response note */

.contact-page .contact-response-note {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 28px 0;
    padding: 20px;
    background: #eaf2ee;
    border-left: 3px solid #f07f00;
    border-radius: 4px;
}

.contact-page .contact-response-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #006766;
    background: #ffffff;
    border-radius: 4px;
    font-size: 19px;
}

.contact-page .contact-response-note h3 {
    margin: 0 0 7px;
    color: #183d3b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.contact-page .contact-response-note p {
    margin: 0;
    color: #626d69;
    font-size: 12px;
    line-height: 1.8;
}


/* Contact details in the sidebar */

.contact-page .contact-aside-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 23px;
}

.contact-page .contact-aside-detail > i {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #006766;
    background: #eaf2ee;
    border-radius: 4px;
    font-size: 17px;
}

.contact-page .contact-aside-detail div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.contact-page .contact-aside-detail span {
    color: #78827e;
    font-size: 12px;
    line-height: 1.5;
}

.contact-page .contact-aside-detail a {
    color: #183d3b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-page .contact-aside-detail a:hover {
    color: #006766;
}


/* =========================================================
   4. FORM CARD
========================================================= */

.contact-page .contact-form-card {
    min-width: 0;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e0e9e3;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(24, 61, 59, 0.07);
}

.contact-page .contact-form-heading {
    margin-bottom: 27px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5ebe7;
}

.contact-page .contact-form-heading h2 {
    margin: 0 0 8px;
    color: #183d3b;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.4;
}

.contact-page .contact-form-heading p {
    margin: 0;
    color: #78827e;
    font-size: 12px;
    line-height: 1.7;
}


/* Form grid */

.contact-page .contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px 18px;
}

.contact-page .contact-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
}

.contact-page .contact-field-full {
    grid-column: 1 / -1;
}

.contact-page .contact-field label {
    display: block;
    margin: 0 0 8px;
    color: #183d3b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}


/* Inputs, select and textarea.
   These selectors only affect controls inside this form. */

.contact-page .contact-enquiry-form .form-control {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    color: #183d3b;
    background-color: #ffffff;
    border: 1px solid #d8e1dc;
    border-radius: 4px;
    outline: none;
    box-shadow: none;
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .contact-enquiry-form input.form-control {
    height: 48px;
}

.contact-page .contact-enquiry-form select.form-control {
    height: 48px;
    padding-right: 35px;
    cursor: pointer;
}

.contact-page .contact-enquiry-form textarea.form-control {
    min-height: 145px;
    height: auto;
    resize: vertical;
}

.contact-page .contact-enquiry-form .form-control::placeholder {
    color: #9aa39f;
    opacity: 1;
}

.contact-page .contact-enquiry-form .form-control:focus {
    border-color: #006766;
    box-shadow: 0 0 0 3px rgba(0, 103, 102, 0.1);
}

.contact-page .contact-enquiry-form select.form-control:invalid {
    color: #78827e;
}


/* CAPTCHA */

.contact-page .contact-captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px;
    align-items: stretch;
    gap: 10px;
}

.contact-page .contact-enquiry-form .contact-captcha-question {
    background: #f3f6f4;
    color: #183d3b;
    font-weight: 600;
    text-align: center;
}

.contact-page .contact-enquiry-form .contact-captcha-question:disabled {
    opacity: 1;
    cursor: default;
}

.contact-page .contact-captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 48px;
    padding: 0;
    color: #ffffff;
    background: #006766;
    border: 1px solid #006766;
    border-radius: 4px;
    cursor: pointer;
    font-size: 17px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-page .contact-captcha-refresh:hover {
    background: #183d3b;
    border-color: #183d3b;
}

.contact-page .contact-field-help {
    margin: 8px 0 0;
    color: #78827e;
    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   5. FORM BUTTONS
========================================================= */

.contact-page .contact-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 28px;
    padding-top: 23px;
    border-top: 1px solid #e5ebe7;
}

.contact-page .contact-submit-button,
.contact-page .contact-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-page .contact-submit-button {
    color: #ffffff;
    background: #f07f00;
    border-color: #f07f00;
}

.contact-page .contact-submit-button:hover {
    color: #ffffff;
    background: #d96f00;
    border-color: #d96f00;
}

.contact-page .contact-submit-button i {
    color: #ffffff;
}

.contact-page .contact-reset-button {
    color: #006766;
    background: #ffffff;
    border-color: #cbd9d1;
}

.contact-page .contact-reset-button:hover {
    color: #183d3b;
    background: #eaf2ee;
    border-color: #b9cdc1;
}


/* =========================================================
   6. OFFICE DETAILS
========================================================= */

.contact-page .contact-details {
    padding: 80px 0;
    background: #ffffff;
}

.contact-page .contact-section-heading {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}

.contact-page .contact-section-heading h2 {
    margin: 0 0 14px;
    color: #183d3b;
    font-size: var(--font-h2, 36px);
    font-weight: 600;
    line-height: var(--line-heading, 1.25);
}

.contact-page .contact-section-heading p {
    margin: 0;
    color: #626d69;
    font-size: var(--font-body, 14px);
    line-height: var(--line-body, 1.8);
}

.contact-page .contact-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.contact-page .contact-info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 30px;
    background: #eaf2ee;
    border: 1px solid #dce7e0;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-page .contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 61, 59, 0.08);
}

.contact-page .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    color: #006766;
    background: #ffffff;
    border-radius: 5px;
    font-size: 21px;
}

.contact-page .contact-card-label {
    margin-bottom: 8px;
    color: #f07f00;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.6;
}

.contact-page .contact-info-card h3 {
    margin: 0 0 12px;
    color: #183d3b;
    font-size: var(--font-h3, 20px);
    font-weight: 600;
    line-height: 1.45;
}

.contact-page .contact-info-card p {
    margin: 0 0 20px;
    color: #626d69;
    font-size: var(--font-body, 14px);
    line-height: 1.9;
}

.contact-page .contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: #006766;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
}

.contact-page .contact-card-link i {
    color: #f07f00;
    transition: transform 0.2s ease;
}

.contact-page .contact-card-link:hover {
    color: #183d3b;
}

.contact-page .contact-card-link:hover i {
    transform: translateX(3px);
}


/* =========================================================
   7. GOOGLE MAP
========================================================= */

.contact-page .contact-map-section {
    padding: 75px 0;
    background: #f3f6f4;
}

.contact-page .contact-map-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.contact-page .contact-map-heading h2 {
    margin: 0 0 12px;
    color: #183d3b;
    font-size: var(--font-h2, 36px);
    font-weight: 600;
    line-height: var(--line-heading, 1.25);
}

.contact-page .contact-map-heading p {
    margin: 0;
    color: #626d69;
    font-size: var(--font-body, 14px);
    line-height: var(--line-body, 1.8);
}

.contact-page .contact-map-directions {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 20px;
    color: #ffffff;
    background: #006766;
    border: 1px solid #006766;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.contact-page .contact-map-directions:hover {
    color: #ffffff;
    background: #183d3b;
    border-color: #183d3b;
}

.contact-page .contact-map-frame {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #eaf2ee;
    border: 1px solid #dce7e0;
    border-radius: 6px;
}

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


/* =========================================================
   8. TABLET RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .contact-page .contact-hero {
        min-height: 350px;
        padding: 60px 0;
    }

    .contact-page .contact-hero h1 {
        font-size: var(--font-h1, 36px);
    }

    .contact-page .contact-intro,
    .contact-page .contact-details {
        padding: 60px 0;
    }

    .contact-page .contact-enquiry-section {
        padding: 65px 0;
    }

    .contact-page .contact-enquiry-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .contact-page .contact-enquiry-aside {
        padding-top: 0;
    }

    .contact-page .contact-enquiry-aside h2 {
        font-size: var(--font-h2, 30px);
    }

    .contact-page .contact-form-card {
        padding: 30px;
    }

    .contact-page .contact-map-section {
        padding: 60px 0;
    }

    .contact-page .contact-section-heading h2,
    .contact-page .contact-map-heading h2 {
        font-size: var(--font-h2, 30px);
    }
}


/* =========================================================
   9. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 767px) {
    .contact-page .contact-hero {
        min-height: auto;
        padding: 50px 0;
        background-position: center;
    }

    .contact-page .contact-hero-overlay {
        background: rgba(24, 61, 59, 0.88);
    }

    .contact-page .contact-eyebrow {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .contact-page .contact-hero h1 {
        margin-bottom: 14px;
        font-size: var(--font-h1, 28px);
        letter-spacing: 0;
    }

    .contact-page .contact-hero p {
        font-size: var(--font-body, 13px);
    }

    .contact-page .contact-breadcrumb {
        gap: 9px;
        margin-top: 20px;
    }

    .contact-page .contact-intro {
        padding: 45px 0;
    }

    .contact-page .contact-intro h2,
    .contact-page .contact-enquiry-aside h2,
    .contact-page .contact-section-heading h2,
    .contact-page .contact-map-heading h2 {
        font-size: var(--font-h2, 26px);
    }

    .contact-page .contact-enquiry-section {
        padding: 45px 0;
    }

    .contact-page .contact-form-card {
        padding: 23px 19px;
    }

    .contact-page .contact-form-heading {
        margin-bottom: 22px;
        padding-bottom: 17px;
    }

    .contact-page .contact-form-heading h2 {
        font-size: 22px;
    }

    .contact-page .contact-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .contact-page .contact-field-full {
        grid-column: auto;
    }

    .contact-page .contact-captcha-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
        gap: 7px;
    }

    .contact-page .contact-captcha-refresh {
        width: 42px;
        min-width: 42px;
    }

    .contact-page .contact-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-page .contact-submit-button,
    .contact-page .contact-reset-button {
        width: 100%;
    }

    .contact-page .contact-details {
        padding: 45px 0;
    }

    .contact-page .contact-section-heading {
        margin-bottom: 28px;
    }

    .contact-page .contact-details-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .contact-page .contact-info-card {
        padding: 24px;
    }

    .contact-page .contact-map-section {
        padding: 45px 0;
    }

    .contact-page .contact-map-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .contact-page .contact-map-frame {
        height: 310px;
    }
}


/* =========================================================
   10. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .contact-page .contact-hero {
        padding: 42px 0;
    }

    .contact-page .contact-enquiry-section {
        padding: 35px 0;
    }

    .contact-page .contact-form-card {
        padding: 20px 15px;
        border-radius: 6px;
    }

    .contact-page .contact-enquiry-form .form-control {
        font-size: 13px;
    }

    .contact-page .contact-captcha-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
        gap: 6px;
    }

    .contact-page .contact-captcha-refresh {
        width: 38px;
        min-width: 38px;
    }

    .contact-page .contact-map-frame {
        height: 270px;
    }
}


/* =========================================================
   11. ACCESSIBILITY AND REDUCED MOTION
========================================================= */

.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-page input:focus-visible,
.contact-page select:focus-visible,
.contact-page textarea:focus-visible {
    outline: 2px solid #f07f00;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .contact-page *,
    .contact-page *::before,
    .contact-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .contact-page .contact-info-card:hover {
        transform: none;
    }
}
