.contact-grid .wpcf7 form.wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 24px;
    row-gap: 0;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    box-sizing: border-box;
}

.contact-grid .wpcf7 form.wpcf7-form > fieldset {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-grid .wpcf7 form.wpcf7-form > p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.contact-grid h2 {
    margin-bottom: 70px;
    font-weight: 500;
}

.contact-grid aside {
    background: #0756b7;
}

/* Form field width */
.contact-grid .wpcf7 .form-field {
    box-sizing: border-box;
    min-width: 0;
    margin-bottom: 25px;
}

.contact-grid .wpcf7 .form-field.half {
    width: calc(50% - 12px);
}

.contact-grid .wpcf7 .form-field.full {
    width: 100%;
}

.contact-grid .wpcf7 .form-submit {
    width: 100%;
    margin: 0;
    padding: 0;
}

.contact-grid .wpcf7 form.wpcf7-form label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    box-sizing: border-box;
}

.contact-grid .wpcf7 input::placeholder,
.contact-grid .wpcf7 textarea::placeholder {
    color: #111;
    opacity: 1;
}

.contact-grid .wpcf7 select {
    color: #111;
}

.contact-grid .wpcf7 form.wpcf7-form label > br {
    display: none;
}

.contact-grid .wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    box-sizing: border-box;
}

.contact-grid .wpcf7 input[type="text"],
.contact-grid .wpcf7 input[type="email"],
.contact-grid .wpcf7 input[type="tel"],
.contact-grid .wpcf7 select,
.contact-grid .wpcf7 textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid #d5d5d5;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    color: #111;
    border-radius: 0;
    box-sizing: border-box;
}

.contact-grid .wpcf7 input::placeholder,
.contact-grid .wpcf7 textarea::placeholder {
    color: #111;
    opacity: 1;
}

.contact-grid .wpcf7 input:focus,
.contact-grid .wpcf7 select:focus,
.contact-grid .wpcf7 textarea:focus {
    border-bottom-color: #111;
    outline: none;
    box-shadow: none;
}

.contact-grid .wpcf7 select {
    cursor: pointer;
}

.contact-grid .wpcf7 textarea {
    min-height: 85px;
    height: 85px;
    resize: none;
    overflow: auto;
}

/* Submit button */
.contact-grid .wpcf7 input[type="submit"] {
    position: relative;
    display: block;
    width: max-content !important;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    outline: 0;
    padding: 0 55px 0 24px !important;
    border: 0;
    border-radius: 5px;
    background-color: #1761bd !important;
    background-image: url("../images/arrow.png") !important;
    background-repeat: no-repeat !important;
    background-position: right 21px center !important;
    background-size: 23px !important;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 44px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
}

.contact-grid .wpcf7 input[type="submit"]:hover {
    background-color: #0f4f9e !important;
}

.contact-grid .wpcf7 .wpcf7-spinner {
    display: none;
}

.contact-grid .wpcf7 .wpcf7-not-valid {
    border-bottom-color: #d63638;
}

.contact-grid .wpcf7 .wpcf7-not-valid-tip {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.contact-grid .wpcf7 .wpcf7-response-output {
    width: 100%;
    margin: 20px 0 0;
}

.contact-grid .wpcf7 .akismet-fields-container {
    display: none !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 8vw;
    min-width: 0;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-form label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.contact-form .full {
    grid-column: 1 / -1;
}

.contact-grid aside {
    background: var(--forest);
    color: #fff;
    padding: 45px;
    border-radius: 20px;
    height: max-content;
}

.contact-grid aside p:last-child {
    margin: 0;
}

.contact-grid aside h3 {
    font-size: 22px;
    margin: 30px 0 8px;
}

.contact-grid aside a,
.contact-grid aside p {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.8;
}

.contact-grid p.eyebrow {
    font-size: 14px;
}


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

@media (max-width: 1199px) {
    .contact-grid {
        gap: 5vw;
    }

    .contact-grid h2 {
        margin-bottom: 60px;
        font-size: 55px;
    }
}


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

@media (max-width: 1024px) {
    .contact-grid aside {
        padding: 25px;
    }

    .contact-grid h2 {
        margin-bottom: 50px;
        font-size: 50px;
    }
}


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

@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .contact-grid h2 {
        margin-bottom: 40px;
        font-size: 42px;
    }

    .contact-details {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        flex-direction: row;
        column-gap: 25px;
    }

    .contact-grid aside p {
        margin-bottom: 0;
    }

    .contact-grid aside h3 {
        font-size: 20px;
        margin: 20px 0 3px;
    }

    /* Prevent form from overflowing */
    .contact-grid .wpcf7 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .contact-grid .wpcf7 form.wpcf7-form {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible;
        box-sizing: border-box;
    }

    .contact-grid .wpcf7 .wpcf7-form-control-wrap {
        width: 100%;
        max-width: 100%;
    }

    .contact-grid .wpcf7 input[type="text"],
    .contact-grid .wpcf7 input[type="email"],
    .contact-grid .wpcf7 input[type="tel"],
    .contact-grid .wpcf7 select,
    .contact-grid .wpcf7 textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-grid .wpcf7 textarea {
        height: 120px;
        min-height: 120px;
        max-height: 250px;
        overflow-y: auto;
    }
}


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

@media (max-width: 600px) {
    .contact-grid .wpcf7 form.wpcf7-form {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        column-gap: 0;
        row-gap: 0;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
    }

    .contact-grid .wpcf7 .form-field.half,
    .contact-grid .wpcf7 .form-field.full {
        width: 100%;
    }

    .contact-grid .wpcf7 .form-field {
        width: 100%;
        max-width: 100%;
        margin-bottom: 25px;
    }

    .contact-grid .wpcf7 .form-submit {
        width: 100%;
        margin: 0;
    }

    .contact-grid .wpcf7 input[type="submit"] {
        max-width: 100%;
        height: 44px;
        min-height: 44px;
        margin-top: 0;
        box-sizing: border-box;
    }

    .contact-grid h2 {
        margin-bottom: 40px;
        font-size: 34px;
    }

    .contact-grid .wpcf7 textarea {
        height: 120px;
        min-height: 120px;
    }
}


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

@media (max-width: 479px) {
    .contact-grid h2 {
        margin-bottom: 30px;
        font-size: 32px;
    }

    .contact-grid .wpcf7 input[type="text"],
    .contact-grid .wpcf7 input[type="email"],
    .contact-grid .wpcf7 input[type="tel"],
    .contact-grid .wpcf7 select,
    .contact-grid .wpcf7 textarea {
        /* 16px prevents iPhone Safari auto zoom on focus */
        font-size: 16px;
    }

    .contact-grid .wpcf7 textarea {
        height: 120px;
        min-height: 120px;
    }
    
}


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

@media (max-width: 374px) {
    .contact-details {
        flex-direction: column;
        gap: 0;
    }
}