.contact-banner {
    min-height: 69px;
    display: grid;
    place-items: center;
    background: #24448e;
    color: #fff;
}

.contact-banner h1 {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 21px;
    font-weight: 700;
}

.contact-form-section {
    min-height: 400px;
    padding: 48px 24px 44px;
    text-align: center;
}

.contact-form-section h2 {
    margin: 0 0 15px;
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
}

.contact-address {
    margin: 0 0 24px;
    color: #51576a;
    font-size: 10px;
    line-height: 1.4;
}

.contact-form {
    width: min(100%, 535px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px 20px;
    margin: 0 auto;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 9px 7px;
    border: 0;
    border-bottom: 1px solid #a6a6a6;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #242a38;
    font-family: var(--body-font);
    font-size: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #24448e;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #616779;
    opacity: 1;
}

.contact-form .contact-subject,
.contact-form .contact-message {
    grid-column: 1 / -1;
}

.contact-form .contact-message {
    height: 78px;
    padding-top: 12px;
    resize: vertical;
}

.contact-send {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 90px;
    padding: 7px 18px;
    border: 0;
    background: transparent;
    color: #24448e;
    font-family: var(--body-font);
    font-size: 11px;
    cursor: pointer;
}

.contact-send:hover {
    background: #f1f3f8;
}

.world-map {
    height: 305px;
    overflow: hidden;
    background: #e7e5e2;
}

.world-map iframe,
.office-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.office-list {
    width: min(100% - 40px, 850px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto;
    padding: 32px 0;
}

.office-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 17px rgb(0 0 0 / 11%);
}

.office-card iframe {
    height: 165px;
}

.office-details {
    padding: 15px 15px 18px;
}

.office-details h2 {
    margin: 0 0 13px;
    color: #3471ad;
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 700;
}

.office-details p {
    min-height: 78px;
    margin: 0 0 14px;
    color: #525a6a;
    font-size: 10px;
    line-height: 1.45;
}

.office-details .office-email {
    min-height: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.office-email a {
    color: #4a5365;
}

.office-email a:hover {
    color: #00a85a;
}

.contact-cta {
    min-height: 98px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #24448e;
    color: #fff;
}

.contact-cta p {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 17px;
}

.contact-cta a {
    min-width: 128px;
    min-height: 30px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #24448e;
    font-size: 11px;
}

.contact-cta a:hover {
    background: #e9edf7;
}

@media (max-width: 700px) {
    .contact-form-section {
        min-height: 365px;
    }

    .world-map {
        height: 260px;
    }

    .office-list {
        width: min(100% - 32px, 520px);
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .office-card {
        display: grid;
        grid-template-columns: minmax(125px, .8fr) 1fr;
    }

    .office-card iframe {
        height: 100%;
        min-height: 200px;
    }

    .office-details p {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        min-height: 390px;
        padding: 40px 22px;
    }

    .contact-form {
        gap: 8px 13px;
    }

    .contact-form .contact-message {
        height: 95px;
    }

    .world-map {
        height: 235px;
    }

    .office-card {
        grid-template-columns: 1fr;
    }

    .office-card iframe {
        height: 175px;
        min-height: 0;
    }
}
