﻿/* =========================================
   ELDER LABORATORIES
   CONTACT PAGE
   ========================================= */

.contact-page {
    overflow: hidden;
    background: #ffffff;
}


/* =========================================
   HERO
   ========================================= */

.contact-hero {
    position: relative;
    min-height: 550px;
    overflow: hidden;
    background: #eaf6fd;
}

.contact-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/contact/contact-hero-lab.jpg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 58% 100%;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(248, 253, 255, 0.99) 0%, rgba(248, 253, 255, 0.96) 25%, rgba(248, 253, 255, 0.82) 42%, rgba(248, 253, 255, 0.22) 68%, rgba(248, 253, 255, 0.02) 100% );
}

/* =========================================
   MOLECULAR DECORATION
   ========================================= */

.contact-molecule {
    position: absolute;
    left: 20px;
    top: 125px;
    width: 240px;
    height: 180px;
    z-index: 2;
    opacity: 0.55;
}

.molecule-node {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(87, 159, 211, 0.35);
    box-shadow: 0 0 0 8px rgba(87, 159, 211, 0.05);
}

.node-1 {
    left: 35px;
    top: 65px;
}

.node-2 {
    left: 95px;
    top: 25px;
}

.node-3 {
    left: 155px;
    top: 65px;
}

.node-4 {
    left: 105px;
    top: 115px;
}

.node-5 {
    left: 195px;
    top: 25px;
}

.molecule-line {
    position: absolute;
    height: 1px;
    background: rgba(70, 143, 199, 0.30);
    transform-origin: left center;
}

.line-1 {
    width: 72px;
    left: 51px;
    top: 72px;
    transform: rotate(-33deg);
}

.line-2 {
    width: 72px;
    left: 111px;
    top: 32px;
    transform: rotate(33deg);
}

.line-3 {
    width: 62px;
    left: 111px;
    top: 42px;
    transform: rotate(83deg);
}

.line-4 {
    width: 72px;
    left: 170px;
    top: 72px;
    transform: rotate(-33deg);
}


/* =========================================
   HERO CONTENT
   ========================================= */

.contact-hero .container {
    position: relative;
    z-index: 5;
}

.contact-hero-content {
    max-width: 650px;
    padding-top: 108px;
    padding-bottom: 175px;
}

.contact-eyebrow,
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #286fae;
}

    .contact-eyebrow span,
    .section-eyebrow span {
        display: block;
        width: 27px;
        height: 2px;
        background: #2777b8;
    }

.contact-hero-content h1 {
    margin: 0 0 24px;
    font-family: "DM Serif Display", serif;
    font-size: 72px;
    font-weight: 400;
    line-height: 1.01;
    letter-spacing: -1px;
    color: #173b65;
}

    .contact-hero-content h1 strong {
        font-weight: 400;
        color: #1478c1;
    }
.contact-hero-content p {
    max-width: 600px;
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #58738d;
}

/* =========================================
   WAVE
   ========================================= */

.contact-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 145px;
    z-index: 10;
    pointer-events: none;
}

    .contact-wave svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.wave-white {
    fill: #ffffff;
}

.wave-blue {
    fill: none;
    stroke: #2777b8;
    stroke-width: 5;
}


/* =========================================
   MAIN SECTION
   ========================================= */

.contact-main {
    position: relative;
    overflow: hidden;
    padding: 78px 0 115px;
    background: linear-gradient( 90deg, #f5fbff 0%, #ffffff 18%, #ffffff 82%, #f5fbff 100% );
}

/* LEFT SIDE IMAGE */

.contact-side-image {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 260px;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.28;
    pointer-events: none;
}
.contact-side-left {
    left: 0;
    background-image: url('/images/contact/contact-side-left.jpg');
    background-position: center;
}

.contact-side-right {
    right: 0;
    background-image: url('/images/contact/contact-side-right.jpg');
    background-position: center;
}


/* MAIN LAYOUT */

.contact-main .container {
    position: relative;
    z-index: 3;
}

.contact-main-layout {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    align-items: start;
    gap: 55px;
    max-width: 1120px;
    margin: 0 auto;
}


/* =========================================
   CONTACT INFORMATION
   ========================================= */

.contact-information {
    padding-top: 10px;
}

    .contact-information h2 {
        margin: 0 0 15px;
        font-family: "DM Serif Display", serif;
        font-size: 49px;
        font-weight: 400;
        line-height: 1.05;
        color: #173b65;
    }

        .contact-information h2 strong {
            font-weight: 400;
            color: #1478c1;
        }

.contact-intro {
    max-width: 475px;
    margin: 0 0 28px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #71869a;
}


/* =========================================
   CONTACT CARDS
   ========================================= */

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-card {
    position: relative;
    min-height: 140px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #dfebf4;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 30px rgba(40, 91, 130, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .contact-card::after {
        content: "";
        position: absolute;
        right: -35px;
        bottom: -35px;
        width: 85px;
        height: 85px;
        border: 1px solid rgba(76, 151, 207, 0.10);
        border-radius: 50%;
    }

    .contact-card:hover {
        transform: translateY(-4px);
        border-color: #c9deed;
        box-shadow: 0 16px 35px rgba(40, 91, 130, 0.10);
    }


/* ICON */

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: linear-gradient( 145deg, #e9f5fd, #d9ebf9 );
}

    .contact-card-icon svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: #1875bc;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* CARD CONTENT */

.contact-card-content {
    min-width: 0;
}

.contact-card-number {
    margin-bottom: 1px;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #7c98ae;
}

.contact-card-content > span {
    display: block;
    margin-bottom: 3px;
    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.7px;
    color: #8ba2b6;
}

.contact-card-content h3 {
    margin: 0 0 5px;
    font-family: "DM Serif Display", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.15;
    color: #173b65;
}

.contact-card-content p {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 10.5px;
    line-height: 1.55;
    color: #71859a;
}

.contact-card-content a {
    color: #1677bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .contact-card-content a:hover {
        color: #173b65;
    }


/* =========================================
   FORM CARD
   ========================================= */

.contact-form-card {
    position: relative;
    overflow: hidden;
    padding: 29px 34px 30px;
    border: 1px solid #d7e7f2;
    border-radius: 17px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 20px 55px rgba(35, 78, 134, 0.11), 0 4px 15px rgba(35, 78, 134, 0.04);
}

.contact-form-decoration {
    position: absolute;
    top: -130px;
    right: -110px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(79, 151, 207, 0.12);
    border-radius: 50%;
}

    .contact-form-decoration::after {
        content: "";
        position: absolute;
        inset: 35px;
        border: 1px solid rgba(79, 151, 207, 0.08);
        border-radius: 50%;
    }


/* FORM HEADING */

.contact-form-heading {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 21px;
}

    .contact-form-heading .section-eyebrow {
        margin-bottom: 9px;
        font-size: 9px;
    }

    .contact-form-heading h2 {
        margin: 0 0 7px;
        font-family: "DM Serif Display", serif;
        font-size: 32px;
        font-weight: 400;
        line-height: 1.05;
        color: #173b65;
    }

        .contact-form-heading h2 strong {
            font-weight: 400;
            color: #1478c1;
        }

    .contact-form-heading p {
        margin: 0;
        font-family: "DM Sans", sans-serif;
        font-size: 11px;
        line-height: 1.6;
        color: #7b8fa2;
    }


/* FORM ICON */

.form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient( 145deg, #eef8fd, #dceefa );
}

    .form-icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: #2783c4;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* =========================================
   FORM
   ========================================= */

.contact-form {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        margin-bottom: 5px;
        font-family: "DM Sans", sans-serif;
        font-size: 10px;
        font-weight: 600;
        color: #344f68;
    }


/* INPUT */

.input-wrapper,
.textarea-wrapper {
    position: relative;
}

    .input-wrapper svg,
    .textarea-wrapper svg {
        position: absolute;
        left: 12px;
        width: 15px;
        height: 15px;
        fill: none;
        stroke: #91a7b9;
        stroke-width: 1.5;
        pointer-events: none;
    }

    .input-wrapper svg {
        top: 50%;
        transform: translateY(-50%);
    }

    .textarea-wrapper svg {
        top: 12px;
    }

    .input-wrapper input,
    .textarea-wrapper textarea {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #d5e2ec;
        border-radius: 6px;
        outline: none;
        background: #ffffff;
        font-family: "DM Sans", sans-serif;
        font-size: 11px;
        color: #334e67;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .input-wrapper input {
        height: 38px;
        padding: 0 12px 0 36px;
    }

    .textarea-wrapper textarea {
        min-height: 78px;
        padding: 10px 12px 10px 36px;
        resize: vertical;
    }

        .input-wrapper input::placeholder,
        .textarea-wrapper textarea::placeholder {
            color: #a1b0bd;
        }

        .input-wrapper input:focus,
        .textarea-wrapper textarea:focus {
            border-color: #70a6cf;
            box-shadow: 0 0 0 3px rgba(76, 148, 201, 0.08);
        }


/* =========================================
   SUBMIT
   ========================================= */

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    align-self: flex-start;
    min-width: 160px;
    margin-top: 2px;
    padding: 9px 9px 9px 20px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient( 100deg, #1674b9, #288bca );
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(31,117,182,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .contact-submit b {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        font-size: 15px;
        font-weight: 400;
        transition: transform 0.3s ease;
    }

    .contact-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(31,117,182,0.25);
    }

        .contact-submit:hover b {
            transform: translateX(3px);
        }


/* =========================================
   BOTTOM CTA
   ========================================= */

.contact-bottom {
    position: relative;
    min-height: 235px;
    overflow: hidden;
    background: linear-gradient( 135deg, #e8f5fd 0%, #f4faff 50%, #e0f2fb 100% );
}


/* WORLD MAP */

.contact-bottom-map {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 390px;
    height: 155px;
    background-image: url('/images/contact/contact-world-map.jpg');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
    opacity: 0.55;
}


/* WORLD GLOBE */

.contact-bottom-globe {
    position: absolute;
    right: 0;
    bottom: -35px;
    width: 450px;
    height: 230px;
    background-image: url('/images/contact/contact-world-globe.jpg');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: cover;
    opacity: 0.88;
}


/* CTA CONTENT */

.contact-bottom .container {
    position: relative;
    z-index: 5;
}

.contact-bottom-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 47px 0 55px;
    text-align: center;
}

.bottom-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #5b8db5;
}

    .bottom-eyebrow span {
        width: 25px;
        height: 1px;
        background: #80abc8;
    }

.contact-bottom-content h2 {
    margin: 0 0 10px;
    font-family: "DM Serif Display", serif;
    font-size: 35px;
    font-weight: 400;
    line-height: 1.1;
    color: #173b65;
}

    .contact-bottom-content h2 strong {
        font-weight: 400;
        color: #1678be;
    }

.contact-bottom-content p {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    line-height: 1.7;
    color: #6f879b;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {

    .contact-main-layout {
        max-width: 940px;
        gap: 35px;
    }

    .contact-hero-content h1 {
        font-size: 59px;
    }

    .contact-hero-image {
        background-size: 52% 100%;
    }
}


@media (max-width: 991px) {

    .contact-hero {
        min-height: 510px;
    }

    .contact-hero-image {
        background-size: 65% 100%;
        opacity: 0.75;
    }

    .contact-hero-overlay {
        background: linear-gradient( 90deg, rgba(248,253,255,0.98), rgba(248,253,255,0.78) );
    }

    .contact-main-layout {
        grid-template-columns: 1fr;
        max-width: 760px;
        gap: 55px;
    }

    .contact-side-image {
        width: 150px;
        opacity: 0.10;
    }

    .contact-form-card {
        width: 100%;
        box-sizing: border-box;
    }
}


@media (max-width: 767px) {

    .contact-hero {
        min-height: 500px;
    }

    .contact-hero-content {
        padding-top: 80px;
        padding-bottom: 160px;
    }

        .contact-hero-content h1 {
            font-size: 50px;
        }

    .contact-hero-image {
        right: -100px;
        width: 80%;
        opacity: 0.48;
    }

    .contact-molecule {
        left: -35px;
        opacity: 0.35;
    }

    .contact-main {
        padding: 60px 0 80px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .contact-bottom-map {
        left: -100px;
        opacity: 0.30;
    }

    .contact-bottom-globe {
        right: -130px;
        opacity: 0.40;
    }
}


@media (max-width: 575px) {

    .contact-hero {
        min-height: 470px;
    }

    .contact-hero-content {
        padding-top: 65px;
        padding-bottom: 140px;
    }

        .contact-hero-content h1 {
            font-size: 42px;
        }

        .contact-hero-content p {
            font-size: 14px;
            line-height: 1.7;
        }

    .contact-wave {
        height: 110px;
    }

    .contact-information h2 {
        font-size: 40px;
    }

    .contact-form-card {
        padding: 25px 20px;
    }

    .contact-form-heading h2 {
        font-size: 29px;
    }

    .form-icon {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .contact-submit {
        width: 100%;
    }

    .contact-bottom {
        min-height: 270px;
    }

    .contact-bottom-content {
        padding: 50px 15px;
    }

        .contact-bottom-content h2 {
            font-size: 29px;
        }
}
