/* =====================================================
   BIODEBLOOM CONTACT PAGE
===================================================== */

.bd-contact-page {
    --green: #10382a;
    --green-2: #1c5b46;
    --mint: #b9dfcd;
    --cream: #f5f6f1;
    --ink: #0c1110;
    --muted: #68736e;
    --line: rgba(16,56,42,.14);

    width: 100%;
    overflow: hidden;

    color: var(--ink);
    background: #fff;
}

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

.bd-contact-container {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

.bd-contact-kicker {
    color: var(--green-2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}


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

.bd-contact-hero {
    position: relative;

    min-height: 650px;

    display: flex;
    align-items: center;

    isolation: isolate;
    overflow: hidden;

    background: #173528;

    margin-top: 30px;
}

.bd-contact-hero-image {
    position: absolute;
    inset: 0;
    z-index: -3;

    background-image: url("../assets/images/contact-hero.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bd-contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(8,29,20,.82) 0%,
            rgba(8,29,20,.48) 50%,
            rgba(8,29,20,.18) 100%
        );
}

.bd-contact-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;

    padding-top: 70px;
}

.bd-contact-hero-copy {
    max-width: 700px;
}

.bd-contact-eyebrow {
    display: inline-flex;

    padding: 8px 13px;

    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;

    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.07);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
}

.bd-contact-hero h1 {
    margin: 25px 0 20px;

    color: #fff;

    font-family: "Playfair Display", serif;
    font-size: clamp(54px, 7vw, 88px);
    font-weight: 600;
    line-height: .94;
    letter-spacing: -.055em;
}

.bd-contact-hero h1 span {
    color: var(--mint);
}

.bd-contact-hero-copy > p {
    max-width: 490px;

    margin: 0;

    color: rgba(255,255,255,.73);

    font-size: 15px;
    line-height: 1.75;
}

.bd-contact-hero-mark {
    align-self: flex-end;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 13px;

    padding-bottom: 65px;

    color: rgba(255,255,255,.55);

    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.bd-contact-hero-mark i {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;

    color: #fff;
}

.bd-contact-hero-bottom {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 23px;

    display: flex;
    justify-content: space-between;

    color: rgba(255,255,255,.5);

    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
}


/* =====================================================
   INQUIRY
===================================================== */

.bd-contact-inquiry {
    padding: 120px 0;

    background: var(--cream);
}

.bd-contact-section-head {
    display: grid;
    grid-template-columns: 1fr .7fr;

    align-items: end;

    gap: 80px;

    margin-bottom: 55px;
}

.bd-contact-section-head h2 {
    max-width: 720px;

    margin: 14px 0 0;

    font-family: "Playfair Display", serif;
    font-size: clamp(43px, 5vw, 67px);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.045em;
}

.bd-contact-section-head h2 span {
    color: var(--green-2);
}

.bd-contact-section-head > p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.8;
}


/* =====================================================
   FORM + MAP
===================================================== */

.bd-contact-inquiry-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;

    gap: 18px;
}


/* FORM */

.bd-contact-form-card {
    padding: 34px;

    border: 1px solid var(--line);
    border-radius: 22px;

    background: #fff;

    box-shadow: 0 18px 55px rgba(16,56,42,.06);
}

.bd-contact-form-top {
    display: flex;
    justify-content: space-between;

    padding-bottom: 20px;
    margin-bottom: 30px;

    border-bottom: 1px solid var(--line);

    color: var(--green-2);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.bd-contact-form {
    display: flex;
    flex-direction: column;

    gap: 25px;
}

.bd-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.bd-contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bd-contact-field label {
    color: #69736e;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bd-contact-field input,
.bd-contact-field textarea {
    width: 100%;

    border: 0;
    border-bottom: 1px solid #cbd3cd;

    border-radius: 0;

    padding: 10px 0;

    outline: none;

    color: var(--ink);
    background: transparent;

    font-family: inherit;
    font-size: 14px;

    transition: border-color .25s ease;
}

.bd-contact-field textarea {
    min-height: 105px;
    resize: vertical;
}

.bd-contact-field input::placeholder,
.bd-contact-field textarea::placeholder {
    color: #a2aaa5;
}

.bd-contact-field input:focus,
.bd-contact-field textarea:focus {
    border-color: var(--green-2);
}

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

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 5px;
    padding: 15px 20px;

    border: 0;
    border-radius: 999px;

    color: #fff;
    background: var(--green);

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: .3s ease;
}

.bd-contact-submit:hover {
    background: var(--green-2);
    transform: translateY(-2px);
}

.bd-contact-submit i {
    transition: .3s ease;
}

.bd-contact-submit:hover i {
    transform: translateX(4px);
}


/* MAP */

.bd-contact-map-card {
    position: relative;

    min-height: 600px;

    overflow: hidden;

    border-radius: 22px;

    background: #dfe5df;
}

.bd-contact-map-head {
    position: absolute;

    top: 20px;
    left: 20px;
    right: 20px;

    z-index: 2;

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

    padding: 15px 17px;

    border-radius: 14px;

    color: var(--green);

    background: rgba(255,255,255,.93);

    backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.bd-contact-map-head div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bd-contact-map-head span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
}

.bd-contact-map-head strong {
    font-size: 11px;
    letter-spacing: .12em;
}

.bd-contact-map-head > i {
    color: var(--green-2);
}

.bd-contact-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.bd-contact-map iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* =====================================================
   DETAILS
===================================================== */

.bd-contact-details {
    padding: 95px 0;

    color: #fff;
    background: var(--green);
}

.bd-contact-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 0;
}

.bd-contact-detail {
    min-height: 210px;

    padding: 10px 35px;

    border-right: 1px solid rgba(255,255,255,.15);
}

.bd-contact-detail:first-child {
    padding-left: 0;
}

.bd-contact-detail:last-child {
    border-right: 0;
}

.bd-contact-detail-label {
    display: block;

    margin-bottom: 25px;

    color: rgba(255,255,255,.55);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
}

.bd-contact-detail > i {
    display: block;

    margin-bottom: 20px;

    color: var(--mint);

    font-size: 17px;
}

.bd-contact-detail h3 {
    margin: 0;

    font-size: 18px;
    line-height: 1.35;
}

.bd-contact-detail h3 span {
    display: block;

    margin-top: 3px;

    color: rgba(255,255,255,.58);

    font-size: 12px;
    font-weight: 400;
}

.bd-contact-detail a {
    color: #fff;

    transition: color .25s ease;
}

.bd-contact-detail a:hover {
    color: var(--mint);
}


/* =====================================================
   NOTE
===================================================== */

.bd-contact-note {
    padding: 80px 0;

    background: #fff;
}

.bd-contact-note-inner {
    max-width: 920px;

    margin: 0 auto;

    text-align: center;
}

.bd-contact-note-inner p {
    margin: 20px 0;

    color: #626d68;

    font-size: 14px;
    line-height: 1.8;
}

.bd-contact-note-inner strong {
    display: block;

    color: var(--green);

    font-size: 12px;
    line-height: 1.7;
}


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

.bd-contact-cta {
    padding: 115px 0;

    text-align: center;

    color: #fff;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(108,174,141,.18),
            transparent 28%
        ),
        #0a261b;
}

.bd-contact-cta .bd-contact-kicker {
    color: var(--mint);
}

.bd-contact-cta h2 {
    max-width: 800px;

    margin: 17px auto 0;

    font-family: "Playfair Display", serif;
    font-size: clamp(46px, 6vw, 78px);
    line-height: .96;
    letter-spacing: -.05em;
}

.bd-contact-cta h2 span {
    color: var(--mint);
}

.bd-contact-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 30px;
    padding: 14px 21px;

    border-radius: 999px;

    color: var(--green);
    background: #fff;

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

    transition: .3s ease;
}

.bd-contact-cta-btn:hover {
    transform: translateY(-3px);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .bd-contact-container {
        width: calc(100% - 44px);
    }

    .bd-contact-section-head {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .bd-contact-inquiry-grid {
        grid-template-columns: 1fr;
    }

    .bd-contact-map-card,
    .bd-contact-map {
        min-height: 450px;
    }

    .bd-contact-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 0;
    }

    .bd-contact-detail:nth-child(2) {
        border-right: 0;
    }

    .bd-contact-detail:nth-child(3) {
        padding-left: 0;
    }
}


@media (max-width: 700px) {

    .bd-contact-container {
        width: calc(100% - 32px);
    }

    .bd-contact-hero {
        min-height: 630px;
    }

    .bd-contact-hero h1 {
        font-size: 48px;
    }

    .bd-contact-hero-mark {
        display: none;
    }

    .bd-contact-hero-bottom {
        width: calc(100% - 32px);
    }

    .bd-contact-inquiry {
        padding: 85px 0;
    }

    .bd-contact-form-row {
        grid-template-columns: 1fr;
    }

    .bd-contact-form-card {
        padding: 25px;
    }

    .bd-contact-details {
        padding: 70px 0;
    }

    .bd-contact-details-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bd-contact-detail,
    .bd-contact-detail:first-child,
    .bd-contact-detail:nth-child(3) {
        min-height: auto;

        padding: 25px 0;

        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .bd-contact-detail:last-child {
        border-bottom: 0;
    }

    .bd-contact-note {
        padding: 65px 0;
    }

    .bd-contact-cta {
        padding: 85px 0;
    }
}


@media (max-width: 480px) {

    .bd-contact-hero h1 {
        font-size: 43px;
    }

    .bd-contact-section-head h2 {
        font-size: 42px;
    }

    .bd-contact-cta h2 {
        font-size: 44px;
    }
}


/* =====================================================
   CONTACT DETAILS — MOBILE 2 x 2 GRID
   ===================================================== */

@media (max-width: 700px) {

    .bd-contact-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 0;
        row-gap: 0;
    }

    .bd-contact-detail,
    .bd-contact-detail:first-child,
    .bd-contact-detail:nth-child(3),
    .bd-contact-detail:last-child {
        min-height: 180px;
        padding: 25px 18px;
        border-bottom: 1px solid rgba(255,255,255,.15);
        border-right: 1px solid rgba(255,255,255,.15);
    }

    /* Remove outer left padding from first column */
    .bd-contact-detail:nth-child(odd) {
        padding-left: 0;
    }

    /* Remove right border from second column */
    .bd-contact-detail:nth-child(even) {
        border-right: 0;
    }

    /* Bottom row has no bottom border */
    .bd-contact-detail:nth-child(3),
    .bd-contact-detail:nth-child(4) {
        border-bottom: 0;
    }

    .bd-contact-detail-label {
        margin-bottom: 18px;
        font-size: 8px;
    }

    .bd-contact-detail > i {
        margin-bottom: 14px;
        font-size: 15px;
    }

    .bd-contact-detail h3 {
        font-size: 15px;
        line-height: 1.35;
    }

    .bd-contact-detail h3 span {
        font-size: 10px;
    }

    .bd-contact-detail a {
        font-size: 13px;
        word-break: break-word;
    }
}


/* =====================================================
   SMALL PHONES
   ===================================================== */

@media (max-width: 380px) {

    .bd-contact-detail,
    .bd-contact-detail:first-child,
    .bd-contact-detail:nth-child(3),
    .bd-contact-detail:last-child {
        min-height: 165px;
        padding: 22px 13px;
    }

    .bd-contact-detail:nth-child(odd) {
        padding-left: 0;
    }

    .bd-contact-detail-label {
        font-size: 7px;
        letter-spacing: .16em;
    }

    .bd-contact-detail h3 {
        font-size: 13px;
    }

    .bd-contact-detail h3 span {
        font-size: 9px;
    }

    .bd-contact-detail a {
        font-size: 11px;
    }

}


/* Contact form submission messages */
.bd-contact-form-message {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.bd-contact-form-success {
    border: 1px solid #cce4d3;
    background: #e8f4ec;
    color: #235c38;
}

.bd-contact-form-error {
    border: 1px solid #f0cccc;
    background: #fcecec;
    color: #9b3030;
}


/* =====================================================
   CONTACT HERO — EDITORIAL STYLE MATCHING THE BLOGS PAGE
   Overrides only the hero; the enquiry form and all other
   Contact page sections keep their existing styling.
===================================================== */

.bd-contact-page .bd-contact-hero {
    min-height: 374px;
    display: flex;
    align-items: center;
    padding: 62px 0 50px;
    background:
        radial-gradient(circle at 5% 100%, rgba(192, 225, 213, .46) 0 115px, transparent 116px),
        radial-gradient(circle at 96% 20%, rgba(255, 255, 255, .9) 0 120px, transparent 121px),
        radial-gradient(circle at 50% -80%, rgba(213, 229, 221, .72) 0 280px, transparent 282px),
        linear-gradient(115deg, #eaf2ee 0%, #f5f6f1 55%, #f8f7f2 100%);
    color: #0c1110;
}

.bd-contact-page .bd-contact-hero::before,
.bd-contact-page .bd-contact-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(24, 82, 66, .09);
    border-radius: 50%;
}

.bd-contact-page .bd-contact-hero::before {
    width: 178px;
    height: 178px;
    top: 18px;
    left: 16%;
}

.bd-contact-page .bd-contact-hero::after {
    width: 92px;
    height: 92px;
    right: 18%;
    bottom: 70px;
}

.bd-contact-page .bd-contact-hero-overlay {
    display: none;
}

.bd-contact-page .bd-contact-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 64px));
    display: block;
    padding-top: 0;
    text-align: center;
}

.bd-contact-page .bd-contact-hero-copy {
    max-width: 100%;
    margin: 0 auto;
}

.bd-contact-page .bd-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #164d43;
    background: transparent;
    font-size: 9px;
    letter-spacing: .28em;
}

.bd-contact-page .bd-contact-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    display: inline-block;
    background: #e9a33e;
}

.bd-contact-page .bd-contact-hero h1 {
    max-width: 1050px;
    margin: 18px auto 20px;
    color: #0c1110;
    font-family: "Manrope", "Arial", sans-serif;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 800;
    line-height: .99;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.bd-contact-page .bd-contact-hero h1 span {
    display: block;
    margin-top: 4px;
    color: #18564f;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.02em;
    font-weight: 500;
    font-style: italic;
    letter-spacing: -.045em;
}

.bd-contact-page .bd-contact-hero-copy > p {
    max-width: 680px;
    margin: 0 auto;
    color: #52645d;
    font-size: 14px;
    line-height: 1.8;
}

.bd-contact-page .bd-contact-hero-mark {
    display: none;
}

.bd-contact-page .bd-contact-hero-bottom {
    bottom: 0;
    width: 100%;
    min-height: 42px;
    padding: 0 max(32px, calc((100% - 1180px) / 2));
    border-top: 1px solid rgba(16, 56, 42, .08);
    display: flex;
    align-items: center;
    color: #65756e;
    font-size: 8px;
    letter-spacing: .2em;
}

@media (max-width: 700px) {
    .bd-contact-page .bd-contact-hero {
        min-height: 345px;
        padding: 55px 0 55px;
    }

    .bd-contact-page .bd-contact-hero-inner {
        width: calc(100% - 32px);
    }

    .bd-contact-page .bd-contact-hero h1 {
        margin: 17px auto 16px;
        font-size: clamp(39px, 9vw, 52px);
        line-height: 1.02;
        letter-spacing: -.055em;
    }

    .bd-contact-page .bd-contact-hero h1 span {
        margin-top: 5px;
        font-size: 1em;
    }

    .bd-contact-page .bd-contact-hero-copy > p {
        max-width: 430px;
        font-size: 13px;
        line-height: 1.7;
    }

    .bd-contact-page .bd-contact-hero-bottom {
        width: 100%;
        min-height: 36px;
        padding: 0 16px;
        font-size: 7px;
        letter-spacing: .13em;
    }

    .bd-contact-page .bd-contact-hero::before {
        width: 105px;
        height: 105px;
        left: -24px;
        top: 24px;
    }

    .bd-contact-page .bd-contact-hero::after {
        width: 62px;
        height: 62px;
        right: 5%;
        bottom: 55px;
    }
}
