/* Contact page */
.contact-hero {
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 0 0 var(--section-space);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 30%, rgba(0, 0, 0, 0.42) 100%),
        url("../images/contact-hero.webp") 35% center / cover no-repeat;
}

.contact-hero-content {
    display: block;
}

.contact-hero h1 {
    color: #fff;
    text-align: center;
}

.contact-connect {
    position: relative;
    overflow: hidden;
    padding: var(--section-space) 0;
    background: var(--primary);
}

.contact-leaf {
    position: absolute;
    z-index: 0;
    top: -20px;
    right: -90px;
    width: clamp(240px, 34vw, 520px);
    opacity: 0.13;
    pointer-events: none;
}

.contact-connect-inner {
    position: relative;
    z-index: 1;
}

.contact-intro {
    width: min(100%, 560px);
    margin: 0 auto 40px;
    text-align: center;
}

.contact-heading {
    width: min(100%, 560px);
    margin: 0 auto 30px;
    text-align: center;
}

.contact-heading p {
    margin-bottom: 0;
}

.contact-form {
    width: min(100%, 1040px);
    display: grid;
    gap: 18px;
    margin: 0 auto;
}

.contact-form .form-field {
    display: grid;
    gap: 4px;
}

.contact-form .form-field > span {
    font-size: var(--body-size);
    line-height: var(--body-line-height);
}

.contact-form .form-field input {
    width: 100%;
    min-width: 0;
    min-height: 15px;
    padding: 0;
    border: 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.16);
    border-radius: 0;
    background: transparent;
    color: #000;
    font: inherit;
    font-size: 16px;
    line-height: 26px;
    outline: none;
    box-shadow: none;
    appearance: none;
}

.contact-form .form-field input:focus {
    border-bottom-color: #000;
}

.contact-form .form-field.is-invalid input {
    border-bottom-color: #9b1c1c;
}

.contact-form .field-error {
    min-height: 18px;
    color: #9b1c1c;
    font-size: 14px;
    line-height: 24px;
}

.contact-form .enquiry-submit,
.contact-form .form-success {
    justify-self: center;
}

.contact-form .enquiry-submit {
    width: max-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    padding: 0 28px;
    background: #000;
    color: #fff;
    font-family: var(--body-font);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: var(--body-line-height);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.contact-form .enquiry-submit:hover,
.contact-form .enquiry-submit:focus-visible {
    background: transparent;
    color: #000;
}

.contact-newsletter {
    display: none;
    padding: var(--section-space) 0;
    background: #fff;
}

.contact-newsletter-inner {
    width: min(90%, 760px);
    margin: 0 auto;
}

.contact-newsletter header {
    text-align: center;
}

.contact-newsletter h3 {
    margin: 0 0 var(--text-gap);
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
}

.contact-newsletter header p {
    max-width: 580px;
    margin-right: auto;
    margin-left: auto;
}

.newsletter-form {
    width: min(100%, 560px);
    display: grid;
    margin: 30px auto 0;
}

.newsletter-form label {
    font-size: 16px;
    line-height: 26px;
}

.newsletter-form input {
    width: 100%;
    min-height: 30px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 0;
    background: transparent;
    font: inherit;
    font-size: 16px;
    line-height: 26px;
    outline: none;
}

.newsletter-form input:focus {
    border-bottom-color: #000;
}

.newsletter-form button {
    width: max-content;
    min-height: 38px;
    justify-self: center;
    margin-top: 30px;
    border: 1px solid #000;
    padding: 8px 24px;
    background: #000;
    color: #fff;
    font-size: 16px;
    line-height: 26px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    color: #000;
}

.contact-map-section {
    padding: var(--section-space) 0;
    background: #f8f8f8;
}

.contact-map-inner > header {
    margin-bottom: var(--text-gap);
    text-align: center;
}

.contact-map-inner > header p {
    margin-bottom: 0;
}

.contact-map-frame {
    width: 100%;
    height: clamp(320px, 55vw, 560px);
    overflow: hidden;
    background: #e8e5df;
}

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(0.9);
}

@media (max-width: 767px) {
    .contact-connect,
    .contact-map-section {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .contact-hero h1,
    .contact-intro,
    .contact-heading,
    .contact-newsletter header,
    .contact-map-inner > header {
        text-align: left;
    }

    .contact-hero h1 {
        font-size: 18px;
        line-height: 28px;
    }

    .contact-intro,
    .contact-heading {
        margin-left: 0;
    }

    .contact-intro {
        margin-bottom: var(--content-gap);
    }

    .contact-heading {
        margin-bottom: var(--content-gap);
    }

    .contact-form {
        gap: var(--content-gap);
    }

    .contact-form .enquiry-submit {
        width: max-content;
        min-height: 36px;
        padding: 6px 16px;
        font-size: 14px;
        line-height: 24px;
    }
}

@media (min-width: 768px) {
    .contact-hero {
        background-position: center;
    }

    .contact-hero h1 {
        font-size: 26px;
        line-height: 36px;
    }

    .contact-intro {
        margin-bottom: 50px;
    }

    .contact-heading {
        margin-bottom: 40px;
    }

    .contact-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 64px;
    }

    .contact-form .enquiry-submit,
    .contact-form .form-success {
        grid-column: 1 / -1;
    }

    .newsletter-form {
        margin-top: 40px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .contact-connect,
    .contact-map-section {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .contact-intro,
    .contact-heading {
        margin-bottom: 20px;
    }

    .contact-form .enquiry-submit {
        width: max-content;
        min-height: 38px;
        padding: 0 28px;
        font-size: 16px;
        line-height: 26px;
    }
}

@media (max-width: 1199px) {
    .contact-hero-break {
        display: none;
    }

    .contact-hero-content,
    .contact-connect-inner,
    .contact-map-inner {
        width: 95%;
        max-width: none;
        margin-right: auto;
        margin-left: auto;
    }

    .contact-hero h1,
    .contact-intro,
    .contact-heading,
    .contact-newsletter header,
    .contact-map-inner > header,
    .contact-heading :where(h2, p) {
        text-align: left;
    }

    .contact-intro,
    .contact-heading {
        margin-left: 0;
    }

    .contact-form .enquiry-submit {
        justify-self: start;
    }
}

@media (min-width: 1200px) {
    .contact-hero {
        min-height: 100vh;
        padding-bottom: 60px;
    }

    .contact-hero h1 {
        font-size: 36px;
        line-height: 46px;
    }

    .contact-connect {
        min-height: 680px;
        display: flex;
        align-items: center;
    }

    .contact-intro {
        margin-bottom: 60px;
    }

    .contact-heading {
        margin-bottom: 48px;
    }

    .contact-newsletter {
        min-height: auto;
        display: flex;
        align-items: center;
    }

    .contact-form {
        width: min(73vw, 1400px);
        max-width: none;
        column-gap: 88px;
        row-gap: 30px;
    }

    .contact-form .enquiry-submit {
        margin-top: 40px;
        font-size: 16px;
        line-height: 26px;
    }

    .contact-connect-inner,
    .contact-newsletter-inner,
    .contact-map-inner {
        width: 90%;
        max-width: none;
    }
}
