.hfp-contact-layout,
.hfp-contact-layout * { box-sizing: border-box; }

body.hfp-contact-page .hfp-breadcrumbs,
.hfp-contact-layout { background: #f8f8f8; }

.hfp-contact-layout.hfp-section { padding-block: 0; }

.hfp-contact-layout__main {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.6fr);
    gap: clamp(56px, 9vw, 170px);
    align-items: center;
    padding-block: 100px;
}

.hfp-contact-layout__branding,
.hfp-contact-layout__form-card { min-width: 0; align-self: center; }

body.hfp-contact-page .hfp-main .hfp-contact-layout__branding h2 {
    max-width: none;
    margin: 0 0 24px;
    color: var(--brand-green);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 68px !important;
    font-weight: 600;
    line-height: .94;
    white-space: nowrap;
}

.hfp-contact-layout__brand-message { max-width: 430px; margin: 0 0 16px; color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.45; }
.hfp-contact-layout__description { max-width: 470px; margin: 0; color: var(--gray-600); line-height: 1.7; }
.hfp-contact-layout__contact-list { display: grid; gap: 18px; margin-top: 38px; }
.hfp-contact-layout__contact-row { display: flex; align-items: center; gap: 15px; color: var(--gray-600); }
.hfp-contact-layout__contact-row:hover { color: var(--brand-green); }
.hfp-contact-layout__contact-icon { width: 25px; height: 25px; flex: 0 0 25px; fill: var(--brand-green); }
.hfp-contact-layout__contact-row span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.hfp-contact-layout__contact-row strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.hfp-contact-layout__follow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hfp-contact-layout__follow > strong { color: var(--ink); font-size: 20px; font-weight: 600; }
.hfp-contact-layout__socials { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.hfp-contact-layout__socials a { display: grid; width: 24px; height: 24px; place-items: center; color: var(--brand-green); }
.hfp-contact-layout__socials a:hover { color: var(--ink); }
.hfp-contact-layout__socials .xhl-icon { font-size: 18px; }

.hfp-contact-layout__form-card { padding: 0; }
.hfp-contact-layout__form-card .hfp-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.hfp-contact-layout__form-card .wpcf7-form p { margin: 0; }
.hfp-contact-layout__form-card .hfp-form__full { grid-column: 1 / -1; }
.hfp-contact-layout__form-card .wpcf7-form label { display: block; color: var(--ink); font-size: 15px; font-weight: 500; }
.hfp-contact-layout__form-card .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.hfp-contact-layout__form-card .wpcf7 input:not([type="submit"]),
.hfp-contact-layout__form-card .wpcf7 textarea,
.hfp-contact-layout__form-card .wpcf7 select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c7c7c7; border-radius: 5px; background: var(--white); color: var(--ink); font: inherit; }
.hfp-contact-layout__form-card .wpcf7 textarea { min-height: 142px; resize: vertical; }
.hfp-contact-layout__form-card .wpcf7 input:not([type="submit"]):focus,
.hfp-contact-layout__form-card .wpcf7 textarea:focus,
.hfp-contact-layout__form-card .wpcf7 select:focus { border-color: var(--brand-green); outline: 0; box-shadow: 0 0 0 2px rgba(3, 67, 49, .12); }
.hfp-contact-layout__required { color: #d82d2d; }
.hfp-contact-layout__form-card .hfp-contact-layout__submit { margin-top: 28px; }
.hfp-contact-layout__form-card .wpcf7 input[type="submit"] { width: 100%; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 5px; background: var(--brand-green); color: var(--white); cursor: pointer; font: inherit; font-weight: 600; }
.hfp-contact-layout__form-card .wpcf7 input[type="submit"]:hover { background: var(--ink); }
.hfp-contact-layout__form-card .wpcf7-not-valid-tip,
.hfp-contact-layout__form-card .wpcf7-response-output { font-size: 14px; }

.hfp-contact-layout__map { height: 600px; overflow: hidden; background: var(--gray-100); line-height: 0; }
.hfp-contact-layout__map iframe { display: block; width: 100%; height: 600px; min-height: 600px; border: 0; }
.hfp-contact-layout__map-empty { min-height: 120px; margin: 0 auto; padding: 32px; text-align: center; }

@media (max-width: 1024px) {
    .hfp-contact-layout__main { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.3fr); gap: 48px; }
    body.hfp-contact-page .hfp-main .hfp-contact-layout__branding h2 { font-size: 48px !important; }
    .hfp-contact-layout__contact-row strong { font-size: 16px; }
    body.hfp-reference-site .hfp-contact-layout__map,
    body.hfp-reference-site .hfp-contact-layout__map iframe { height: 450px; min-height: 450px; }
}

@media (max-width: 768px) {
    body.hfp-contact-page .hfp-main .hfp-contact-layout.hfp-section { padding-block: 0 !important; }
    .hfp-contact-layout__main { grid-template-columns: 1fr; gap: 46px; padding-block: 68px; }
    body.hfp-contact-page .hfp-main .hfp-contact-layout__branding h2 { font-size: 42px !important; }
    .hfp-contact-layout__contact-row { font-size: 12px; }
    .hfp-contact-layout__form-card { margin: 0; padding: 0; }
    .hfp-contact-layout__form-card .hfp-form__grid { grid-template-columns: 1fr; gap: 18px; }
    .hfp-contact-layout__form-card .wpcf7-form label { font-size: 14px; }
    .hfp-contact-layout__form-card .wpcf7 input:not([type="submit"]),
    .hfp-contact-layout__form-card .wpcf7 select { height: 40px; min-height: 40px; padding-block: 8px; }
    .hfp-contact-layout__form-card .wpcf7 input[type="submit"] { font-size: 14px; }
    body.hfp-reference-site .hfp-contact-layout__map { height: 340px; min-height: 0; }
    body.hfp-reference-site .hfp-contact-layout__map iframe { height: 600px; min-height: 600px; }
}
