.contact-header-image {
    margin-top: 86px;
    width: 100%;
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
    overflow: hidden;
}

.contact-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-offices {
    background: #fff;
}

.contact-offices__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.contact-offices__map {
    width: 100%;
    aspect-ratio: 9 / 5;
}

.contact-offices__details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    background: #fff;
}

.contact-offices__details-inner {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
}

.contact-offices__details h2,
.contact-offices__details h3 {
    margin: 0;
    font-family: "brother-1816", sans-serif;
    font-weight: 700;
    color: #007161;
    text-transform: uppercase;
}

.contact-offices__details h2 {
    font-size: 38px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.contact-offices__details h3 {
    font-size: 22px;
    line-height: 1.1;
    margin-bottom: 14px;
    color: #111;
}

.contact-offices__details address {
    margin: 0 0 18px;
    font-style: normal;
    font-family: "brother-1816", sans-serif;
    color: #4c4c4c;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
}

.contact-offices__contact-item {
    margin: 0 0 8px;
    position: relative;
    font-family: "brother-1816", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    color: #4c4c4c;
}

.contact-offices__contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-offices__contact-item a:hover,
.contact-offices__contact-item a:focus {
    color: #007161;
    text-decoration: none;
}

.contact-offices__icon {
    width: 20px;
    position: absolute;
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #007161;
    font-size: 20px;
    line-height: 1;
}

.contact-offices__icon-image {
    width: 20px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.contact-message {
    background: #007161;
    padding: 78px 0;
}

.contact-message__inner {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.contact-message__heading {
    margin: 0;
    font-family: "brother-1816", sans-serif;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.06;
    color: #fff;
}

.contact-message__text {
    margin-top: 24px;
    color: #fff;
    opacity: .92;
    font-family: "brother-1816", sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1.28;
}

.contact-message__text p:last-child {
    margin-bottom: 0;
}

.contact-message__content {
    width: min(100%, 600px);
    max-width: 600px;
    padding: 0;
    margin: 0 auto;
    justify-self: center;
    align-self: center;
    text-align: left;
}

.contact-message__form-wrap {
    width: 100%;
    max-width: 760px;
    justify-self: start;
    padding-left: 60px;
    box-sizing: border-box;
}

.contact-message__form {
    margin: 0;
}

.contact-message__field-row {
    margin: 0 0 12px;
}

.contact-message__input,
.contact-message__textarea {
    width: 100%;
    max-width: 700px;
    border: 0;
    border-radius: 0;
    background: #ececec;
    color: #4c4c4c;
    font-family: "brother-1816", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    outline: none;
    box-sizing: border-box;
}

.contact-message__input {
    height: 50px;
    padding: 0 14px;
}

.contact-message__textarea {
    min-height: 230px;
    padding: 14px;
    resize: vertical;
}

.contact-message__input::placeholder,
.contact-message__textarea::placeholder {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #777;
    opacity: 1;
}

.contact-message__submit {
    margin-top: 6px;
    border: 0;
    background: var(--jr-gold, #9e7e37);
    color: #fff;
    min-height: 52px;
    min-width: 130px;
    padding: 0 24px;
    font-family: "brother-1816", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: transform 0.25s ease;
}

.contact-message__submit:hover,
.contact-message__submit:focus {
    transform: translateY(-2px);
}

.contact-message__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-message__errors {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .12);
    border-left: 4px solid var(--jr-gold, #9e7e37);
    color: #fff;
    font-family: "brother-1816", sans-serif;
    font-size: 16px;
}

.contact-message__errors p {
    margin: 0 0 6px;
    font-weight: 700;
}

.contact-message__errors ul {
    margin: 0;
    padding-left: 20px;
}

.contact-message__success {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .12);
    border-left: 4px solid var(--jr-gold, #9e7e37);
    color: #fff;
    font-family: "brother-1816", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.contact-message .is-validation-error {
    outline: 2px solid var(--jr-gold, #9e7e37);
    outline-offset: 1px;
}

@media (max-width: 1024px) {
    .contact-header-image {
        margin-top: 90px;
        height: 40vh;
        min-height: 220px;
    }

    .contact-offices__details {
        padding: 34px 26px;
    }

    .contact-offices__details h2 {
        font-size: 30px;
    }

    .contact-offices__details--head-office h2 {
        font-size: 30px !important;
    }

    .contact-offices__details h3 {
        font-size: 18px;
    }

    .contact-message {
        padding: 54px 0;
    }

    .contact-message__inner {
        width: 100%;
        padding: 0 40px;
        box-sizing: border-box;
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
    }

    .contact-message__content {
        width: 100%;
        max-width: 630px;
        margin: 0 auto;
        justify-self: center;
    }

    .contact-message__form-wrap {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        justify-self: center;
        padding: 0;
        box-sizing: border-box;
    }

    .contact-message__heading {
        font-size: 35px;
    }

    .contact-message__text {
        font-size: 20px;
    }

}

@media (max-width: 1199px) {
    .contact-offices__details--head-office h2 {
        font-size: 30px !important;
    }

    .contact-offices__grid {
        align-items: stretch;
    }

    .contact-offices__map {
        aspect-ratio: unset;
        height: auto;
        align-self: stretch;
    }
}

@media (max-width: 799px) {
    .contact-offices__grid {
        grid-template-columns: 1fr;
    }

    .contact-offices__details {
        padding: 34px 26px 34px 72px;
    }

    #contact-map-south {
        order: 1;
    }

    .contact-offices__details--head-office {
        order: 2;
    }

    #contact-map-north {
        order: 3;
    }

    .contact-offices__details--north-office {
        order: 4;
    }

    .contact-offices__map {
        aspect-ratio: 9 / 5;
    }

    .contact-message__heading {
        font-size: 35px;
    }

    .contact-message__text {
        font-size: 20px;
    }

    .contact-message__input,
    .contact-message__textarea {
        font-size: 16px;
    }
}

@media (min-width: 450px) and (max-width: 799px) {
    .contact-offices__details {
        padding-left: 100px;
    }
}

@media (min-width: 800px) and (max-width: 1024px) {
    .contact-offices__grid {
        align-items: stretch;
    }

    .contact-offices__details {
        padding-left: 100px !important;
    }

    .contact-offices__map {
        aspect-ratio: unset;
        height: auto;
        align-self: stretch;
    }
}

@media (max-width: 449px) {
    .contact-offices__details {
        padding-left: 100px;
    }
}
