/* =========================================================
   CONTACT PAGE HERO
   ========================================================= */

.an-contact-hero {
    position: relative;

/*    min-height: 330px;
    height: 330px;*/

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    overflow: hidden;
}


/* =========================================================
   DARK OVERLAY
   ========================================================= */

.an-contact-hero::before {
    content: '';

    position: absolute;
    inset: 0;

    /*background:
        linear-gradient(
            90deg,
            rgba(1, 20, 38, 0.98) 0%,
            rgba(1, 20, 38, 0.92) 25%,
            rgba(1, 20, 38, 0.60) 47%,
            rgba(1, 20, 38, 0.08) 72%,
            rgba(1, 20, 38, 0.02) 100%
        );*/

    pointer-events: none;
}


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

/*.an-contact-hero > .an-container {
    position: relative;
    z-index: 2;

    height: 100%;

    display: flex;
    align-items: center;
}*/


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

.an-contact-hero-content {
    width: 100%;
    max-width: 590px;

    padding: 60px 0 20px;
}


/* =========================================================
   H1
   ========================================================= */

.an-contact-hero-content h1 {
    margin: 0 0 14px;

    color: #fff;

    font: 700 clamp(48px, 4.5vw, 58px)/0.98 var(--font-cond);

    letter-spacing: 0.2px;

    text-transform: uppercase;
}


/* =========================================================
   SMALL BLUE DIVIDER
   ========================================================= */

.an-contact-hero-content h1::after {
    content: '';

    display: block;

    width: 58px;
    height: 2px;

    margin-top: 13px;

    background: #157fca;
}


/* =========================================================
   H2
   ========================================================= */

.an-contact-hero-content h2 {
    max-width: 590px;

    margin: 0 0 12px;

    color: #167bd1;

    font: 700 clamp(26px, 2.25vw, 32px)/1.08 var(--font-cond);

    letter-spacing: 0.15px;

    text-transform: uppercase;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.an-contact-hero-content p {
    max-width: 535px;

    margin: 0;

    color: #fff;

    font-size: 18px;
    line-height: 1.45;
}

.an-contact-main {
    position: relative;
    padding: 40px 0;
}

/* =========================================================
   CONTACT MAIN GRID
   ========================================================= */

.an-contact-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.28fr 1.10fr;

    gap: 0;

    margin-top: 0;
}


/* =========================================================
   CONTACT COLUMNS
   ========================================================= */

.an-contact-grid > * {
    min-width: 0;
}


/* Get In Touch */
.an-contact-grid > .an-contact-items {
    padding: 0 38px 0 0;
}


/* Send Message */
.an-contact-grid > .an-contact-form {
    padding: 0 38px;

    border-left: 1px solid #cfd7df;
    border-right: 1px solid #cfd7df;
}


/* Office Location */
.an-contact-grid > .an-contact-location {
    padding: 0 0 0 38px;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.an-contact-grid h2 {
    position: relative;

    margin: 0 0 27px;

    color: #102b4a;

    font: 700 24px/1.05 var(--font-cond);
    letter-spacing: 0.2px;
}


.an-contact-grid h2::after {
    content: '';

    display: block;

    width: 49px;
    height: 2px;

    margin-top: 9px;

    background: #157fca;
}


/* =========================================================
   GET IN TOUCH
   ========================================================= */

.an-contact-items {
    color: #111;
}


.an-contact-items p {
    display: flex;
    align-items: flex-start;

    margin: 0 0 17px;

    font-size: 15px;
    line-height: 1.42;
}


.an-contact-items strong {
    display: block;

    margin-bottom: 3px;

    color: #12477f;

    font: 700 16px/1.1 var(--font-cond);
}


.an-contact-items p:last-child {
    margin-bottom: 0;
}


/* If the contact icon is inside each item */
.an-contact-items .an-icon-circle {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    margin-right: 21px;

    border: 0;
    border-radius: 50%;

    background: #165eb0;

    color: #fff;

    font-size: 25px;
}


.an-contact-items .an-icon-circle i {
    color: #fff;
}


/* Text beside icon */
.an-contact-items p > span,
.an-contact-items p > div {
    min-width: 0;
}


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

.an-contact-form {
    min-width: 0;
}


.an-contact-form input,
.an-contact-form textarea {
    box-sizing: border-box;

    width: 100%;

    margin: 0 0 10px;

    padding: 10px 13px;

    border: 1px solid #ccd5dd;
    border-radius: 5px;

    background: #fff;

    color: #111;

    font: 400 15px/1.35 var(--font-body);
}


.an-contact-form input {
    height: 40px;
}


.an-contact-form input::placeholder,
.an-contact-form textarea::placeholder {
    color: #77818b;

    opacity: 1;
}


.an-contact-form textarea {
    height: 105px;

    resize: vertical;
}


/* First row: name + email */
.an-contact-form .form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


.an-contact-form .form-row input {
    width: 100%;
}


/* Checkbox / newsletter */
.an-contact-form label {
    display: flex;
    align-items: center;

    margin: 0 0 12px;

    color: #202020;

    font-size: 13px;
    line-height: 1.3;
}


.an-contact-form label input {
    width: 15px;
    height: 15px;

    flex: 0 0 15px;

    margin: 0 8px 0 0;

    padding: 0;
}

.an-contact-form .wpcf7-submit {
    position: relative;

    padding-left: 48px;

    background-color: #115eae;

    color: #fff;

    cursor: pointer;
}


.an-contact-form .wpcf7-submit::before {
    content: "\f1d8";

    position: absolute;

    left: 20px;
    top: 50%;

    transform: translateY(-50%);

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    font-size: 14px;

    color: #fff;

    pointer-events: none;
}

/* Submit button */
.an-contact-form .an-btn {
    min-width: 204px;

    min-height: 43px;

    padding: 9px 22px;

    border-radius: 5px;

    font-size: 16px;
}


/* =========================================================
   OFFICE LOCATION
   ========================================================= */

.an-address {
    display: flex;
    align-items: flex-start;

    margin: 0 0 17px;

    color: #111;

    font-size: 16px;
    line-height: 1.45;
}


/*
 * Location icon.
 * Works with the existing circular icon structure.
 */
.an-address .an-icon-circle {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    margin-right: 20px;

    border: 0;
    border-radius: 50%;

    background: #165eb0;

    color: #fff;

    font-size: 25px;
}


/* Address text */
.an-address > span,
.an-address > div {
    min-width: 0;
}


/* =========================================================
   MAP
   ========================================================= */

.an-map {
    display: block;

    width: 100%;
    height: 200px;

    margin-top: 8px;

    border: 1px solid #d1d9e0;
    border-radius: 8px;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);

    object-fit: cover;
}


/* =========================================================
   OTHER WAYS TO CONNECT
   ========================================================= */

.an-connect {
    position: relative;

    padding-top: 31px;
}


/*
 * Heading separator.
 *
 * This creates the horizontal lines visible on both
 * sides of "OTHER WAYS TO CONNECT".
 */
.an-connect h2 {
    display: flex;
    align-items: center;

    width: 100%;

    margin: 0 0 18px;

    color: #165eb0;

    font: 700 26px/1 var(--font-cond);

    text-align: center;

    gap: 20px;
}


.an-connect h2::before,
.an-connect h2::after {
    content: '';

    height: 1px;

    flex: 1 1 auto;

    background: #d7dee5;
}


.an-connect > h2::before {
    margin-right: 18px;
}


.an-connect > h2::after {
    margin-left: 18px;
}


/* =========================================================
   CONNECT GRID
   ========================================================= */

.an-connect-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 0;
}


.an-connect-grid article {
    display: flex;
    align-items: flex-start;

    min-width: 0;

    padding: 9px 25px;

    border-right: 1px solid #cfd7df;
}


.an-connect-grid article:first-child {
    padding-left: 10px;
}


.an-connect-grid article:last-child {
    padding-right: 10px;

    border-right: 0;
}


/* Connect icon */
.an-connect-grid .an-icon-circle {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    border: 0;

    background: transparent;

    color: #157fca;

    font-size: 40px;
}


.an-connect-grid .an-icon-circle i {
    color: ##165eb0;
}

.an-connect-grid .an-icon-circle img {
    width: 58px;
    height: 44px;
}

/* Connect text */
.an-connect-grid article > div:last-child {
    min-width: 0;

    padding-left: 15px;
}


.an-connect-grid h3 {
    margin: 0 0 5px;

    color: #174a87;

    font: 700 17px/1.1 var(--font-cond);
}


.an-connect-grid p {
    margin: 0 0 5px;

    color: #111;

    font-size: 13px;
    line-height: 1.35;
}


.an-connect-grid a {
    color: #0967b6;

    font-size: 13px;

    text-decoration: none;
}


.an-connect-grid a:hover {
    text-decoration: underline;
}



/* =========================================================
   CONTACT FORM 7
   ========================================================= */

.an-contact-form-7 {
    width: 100%;
}


/* CF7 paragraph wrappers */
.an-contact-form-7 p {
    margin: 0 0 10px;
}


/* CF7 labels */
.an-contact-form-7 label {
    display: block;

    margin: 0;
}


/* Text fields */
.an-contact-form-7 input[type="text"],
.an-contact-form-7 input[type="email"],
.an-contact-form-7 input[type="tel"],
.an-contact-form-7 input[type="url"],
.an-contact-form-7 input[type="number"],
.an-contact-form-7 input[type="date"],
.an-contact-form-7 textarea {
    box-sizing: border-box;

    width: 100%;

    padding: 10px 13px;

    border: 1px solid #ccd5dd;
    border-radius: 5px;

    background: #fff;

    color: #111;

    font: 400 15px/1.35 var(--font-body);
}


/* Input height */
.an-contact-form-7 input[type="text"],
.an-contact-form-7 input[type="email"],
.an-contact-form-7 input[type="tel"],
.an-contact-form-7 input[type="url"],
.an-contact-form-7 input[type="number"],
.an-contact-form-7 input[type="date"] {
    height: 40px;
}


/* Message */
.an-contact-form-7 textarea {
    min-height: 105px;

    resize: vertical;
}


/* Placeholder */
.an-contact-form-7 input::placeholder,
.an-contact-form-7 textarea::placeholder {
    color: #77818b;

    opacity: 1;
}


/* Checkbox */
.an-contact-form-7 input[type="checkbox"] {
    width: 15px;
    height: 15px;

    margin-right: 7px;
}


/* Submit button */
.an-contact-form-7 input[type="submit"] {
    min-width: 204px;
    min-height: 43px;

    padding: 9px 22px;

    border: 0;
    border-radius: 5px;

    background: #157fca;

    color: #fff;

    cursor: pointer;

    font: 700 16px/1 var(--font-cond);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.an-contact-form-7 input[type="submit"]:hover {
    background: #106aa9;

    transform: translateY(-1px);
}


/* CF7 response message */
.an-contact-form-7 .wpcf7-response-output {
    margin: 15px 0 0;

    padding: 8px 12px;

    border-radius: 4px;

    font-size: 13px;
}


/* CF7 validation messages */
.an-contact-form-7 .wpcf7-not-valid-tip {
    margin-top: 3px;

    font-size: 12px;
}


/* Empty shortcode message */
.an-contact-form-empty {
    margin: 0;

    padding: 14px;

    border: 1px dashed #cbd5df;
    border-radius: 5px;

    background: #f7f9fb;

    color: #687582;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   CONTACT FOOTER
   ========================================================= */

.an-contact-footer {
    position: relative;
    overflow: hidden;

    background-image: var(--an-contact-footer-bg);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #ffffff;
}


/* Main footer container */

.an-contact-footer .an-container {
    position: relative;
    z-index: 2;
}


/* Two-column layout */

.an-contact-footer-inner {
    /*display: grid;
    grid-template-columns: minmax(0, 1fr) auto;*/
    display: flex;
    align-items: center;
    column-gap: 20px;

    padding: 22px 0;
}

/* =========================================================
   IMAGE / ICON
   ========================================================= */

.an-contact-footer-image {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: grid;
    place-items: center;

    overflow: hidden;
}


.an-contact-footer-image img {
    border: 1px solid #fff;
    border-radius: 50%;
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   LEFT SIDE — TEXT
   ========================================================= */

.an-contact-footer-copy {
    /*max-width: 760px;*/
    flex: 1 1 auto;
}

.an-contact-footer-copy h2 {
    margin: 0 0 12px;

    font-size: 27px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.an-contact-footer-copy h3 {
    margin: 0 0 16px;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
    color: #ffffff;
}

.an-contact-footer-copy p {
    margin: 0;

    max-width: 680px;

    font-size: 15px;
    line-height: 0.65;
    color: rgba(255, 255, 255, 0.9);
}


.an-contact-footer-social {
    display: flex;
    align-items: center;

    gap: 14px;

    flex: 0 0 auto;
}


.an-contact-footer-social-label {
    margin-right: 2px;

    color: #fff;

    font: 700 14px/1 var(--font-cond);

    white-space: nowrap;
}


.an-contact-footer-social-icons {
    display: flex;
    align-items: center;

    gap: 12px;
}


.an-contact-footer-social-icons a {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;

    color: #fff;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.an-contact-footer-social-icons a i {
    font-size: 16px;
}


.an-contact-footer-social-icons a:hover,
.an-contact-footer-social-icons a:focus {
    background: #fff;
    border-color: #fff;

    color: #063b69;
}













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

@media (max-width: 1100px) {

    .an-contact-grid {
        grid-template-columns: 1fr 1.25fr 1fr;
    }


    .an-contact-grid > .an-contact-items {
        padding-right: 25px;
    }


    .an-contact-grid > .an-contact-form {
        padding-left: 25px;
        padding-right: 25px;
    }


    .an-contact-grid > .an-contact-location {
        padding-left: 25px;
    }


    .an-contact-grid h2 {
        font-size: 22px;
    }


    .an-contact-items .an-icon-circle,
    .an-address .an-icon-circle {
        width: 48px;
        height: 48px;

        flex-basis: 48px;

        margin-right: 15px;
    }


    .an-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }


    .an-connect-grid article {
        padding-left: 15px;
        padding-right: 15px;
    }


    .an-connect-grid article:first-child {
        padding-left: 0;
    }


    .an-connect-grid article:last-child {
        padding-right: 0;
    }

}


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

@media (max-width: 950px) {

    /*
     * Main contact area becomes stacked.
     */
    .an-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }


    .an-contact-grid > .an-contact-items,
    .an-contact-grid > .an-contact-form,
    .an-contact-grid > .an-contact-location {
        padding: 0;

        border-left: 0;
        border-right: 0;
    }


    .an-contact-grid > .an-contact-form {
        margin-top: 30px;
        padding-top: 30px;

        border-top: 1px solid #d1d9e0;
    }


    .an-contact-grid > .an-contact-location {
        margin-top: 30px;
        padding-top: 30px;

        border-top: 1px solid #d1d9e0;
    }


    .an-map {
        height: 250px;
    }


    /*
     * Other Ways:
     * 2 columns on tablet.
     */
    .an-connect-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .an-connect-grid article {
        min-height: 90px;

        padding: 14px 20px;

        border-bottom: 1px solid #d6dde4;
    }


    .an-connect-grid article:nth-child(2) {
        border-right: 0;
    }


    .an-connect-grid article:nth-child(3),
    .an-connect-grid article:nth-child(4) {
        border-bottom: 0;
    }


    .an-connect-grid article:first-child {
        padding-left: 0;
    }


    .an-connect-grid article:nth-child(3) {
        padding-left: 0;
    }


    .an-connect-grid article:last-child {
        padding-right: 0;
    }

    .an-contact-footer-inner {
        column-gap: 40px;
        padding: 20px 0;
    }

    .an-contact-footer-copy h2 {
        font-size: 34px;
    }

    .an-contact-footer-copy h3 {
        font-size: 21px;
    }

    .an-contact-footer-social {
        min-width: 190px;
    }

}


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

@media (max-width: 850px) {

    .an-contact-footer-inner {
        /*display: grid;
        grid-template-columns: 1fr;*/
        flex-wrap: wrap;
        justify-content: center;
    }

    .an-contact-footer {
        padding: 20px 0;
    }

    .an-contact-footer-copy,
    .an-contact-footer-social {
        text-align: center;
        justify-content: center;
    }

    .an-contact-footer-copy {
        margin-bottom: 20px;
    }


    .an-contact-footer-content {
        max-width: 650px;
    }


    .an-contact-footer h2 {
        font-size: 22px;
    }


    .an-contact-footer h3 {
        font-size: 20px;
    }

}


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

@media (max-width: 600px) {

    .an-contact-footer {
        padding: 22px 0;

        background-position: center center;
    }


    .an-contact-footer-content {
        max-width: 100%;
    }


    .an-contact-footer h2 {
        font-size: 25px;

        line-height: 1.1;
    }


    .an-contact-footer h3 {
        font-size: 18px;
    }


    .an-contact-footer p {
        font-size: 14px;
    }


    .an-contact-footer-social {
        margin-top: 21px;
    }

    .an-page-hero, .an-hero {
        background-color: #070b0f;
        background-position: 66% center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .an-contact-grid h2 {
        font-size: 22px;

        margin-bottom: 22px;
    }


    .an-contact-items p {
        margin-bottom: 18px;

        font-size: 15px;
    }


    .an-contact-form {
        margin-top: 25px !important;
        padding-top: 25px !important;
    }


    .an-contact-location {
        margin-top: 25px !important;
        padding-top: 25px !important;
    }


    .an-contact-form input {
        height: 42px;
    }


    .an-contact-form textarea {
        height: 130px;
    }


    .an-contact-form .form-row {
        grid-template-columns: 1fr;
    }


    .an-contact-form .an-btn {
        width: 100%;
    }


    .an-map {
        height: 220px;
    }


    /*
     * Other Ways:
     * One item per row on mobile.
     */
    .an-connect-grid {
        grid-template-columns: 1fr;
    }


    .an-connect-grid article,
    .an-connect-grid article:nth-child(3),
    .an-connect-grid article:nth-child(4) {
        min-height: auto;

        padding: 14px 0;

        border-right: 0;
        border-bottom: 1px solid #d6dde4;
    }


    .an-connect-grid article:last-child {
        border-bottom: 0;
    }


    .an-connect-grid .an-icon-circle {
        width: 48px;
        height: 48px;

        flex-basis: 48px;
    }


    .an-connect-grid article > div:last-child {
        padding-left: 12px;
    }


    .an-connect > h2 {
        font-size: 18px;
    }


    .an-connect > h2::before {
        margin-right: 10px;
    }


    .an-connect > h2::after {
        margin-left: 10px;
    }

    .an-contact-footer-inner {
        grid-template-columns: 1fr;
        row-gap: 30px;

        padding: 0;
    }

    .an-contact-footer-copy {
        max-width: none;
        text-align: center;
    }

    .an-contact-footer-copy h2 {
        font-size: 22px;
    }

    .an-contact-footer-copy h3 {
        font-size: 20px;
    }

    .an-contact-footer-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .an-contact-footer-social {
        align-items: center;
        min-width: 0;
        justify-content: center;
    }

    .an-contact-footer-social-icons {
        justify-content: center;
    }

}

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

@media (max-width: 450px) {

    .an-contact-footer-inner {
        padding: 22px 0;
    }

    .an-contact-footer-copy h2 {
        font-size: 20px;
    }

    .an-contact-footer-copy h3 {
        font-size: 18px;
    }

    .an-contact-footer-copy p {
        font-size: 14px;
    }

    .an-contact-footer-social-icons {
        gap: 8px;
    }

    .an-contact-footer-social-icons a {
        width: 38px;
        height: 38px;
    }

}