﻿/* ============================================================
   CONTACT US  —  contact-us.css
   Matches screenshot: hero image top-half, form card spans hero
   bottom-right into the white body section below.
   ============================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.contact-hero {
    position: relative;
    width: 100%;
    /* Height of the image strip — matches the screenshot (~45 vh) */
    height: 650px;
    overflow: hidden;
    /* No overflow:visible here — the form lives in the body section */
}

.contact-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.contact-hero__overlay {
    position: absolute;
    inset: 0;
    /* Darker on the left where text sits, lighter on the right */
    background: linear-gradient( to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.30) 50%, rgba(0, 0, 0, 0.08) 100% );
}

/* Hero text — left-aligned, vertically centred in the image */
.contact-hero__text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 0 0 60px;
    max-width: 52%;
}

    .contact-hero__text h1 {
        font-size: 2.4rem;
        font-weight: 400;
        color: #ffffff;
        margin: 0 0 14px 0;
        line-height: 1.15;
        letter-spacing: -0.3px;
    }

    .contact-hero__text p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.95);
        line-height: 1.75;
        margin: 0;
    }

/* ── BODY (white section) ───────────────────────────────────── */
.contact-body {
    background: #ffffff;
    /* Extra top padding on left so heading starts well below the fold */
    padding: 0 0 56px 0;
}

.contact-body__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

/* LEFT column */
.contact-left {
    flex: 1 1 0;
    padding-top: 44px; /* breathing room from the top of the white body */
}

/* RIGHT column — this is what carries the form card */
.contact-right {
    flex: 0 0 360px;
    position: relative;
}

/* ── FLOATING FORM CARD ─────────────────────────────────────── */
/*
   The card needs to appear as if it "starts" inside the hero image
   (roughly at the bottom-right of the photo) and extends downward
   into the white body section.

   Technique: pull the card UP by the hero height using a negative
   margin-top on .contact-right, then the card itself starts from there.
*/
.contact-right {
    margin-top: -220px; /* lift the whole right column up into the hero */
}

.contact-float-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 28px 28px;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.13);
    position: relative;
    z-index: 10;
    margin-top:20%;
    /* Small triangle pointer at the top-left corner (as seen in screenshot) */
}

    /* The small triangle / notch visible at top-left of card in the screenshot */
    .contact-float-form::before {
        content: '';
        position: absolute;
        top: -16px;
        left: 24px;
        border-left: 16px solid transparent;
        
        filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.07));
    }

.cff__title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 8px 0;
}

.cff__sub {
    font-size: 0.78rem;
    color: #000000c4;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.cff__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cff__input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    font-size: 0.83rem;
    color: #374151;
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

    .cff__input:focus {
        border-bottom-color: #0d9488;
    }

    .cff__input::placeholder {
        color: #9ca3af;
        font-size: 0.82rem;
    }

.cff__textarea {
    resize: vertical;
    min-height: 80px;
}

.cff__btn {
    background: #0E756D;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 13px 0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    width: 100%;
    margin-top: 6px;
}

    .cff__btn:hover {
        background: #0E756D;
    }

/* ── LEFT CONTENT ───────────────────────────────────────────── */
.contact-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #757373;
    letter-spacing: 1.5px;
    text-transform: lowercase;
    display: block;
    margin-bottom: 14px;
}

.contact-heading {
    font-size: 2rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 18px 0;
}

.contact-para {
    font-size: 0.83rem;
    color: #6b7280;
    line-height: 1.75;
    max-width: 420px;
    margin: 0 0 36px 0;
}

/* Offices */
.contact-offices {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.contact-office {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 190px;
}

.office-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #111827;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}

.office-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.6;
}

    .office-row i {
        color: #0d9488;
        font-size: 0.8rem;
        margin-top: 3px;
        flex-shrink: 0;
    }

    .office-row a {
        color: #374151;
        text-decoration: none;
        transition: color 0.18s;
    }

        .office-row a:hover {
            color: #0d9488;
        }

/* ── MAP ────────────────────────────────────────────────────── */
.contact-map {
    width: 100%;
}

.contact-map__wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .contact-map__wrap iframe {
        display: block;
        width: 100%;
        height: 340px;
        border: 0;
    }

.map-place-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 240px;
    z-index: 5;
}

.map-place-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.map-place-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    padding-right: 8px;
}

.map-place-card__icons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.map-place-card__icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 0.7rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

    .map-place-card__icon-btn:hover {
        background: #0d9488;
        color: #fff;
    }

.map-place-card__address {
    font-size: 0.76rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.map-place-card__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.map-place-card__rating-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
}

.map-place-card__stars {
    color: #f59e0b;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.map-place-card__reviews {
    font-size: 0.7rem;
    color: #9ca3af;
}

.map-place-card__link {
    font-size: 0.76rem;
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
}

    .map-place-card__link:hover {
        text-decoration: underline;
    }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .contact-hero {
        height: 260px;
    }

    .contact-hero__text {
        padding-left: 28px;
        max-width: 65%;
    }

        .contact-hero__text h1 {
            font-size: 1.8rem;
        }

    .contact-body__inner {
        flex-direction: column;
        padding: 0 24px;
    }

    .contact-right {
        margin-top: 0;
        width: 100%;
        flex: 0 0 auto;
    }

    .contact-float-form::before {
        display: none;
    }

    .contact-left {
        padding-top: 32px;
    }

    .contact-heading {
        font-size: 1.6rem;
    }
}

@media (max-width: 560px) {
    .contact-hero {
        height: 220px;
    }

    .contact-hero__text {
        padding-left: 18px;
        max-width: 80%;
    }

        .contact-hero__text h1 {
            font-size: 1.5rem;
        }

    .contact-offices {
        flex-direction: column;
        gap: 24px;
    }

    .map-place-card {
        width: calc(100% - 32px);
        left: 16px;
        bottom: 12px;
    }
}
