/* =========================================
   TARGET IT — CONTACT
   ========================================= */

.target-contact {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #2e2e2e;
    font-family: "Syne", Arial, Helvetica, sans-serif;
}

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

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

.target-contact-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 285px;
    padding: 65px 24px;
    background: #2e2e2e;
    color: #fff;
    text-align: center;
}

.target-contact-hero h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(34px, 3.5vw, 46px);
    font-weight: 600;
    line-height: 1.15;
}

.target-contact-hero p {
    max-width: 610px;
    margin: 27px 0 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

/* =========================================
   OFFICE LOCATIONS
   ========================================= */

.target-contact-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 380px;
    background: #fff;
}

.target-contact-locations__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    column-gap: 35px;
    row-gap: 65px;
    padding: 60px max(30px, calc((100vw - 1200px) / 2)) 60px 8%;
}

.target-contact-location {
    position: relative;
    min-width: 0;
    padding-left: 35px;
}

.target-contact-location::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 25px;
    height: 25px;
    border: 1px solid #d6d6d6;
    border-radius: 50%;
}

.target-contact-location::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #d6d6d6;
    border-radius: 50%;
}

.target-contact-location h2 {
    margin: 0 0 9px;
    color: #2e2e2e;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.target-contact-location address {
    margin: 0 0 12px;
    font-size: 13px;
    font-style: normal;
    line-height: 1.4;
}

.target-contact-location a {
    color: #2e2e2e;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.target-contact-location a:hover,
.target-contact-location a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.target-contact-location--email {
    grid-column: 1;
}

/* =========================================
   OFFICE PHOTOGRAPH
   ========================================= */

.target-contact-locations__visual {
    display: block;
    min-width: 0;
    min-height: 380px;
    overflow: hidden;
}

.target-contact-locations__visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
}

/* =========================================
   TABLET
   ========================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .target-contact-locations__details {
        padding: 45px 28px;
        column-gap: 15px;
    }

    .target-contact-location {
        padding-left: 30px;
    }

    .target-contact-location h2 {
        font-size: 16px;
    }

    .target-contact-location address,
    .target-contact-location a {
        font-size: 12px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .target-contact-hero {
        min-height: 295px;
        padding: 65px 22px;
    }

    .target-contact-hero h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .target-contact-hero p {
        max-width: 350px;
        margin-top: 33px;
        font-size: 16px;
        line-height: 1.25;
    }

    .target-contact-locations {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* Figma: photo appears before the contact details */

    .target-contact-locations__visual {
        order: -1;
        width: 100%;
        height: 220px;
        min-height: 0;
    }

    .target-contact-locations__visual img {
        width: 100%;
        height: 220px;
        min-height: 0;
        object-fit: cover;
    }

    .target-contact-locations__details {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 65px 24px 55px;
    }

    .target-contact-location {
        padding-left: 52px;
        margin-bottom: 65px;
    }

    .target-contact-location:last-child {
        margin-bottom: 0;
    }

    .target-contact-location::before {
        width: 39px;
        height: 39px;
    }

    .target-contact-location::after {
        top: 9px;
        left: 6px;
        width: 27px;
        height: 27px;
    }

    .target-contact-location h2 {
        margin-bottom: 13px;
        font-size: 21px;
        line-height: 1.2;
    }

    .target-contact-location address,
    .target-contact-location a {
        font-size: 16px;
        line-height: 1.35;
    }

    .target-contact-location address {
        margin-bottom: 13px;
    }
}

/* =========================================
   CONTACT FORM AND MAPS
   ========================================= */

.target-contact-form-section {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    min-height: 640px;
    width: 100%;
    background: #fff;
}

.target-contact-form-section__map {
    position: relative;
    overflow: hidden;
    background: #eee;
}

.target-contact-form-section__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 640px;
    border: 0;
    filter: grayscale(100%);
}

.target-contact-form-section__content {
    min-width: 0;
    padding: 80px 9% 70px;
    border-inline: 1px solid #2e2e2e;
}

.target-contact-form-section__content h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 43px);
    font-weight: 600;
    line-height: 1.15;
}

.target-contact-form-section__content>p {
    margin: 24px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .target-contact-form-section {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .target-contact-form-section__map {
        width: 100%;
        height: 300px;
        flex: none;
    }

    .target-contact-form-section__map iframe {
        height: 300px;
        min-height: 0;
    }

    .target-contact-form-section__content {
        padding: 65px 30px 75px;
        border: 0;
    }

    .target-contact-form-section__content h2 {
        font-size: 27px;
    }

    .target-contact-form-section__content>p {
        margin-top: 27px;
        font-size: 16px;
        line-height: 1.4;
    }
}

/* =========================================
   CONTACT FORM FIELDS
   ========================================= */

#target-contact-form-container {
    margin-top: 70px;
}

.target-contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.target-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.target-contact-form__field label {
    color: #2e2e2e;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.target-contact-form__field input,
.target-contact-form__field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 8px 0 10px;

    border: 0;
    border-bottom: 1px solid #777;
    border-radius: 0;

    background: transparent;
    color: #2e2e2e;

    font: inherit;
    font-size: 14px;
    line-height: 1.4;

    transition: border-color 180ms ease;
}

.target-contact-form__field input::placeholder,
.target-contact-form__field textarea::placeholder {
    color: #737373;
    opacity: 1;
}

.target-contact-form__field input:focus,
.target-contact-form__field textarea:focus {
    outline: none;
    border-bottom: 2px solid #2e2e2e;
}

.target-contact-form__field--message textarea {
    min-height: 100px;
    resize: vertical;
}

.target-contact-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.target-contact-form__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;

    min-height: 42px;
    padding: 10px 15px;

    border: 1px solid #2e2e2e;
    border-radius: 12px 0 12px 0;

    background: #fff;
    color: #2e2e2e;

    font-family: "Syne", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.target-contact-form__actions button:hover {
    background: #2e2e2e;
    color: #fff;
}

.target-contact-form__actions button:focus-visible {
    outline: 2px solid #9ec857;
    outline-offset: 3px;
}

.target-contact-form__feedback {
    margin-bottom: 25px;
    padding: 14px 16px;
    border: 1px solid #999;
    font-size: 14px;
    line-height: 1.5;
}

.target-contact-form__feedback.is-success {
    border-color: #719b35;
}

.target-contact-form__feedback.is-error {
    border-color: #a73d3d;
}

.target-contact-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    left: -9999px;
}

@media (max-width: 767px) {
    #target-contact-form-container {
        margin-top: 48px;
    }

    .target-contact-form {
        gap: 32px;
    }

    .target-contact-form__field label {
        font-size: 19px;
    }

    .target-contact-form__field input,
    .target-contact-form__field textarea {
        font-size: 16px;
    }

    .target-contact-form__actions {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .target-contact-form__actions button {
        min-height: 45px;
        font-size: 14px;
    }
}