

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page {

    --contact-navy: #063b52;
    --contact-navy-dark: #032b3c;
    --contact-deep: #021f2c;

    --contact-teal: #159eba;
    --contact-blue: #62c9df;
    --contact-blue-soft: #eaf6f9;

    --contact-bg: #f5f9fb;
    --contact-light: #eaf4f7;

    --contact-white: #ffffff;

    --contact-text: #102a36;
    --contact-muted: #637d88;

    --contact-border: rgba(6, 59, 82, 0.12);
}

/* The body also uses .contact-page. Keep the window free to scroll. */
html,
body.contact-page {
    height: auto;
    overflow-y: auto;
}


/* =========================================================
   HERO
   ========================================================= */

.contact-hero {

    position: relative;

    overflow: hidden;

    min-height: 560px;

    display: flex;
    align-items: center;

    color: var(--contact-white);

    background:
        linear-gradient(
            120deg,
            rgba(2, 31, 44, 0.98) 0%,
            rgba(3, 43, 60, 0.94) 48%,
            rgba(6, 59, 82, 0.84) 100%
        ),
        url("../../images/IP_Biotech_Img1.jpg")
        center / cover no-repeat;

    isolation: isolate;
}


.contact-hero::before {

    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 65px 65px;

    z-index: -1;
}


.contact-hero::after {

    content: "";

    position: absolute;

    width: 550px;
    height: 550px;

    right: -220px;
    bottom: -280px;

    border: 1px solid rgba(98, 201, 223, 0.18);

    border-radius: 50%;

    box-shadow:
        0 0 0 70px rgba(98, 201, 223, 0.025),
        0 0 0 140px rgba(98, 201, 223, 0.018);

    z-index: -1;
}


.contact-hero-container {

    width: min(100% - 48px, 1200px);

    margin: 0 auto;

    padding: 100px 0 90px;
}


.contact-eyebrow {

    display: inline-block;

    margin-bottom: 22px;

    color: var(--contact-blue);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.contact-hero h1 {

    max-width: 850px;

    margin: 0 0 25px;

    color: var(--contact-white);

    font-size: clamp(48px, 6vw, 82px);

    line-height: 1.02;

    letter-spacing: -0.045em;

    font-weight: 700;
}


.contact-hero h1 span {

    display: block;

    color: var(--contact-blue);
}


.contact-hero-description {

    max-width: 680px;

    margin: 0;

    color: rgba(255, 255, 255, 0.74);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   MAIN CONTACT AREA
   ========================================================= */

.contact-main {

    padding: 110px 0;

    background: var(--contact-bg);
}


.contact-container {

    width: min(100% - 48px, 1200px);

    margin: 0 auto;
}


.contact-grid {

    display: grid;

    grid-template-columns:
        minmax(320px, 0.82fr)
        minmax(450px, 1.18fr);

    gap: 75px;

    align-items: start;
}


/* =========================================================
   CONTACT INFORMATION
   ========================================================= */

.contact-info-label {

    display: inline-block;

    margin-bottom: 20px;

    color: var(--contact-teal);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.contact-info h2 {

    max-width: 550px;

    margin: 0 0 22px;

    color: var(--contact-navy);

    font-size: clamp(38px, 4vw, 56px);

    line-height: 1.06;

    letter-spacing: -0.04em;
}


.contact-info h2 span {

    color: var(--contact-teal);
}


.contact-info-intro {

    max-width: 560px;

    margin: 0 0 40px;

    color: var(--contact-muted);

    font-size: 16px;

    line-height: 1.85;
}


/* =========================================================
   CONTACT DETAILS
   ========================================================= */

.contact-details {

    border-top: 1px solid var(--contact-border);
}


.contact-detail {

    display: grid;

    grid-template-columns: 52px 1fr;

    gap: 18px;

    padding: 24px 0;

    border-bottom: 1px solid var(--contact-border);
}


.contact-detail-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--contact-teal);

    background: rgba(21, 158, 186, 0.08);

    border: 1px solid rgba(21, 158, 186, 0.14);

    border-radius: 50%;

    font-size: 15px;

    font-weight: 700;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.contact-detail:hover .contact-detail-icon {

    background: var(--contact-teal);

    color: var(--contact-white);

    transform: translateY(-2px);
}


.contact-detail-label {

    margin-bottom: 6px;

    color: var(--contact-muted);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.contact-detail-value {

    margin: 0;

    color: var(--contact-navy);

    font-size: 14px;

    line-height: 1.7;
}


.contact-detail-value a {

    color: var(--contact-navy);

    text-decoration: none;

    transition: color 0.25s ease;
}


.contact-detail-value a:hover {

    color: var(--contact-teal);
}


/* =========================================================
   DIRECT CONTACT MESSAGE
   ========================================================= */

.contact-direct {

    margin-top: 30px;

    padding: 23px;

    background: var(--contact-white);

    border: 1px solid var(--contact-border);

    border-radius: 12px;
}


.contact-direct-title {

    margin-bottom: 8px;

    color: var(--contact-navy);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.contact-direct-text {

    margin: 0;

    color: var(--contact-muted);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.contact-form-card {

    padding: 45px;

    background: var(--contact-white);

    border: 1px solid var(--contact-border);

    border-radius: 18px;

    box-shadow:
        0 25px 65px rgba(3, 43, 60, 0.08);
}


.contact-form-heading {

    margin-bottom: 32px;
}


.contact-form-heading h2 {

    margin: 0 0 10px;

    color: var(--contact-navy);

    font-size: 30px;

    letter-spacing: -0.025em;
}


.contact-form-heading p {

    margin: 0;

    color: var(--contact-muted);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   FORM
   ========================================================= */

.contact-form {

    display: grid;

    gap: 20px;
}


.contact-form-row {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}


.contact-field {

    display: flex;

    flex-direction: column;
}


.contact-field label {

    margin-bottom: 8px;

    color: var(--contact-navy);

    font-size: 12px;

    font-weight: 700;
}


.contact-field label span {

    color: var(--contact-teal);
}


.contact-field input,
.contact-field textarea,
.contact-field select {

    width: 100%;

    padding: 14px 15px;

    color: var(--contact-text);

    background: var(--contact-white);

    border: 1px solid rgba(6, 59, 82, 0.16);

    border-radius: 7px;

    outline: none;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.contact-field input {

    height: 50px;
}


.contact-field textarea {

    min-height: 150px;

    resize: vertical;
}


.contact-field select {

    height: 50px;

    cursor: pointer;
}


.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {

    border-color: var(--contact-teal);

    box-shadow:
        0 0 0 3px rgba(21, 158, 186, 0.10);

    background: #fcfeff;
}


.contact-field input::placeholder,
.contact-field textarea::placeholder {

    color: #9aaeb6;
}


/* =========================================================
   PRIVACY CONSENT
   ========================================================= */

.contact-consent {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    padding-top: 4px;
}


.contact-consent input {

    width: 17px;
    height: 17px;

    margin-top: 2px;

    flex-shrink: 0;

    accent-color: var(--contact-teal);

    cursor: pointer;
}


.contact-consent label {

    color: var(--contact-muted);

    font-size: 11px;

    line-height: 1.65;

    cursor: pointer;
}


.contact-consent a {

    color: var(--contact-teal);

    font-weight: 700;

    text-decoration: underline;
}


.contact-consent a:hover {

    color: var(--contact-navy);
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.contact-submit {

    width: 100%;

    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    color: var(--contact-white);

    background: var(--contact-navy);

    border: 1px solid var(--contact-navy);

    border-radius: 7px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.contact-submit:hover {

    background: var(--contact-teal);

    border-color: var(--contact-teal);

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(21, 158, 186, 0.20);
}


.contact-submit-arrow {

    font-size: 18px;

    transition: transform 0.25s ease;
}


.contact-submit:hover .contact-submit-arrow {

    transform: translateX(4px);
}


.contact-submit:disabled {

    opacity: 0.7;

    cursor: wait;

    transform: none;
}


.contact-honeypot {

    position: absolute;

    left: -10000px;

    width: 1px;

    height: 1px;

    overflow: hidden;
}


/* =========================================================
   FORM MESSAGES
   ========================================================= */

.contact-message {

    display: none;

    padding: 13px 15px;

    border-radius: 7px;

    font-size: 12px;

    line-height: 1.6;
}


.contact-message.success {

    display: block;

    color: #176b45;

    background: #edf9f3;

    border: 1px solid #bde8d0;
}


.contact-message.error {

    display: block;

    color: #8b3a27;

    background: #fff3ef;

    border: 1px solid #f1c5b8;
}


/* =========================================================
   LOCATION
   ========================================================= */

.contact-location {

    padding: 0 0 110px;

    background: var(--contact-bg);
}


.contact-location-card {

    display: grid;

    grid-template-columns: 1fr 1fr;

    min-height: 350px;

    overflow: hidden;

    background: var(--contact-navy);

    border-radius: 18px;
}


.contact-location-info {

    padding: 55px;

    color: var(--contact-white);
}


.contact-location-label {

    margin-bottom: 18px;

    color: var(--contact-blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.contact-location-info h2 {

    max-width: 520px;

    margin: 0 0 20px;

    color: var(--contact-white);

    font-size: clamp(32px, 4vw, 44px);

    line-height: 1.1;

    letter-spacing: -0.035em;
}


.contact-location-info p {

    max-width: 470px;

    margin: 0;

    color: rgba(255, 255, 255, 0.67);

    font-size: 14px;

    line-height: 1.8;
}


.contact-location-address {

    margin-top: 28px !important;

    color: rgba(255, 255, 255, 0.88) !important;

    font-weight: 600;
}


.contact-map {

    min-height: 350px;

    background: #dcebef;
}


.contact-map iframe {

    width: 100%;

    height: 100%;

    min-height: 350px;

    display: block;

    border: 0;
}


/* =========================================================
   BOTTOM CTA
   ========================================================= */

.contact-bottom {

    padding: 90px 0;

    background: var(--contact-white);
}


.contact-bottom-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 52px 55px;

    background: var(--contact-bg);

    border: 1px solid var(--contact-border);

    border-radius: 18px;
}


.contact-bottom-label {

    margin-bottom: 10px;

    color: var(--contact-teal);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.contact-bottom h2 {

    max-width: 700px;

    margin: 0;

    color: var(--contact-navy);

    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.1;

    letter-spacing: -0.04em;
}


.contact-bottom h2 span {

    color: var(--contact-teal);
}


.contact-button {

    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding: 16px 23px;

    color: var(--contact-white);

    background: var(--contact-navy);

    border-radius: 7px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.contact-button:hover {

    color: var(--contact-white);

    background: var(--contact-teal);

    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(21, 158, 186, 0.20);
}


.contact-button span {

    font-size: 18px;

    transition: transform 0.25s ease;
}


.contact-button:hover span {

    transform: translateX(4px);
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

.contact-reveal {

    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.22, 1, .36, 1);
}


.contact-reveal.is-visible {

    opacity: 1;

    transform: translateY(0);
}


.contact-reveal-left {

    opacity: 0;

    transform: translateX(-35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.22, 1, .36, 1);
}


.contact-reveal-left.is-visible {

    opacity: 1;

    transform: translateX(0);
}


.contact-reveal-right {

    opacity: 0;

    transform: translateX(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.22, 1, .36, 1);
}


.contact-reveal-right.is-visible {

    opacity: 1;

    transform: translateX(0);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .contact-hero {

        min-height: 500px;
    }


    .contact-grid {

        grid-template-columns: 1fr;

        gap: 55px;
    }


    .contact-location-card {

        grid-template-columns: 1fr;
    }


    .contact-map {

        min-height: 320px;
    }


    .contact-map iframe {

        min-height: 320px;
    }


    .contact-bottom-inner {

        align-items: flex-start;
    }
}


@media (max-width: 767px) {

    .contact-hero-container,
    .contact-container {

        width: min(100% - 32px, 1200px);
    }


    .contact-hero {

        min-height: 480px;
    }


    .contact-hero-container {

        padding: 80px 0 70px;
    }


    .contact-hero h1 {

        font-size: 46px;
    }


    .contact-hero-description {

        font-size: 16px;
    }


    .contact-main {

        padding: 75px 0;
    }


    .contact-form-card {

        padding: 30px 22px;

        border-radius: 14px;
    }


    .contact-form-row {

        grid-template-columns: 1fr;
    }


    .contact-detail {

        grid-template-columns: 45px 1fr;

        gap: 14px;
    }


    .contact-location {

        padding-bottom: 75px;
    }


    .contact-location-info {

        padding: 40px 28px;
    }


    .contact-location-info h2 {

        font-size: 32px;
    }


    .contact-map {

        min-height: 280px;
    }


    .contact-map iframe {

        min-height: 280px;
    }


    .contact-bottom {

        padding: 60px 0;
    }


    .contact-bottom-inner {

        padding: 35px 28px;

        flex-direction: column;

        align-items: flex-start;

        border-radius: 14px;
    }


    .contact-button {

        width: 100%;

        justify-content: center;
    }
}


@media (prefers-reduced-motion: reduce) {

    .contact-reveal,
    .contact-reveal-left,
    .contact-reveal-right {

        opacity: 1;

        transform: none;

        transition: none;
    }


    .contact-detail-icon,
    .contact-submit,
    .contact-submit-arrow,
    .contact-button,
    .contact-button span {

        transition: none;
    }
}

