/* =========================================================
   CONTACT PAGE
   Alert Eye Detective Services
========================================================= */


/* =========================================================
   CONTACT PAGE GLOBAL
========================================================= */

body:has(.contact-page-hero) {
    overflow-x: hidden;
}


/* =========================================================
   CONTACT PAGE HEADER / NAVBAR
   Scoped only to contact page
========================================================= */

/*
   Contact page should use the same transparent navbar
   style as the home page.
*/

body:has(.contact-page-hero) .top-header-area {
    position: relative;
    z-index: 1100;
}


/* Navbar sits over the hero instead of creating
   a large white block */

body:has(.contact-page-hero) .navbar-area {
    position: absolute !important;
    top: 62px;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: transparent !important;
}


/* Navbar container */

body:has(.contact-page-hero) .navbar-area .container-fluid {
    position: relative;
    z-index: 2;
}


/* Navigation links */

body:has(.contact-page-hero) .navbar-area .nav-link {
    color: #ffffff !important;
}


/* Navigation hover */

body:has(.contact-page-hero) .navbar-area .nav-link:hover {
    color: #00c7b1 !important;
}


/* Active contact link */

body:has(.contact-page-hero) .navbar-area .nav-link.active {
    color: #00c7b1 !important;
}


/* Dropdown arrow */

body:has(.contact-page-hero) .navbar-area .dropdown-toggle::after {
    color: #ffffff;
}


/* Search and menu icons */

body:has(.contact-page-hero) .navbar-area .search-btn {
    color: #000000 !important;
}


/* Round menu/search buttons */

body:has(.contact-page-hero) .navbar-area .others-options .search-btn {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #9fd0ca !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}


/* Divider before menu buttons */

body:has(.contact-page-hero) .navbar-area .others-options {
    position: relative;
}


body:has(.contact-page-hero) .navbar-area .others-options::before {
    content: "";
    width: 1px;
    height: 86px;
    background: rgba(255, 255, 255, 0.45);
    position: absolute;
    left: -35px;
    top: 0;
}


/* Mobile burger */

body:has(.contact-page-hero) .navbar-toggler {
    color: #000000 !important;
}


/* =========================================================
   HERO
========================================================= */

.contact-page-hero {
    position: relative;
    min-height: 540px;
    padding: 190px 20px 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(15, 68, 66, 0.98),
            rgba(28, 41, 57, 0.99)
        );

    overflow: hidden;
}


/* Decorative circle - top right */

.contact-page-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    right: -160px;
    top: -180px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    pointer-events: none;
}


/* Decorative circle - bottom left */

.contact-page-hero::after {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    left: -130px;
    bottom: -160px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    pointer-events: none;
}


/* Hero content */

.contact-hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}


/* Small heading */

.contact-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: #8fd7c8;
}


/* Main heading */

.contact-hero-content h1 {
    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(42px, 6vw, 72px);

    line-height: 1.05;

    font-weight: 700;
}


/* Hero paragraph */

.contact-hero-content p {
    max-width: 780px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.78);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-information-section {
    padding: 90px 0;

    background: #f7f9f8;
}


.contact-info-card {
    height: 100%;

    padding: 40px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid rgba(15, 68, 66, 0.08);

    border-radius: 12px;

    transition: all 0.3s ease;
}


.contact-info-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 45px rgba(20, 50, 50, 0.09);
}


.contact-info-icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(15, 113, 93, 0.08);
}


.contact-info-icon i {
    font-size: 30px;

    color: #0f715d;
}


.contact-info-card h3 {
    margin-bottom: 12px;

    font-size: 24px;

    color: #17212b;
}


.contact-info-card p {
    margin-bottom: 16px;

    color: #6d777b;

    line-height: 1.7;
}


.contact-info-card a,
.contact-info-card span {
    color: #0f715d;

    font-size: 18px;

    font-weight: 600;

    word-break: break-word;
}


/* =========================================================
   CONTACT FORM SECTION
========================================================= */

.contact-form-section {
    padding: 110px 0;

    background: #ffffff;
}


.contact-form-content {
    padding-right: 35px;
}


.contact-form-content h2 {
    margin-bottom: 22px;

    color: #17212b;

    font-size: clamp(36px, 4vw, 52px);

    line-height: 1.15;
}


.contact-form-content > p {
    margin-bottom: 35px;

    color: #687477;

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   TRUST LIST
========================================================= */

.contact-trust-list {
    display: flex;

    flex-direction: column;

    gap: 24px;
}


.contact-trust-item {
    display: flex;

    align-items: flex-start;

    gap: 15px;
}


.contact-trust-item > i {
    flex-shrink: 0;

    font-size: 27px;

    color: #0f715d;
}


.contact-trust-item h4 {
    margin-bottom: 5px;

    font-size: 18px;

    color: #17212b;
}


.contact-trust-item p {
    margin: 0;

    color: #737d80;

    line-height: 1.6;
}


/* =========================================================
   FORM BOX
========================================================= */

.contact-page-form-box {
    padding: 45px;

    background: #f5f8f7;

    border: 1px solid rgba(15, 68, 66, 0.08);

    border-radius: 16px;
}


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


.contact-form-heading h3 {
    margin-bottom: 8px;

    color: #17212b;

    font-size: 32px;
}


.contact-form-heading p {
    margin: 0;

    color: #6d777b;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.contact-field {
    margin-bottom: 22px;
}


.contact-field label {
    display: block;

    margin-bottom: 8px;

    color: #263238;

    font-size: 15px;

    font-weight: 600;
}


.contact-field .form-control {
    min-height: 56px;

    padding: 14px 17px;

    border: 1px solid #dce3e1;

    border-radius: 7px;

    background: #ffffff;

    color: #263238;

    box-shadow: none;
}


.contact-field textarea.form-control {
    min-height: 145px;

    resize: vertical;
}


.contact-field .form-control:focus {
    border-color: #0f715d;

    box-shadow:
        0 0 0 3px rgba(15, 113, 93, 0.08);
}


.contact-field .form-control::placeholder {
    color: #9aa4a6;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

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

    min-height: 58px;

    padding: 14px 24px;

    border: 0;

    border-radius: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    background: #0f715d;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;
}


.contact-submit-btn:hover {
    background: #0b594a;
}


.contact-submit-btn:disabled {
    opacity: 0.7;

    cursor: not-allowed;
}


.contact-loading-icon {
    animation: contactSpin 1s linear infinite;
}


@keyframes contactSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   FORM MESSAGE
========================================================= */

.contact-page-message {
    display: none;

    margin-top: 18px;

    padding: 14px 16px;

    border-radius: 7px;

    font-size: 15px;

    line-height: 1.6;
}


.contact-page-message.success {
    display: block;

    background: #e8f7f1;

    border: 1px solid #b7e4d3;

    color: #176b51;
}


.contact-page-message.error {
    display: block;

    background: #fff0f0;

    border: 1px solid #efc3c3;

    color: #a13c3c;
}


.contact-page-message i {
    margin-right: 6px;
}


.contact-form-note {
    margin: 15px 0 0;

    text-align: center;

    color: #7d8789;

    font-size: 13px;
}


.contact-form-note i {
    margin-right: 5px;
}


/* =========================================================
   CTA
========================================================= */

.contact-cta-section {
    padding: 0 0 100px;

    background: #ffffff;
}


.contact-cta-box {
    padding: 45px 50px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    background:
        linear-gradient(
            135deg,
            #0f715d,
            #164f53
        );
}


.contact-cta-box > div > span {
    display: block;

    margin-bottom: 8px;

    color: #9dded0;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.contact-cta-box h2 {
    margin: 0;

    max-width: 650px;

    color: #ffffff;

    font-size: clamp(25px, 3vw, 38px);

    line-height: 1.25;
}


.contact-cta-btn {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 15px 24px;

    border-radius: 6px;

    background: #ffffff;

    color: #0f715d;

    font-weight: 600;

    transition: all 0.3s ease;
}


.contact-cta-btn:hover {
    background: #edf6f3;

    color: #0f715d;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199px) {

    body:has(.contact-page-hero) .navbar-area {
        top: 60px;
    }


    body:has(.contact-page-hero) .navbar-area .others-options .search-btn {
        width: 70px;
        height: 70px;
    }


    body:has(.contact-page-hero) .navbar-area .others-options::before {
        height: 70px;
        left: -25px;
    }


    .contact-page-hero {
        min-height: 520px;

        padding-top: 175px;
    }

}


/* =========================================================
   MOBILE / TABLET NAVBAR
========================================================= */

@media (max-width: 991px) {

    /* Header remains above everything */

    body:has(.contact-page-hero) .top-header-area {
        position: relative;

        z-index: 1100;
    }


    /*
       Mobile navbar becomes normal positioned
       so it does not interfere with the hero.
    */

    body:has(.contact-page-hero) .navbar-area {
        position: relative !important;

        top: auto;
        left: auto;

        width: 100%;

        background: #ffffff !important;

        z-index: 1050;
    }


    /* Mobile navigation text */

    body:has(.contact-page-hero) .navbar-area .nav-link {
        color: #17212b !important;
    }


    body:has(.contact-page-hero) .navbar-area .nav-link:hover,
    body:has(.contact-page-hero) .navbar-area .nav-link.active {
        color: #0f715d !important;
    }


    /* Mobile logo */

    body:has(.contact-page-hero) .navbar-area .main-logo {
        max-width: 180px;

        height: auto;
    }


    /* Hide desktop extra action area if theme does */

    body:has(.contact-page-hero) .navbar-area .others-options {
        display: flex;
    }


    /* Remove divider */

    body:has(.contact-page-hero) .navbar-area .others-options::before {
        display: none;
    }


    /* Hero */

    .contact-page-hero {
        min-height: auto;

        padding: 85px 20px 80px;
    }


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


    .contact-information-section {
        padding: 70px 0;
    }


    .contact-form-section {
        padding: 75px 0;
    }


    .contact-form-content {
        padding-right: 0;

        margin-bottom: 45px;
    }


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


    .contact-cta-section {
        padding-bottom: 70px;
    }


    .contact-cta-box {
        padding: 35px 30px;

        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    /* Top header */

    body:has(.contact-page-hero) .top-header-area {
        display: none;
    }


    /* Navbar */

    body:has(.contact-page-hero) .navbar-area {
        background: #ffffff !important;
    }


    body:has(.contact-page-hero) .navbar-area .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }


    body:has(.contact-page-hero) .navbar-area .main-logo {
        max-width: 155px;
    }


    /* Hero */

    .contact-page-hero {
        padding: 70px 15px 65px;

        text-align: center;
    }


    .contact-page-hero::before {
        width: 280px;
        height: 280px;

        right: -150px;
        top: -130px;
    }


    .contact-page-hero::after {
        width: 200px;
        height: 200px;

        left: -110px;
        bottom: -110px;
    }


    .contact-eyebrow {
        margin-bottom: 14px;

        font-size: 12px;

        letter-spacing: 1.5px;
    }


    .contact-hero-content h1 {
        margin-bottom: 18px;

        font-size: 40px;

        line-height: 1.08;
    }


    .contact-hero-content p {
        font-size: 16px;

        line-height: 1.7;
    }


    /* Information */

    .contact-information-section {
        padding: 55px 0;
    }


    .contact-info-card {
        padding: 32px 22px;
    }


    .contact-info-card h3 {
        font-size: 22px;
    }


    .contact-info-card a,
    .contact-info-card span {
        font-size: 16px;
    }


    /* Form */

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


    .contact-form-content {
        margin-bottom: 35px;
    }


    .contact-form-content h2 {
        font-size: 36px;
    }


    .contact-form-content > p {
        font-size: 16px;
    }


    .contact-page-form-box {
        padding: 25px 20px;
    }


    .contact-form-heading h3 {
        font-size: 27px;
    }


    .contact-field .form-control {
        min-height: 52px;
    }


    .contact-field textarea.form-control {
        min-height: 125px;
    }


    /* CTA */

    .contact-cta-box {
        padding: 30px 22px;
    }


    .contact-cta-box h2 {
        font-size: 28px;
    }


    .contact-cta-btn {
        width: 100%;

        justify-content: center;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    body:has(.contact-page-hero) .navbar-area .main-logo {
        max-width: 135px;
    }


    .contact-page-hero {
        padding: 60px 15px 55px;
    }


    .contact-hero-content h1 {
        font-size: 34px;
    }


    .contact-hero-content p {
        font-size: 15px;
    }


    .contact-info-card {
        padding: 28px 18px;
    }


    .contact-form-content h2 {
        font-size: 32px;
    }


    .contact-page-form-box {
        padding: 22px 16px;
    }


    .contact-cta-box {
        padding: 25px 18px;
    }


    .contact-cta-box h2 {
        font-size: 25px;
    }


    /* =========================================================
   CONTACT PAGE HEADER FIX
   Keep header/navigation identical to index.html
========================================================= */

/* Make sure contact page does not hide the main navigation */
.contact-page .navbar-collapse,
body.contact-page .navbar-collapse {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Desktop navigation */
@media (min-width: 992px) {

    body.contact-page .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
    }

    body.contact-page .navbar-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.contact-page .navbar-nav .nav-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.contact-page .navbar-nav .nav-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Keep hamburger/search area visible */
    body.contact-page .others-options {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.contact-page .others-options .menu {
        display: flex !important;
        align-items: center !important;
    }

    body.contact-page .search-btn {
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Hamburger icon */
    body.contact-page .search-btn i {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    /* Hide desktop navigation on mobile */
    body.contact-page .navbar-collapse {
        display: none !important;
    }

    /* Show hamburger */
    body.contact-page .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.contact-page .others-options {
        display: block !important;
    }

    body.contact-page .others-options .menu {
        display: flex !important;
        align-items: center !important;
    }

    body.contact-page .search-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

}


/* =========================================================
   IMPORTANT:
   Do not let contact page hero styles affect navbar
========================================================= */

body.contact-page .navbar {
    position: relative;
    z-index: 1000;
}

body.contact-page .top-header-area {
    position: relative;
    z-index: 1001;
}

body.contact-page .navbar-area {
    position: relative;
    z-index: 1000;
}


/* Prevent hero pseudo-elements from covering navigation */
body.contact-page .contact-page-hero {
    position: relative;
    z-index: 1;
}

body.contact-page .contact-page-hero::before,
body.contact-page .contact-page-hero::after {
    z-index: 0;
    pointer-events: none;
}


/* Hero content stays above hero background */
body.contact-page .contact-hero-content {
    position: relative;
    z-index: 2;
}
}