/* =====================================
   CONTACT PAGE
===================================== */


/* =====================================
   HERO
===================================== */

.contact-hero {
    position: relative;

    overflow: hidden;

    padding: 100px 0;

    background:
        linear-gradient(
            120deg,
            #052f53,
            #0a4b7f
        );

    color: #ffffff;
}


.contact-hero::before {
    content: '';

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    pointer-events: none;
}


.contact-hero-inner {
    position: relative;

    z-index: 2;

    max-width: 850px;

    text-align: center;
}


.contact-label {
    display: inline-block;

    margin-bottom: 15px;

    color: #aad8ff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


.contact-hero h1 {
    font-size: clamp(42px, 5vw, 62px);

    line-height: 1.08;

    letter-spacing: -2.5px;
}


.contact-hero h1 span {
    color: var(--orange);
}


.contact-hero p {
    max-width: 700px;

    margin: 20px auto 0;

    color: rgba(255,255,255,.75);

    font-size: 16px;

    line-height: 1.8;
}


.contact-hero-shape {
    position: absolute;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.08);

    pointer-events: none;
}


.contact-shape-one {
    width: 430px;
    height: 430px;

    top: -250px;
    right: -100px;
}


.contact-shape-two {
    width: 300px;
    height: 300px;

    left: -150px;
    bottom: -200px;
}


/* =====================================
   MAIN
===================================== */

.contact-main {
    padding: 100px 0;

    background: #f7f9fc;
}


.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .8fr)
        minmax(0, 1.2fr);

    gap: 70px;

    align-items: start;
}


/* =====================================
   LEFT
===================================== */

.contact-info h2 {
    font-size: 42px;

    line-height: 1.15;

    letter-spacing: -1.5px;
}


.contact-info h2 strong {
    color: var(--navy);
}


.contact-intro {
    margin-top: 17px;

    max-width: 500px;

    color: var(--text);

    font-size: 15px;

    line-height: 1.8;
}


.contact-details {
    margin-top: 38px;

    display: grid;

    gap: 14px;
}


.contact-detail-item {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 17px 0;

    border-bottom: 1px solid var(--border);
}


.contact-detail-icon {
    width: 47px;
    height: 47px;

    flex: 0 0 47px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #eaf3fb;

    color: var(--navy);
}


.contact-detail-icon svg {
    width: 21px;
    height: 21px;
}


.contact-detail-item span {
    display: block;

    margin-bottom: 2px;

    color: #84909c;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .5px;
}


.contact-detail-item a,
.contact-detail-item p {
    color: var(--heading);

    font-size: 14px;
    font-weight: 600;
}


.contact-detail-item a:hover {
    color: var(--orange);
}


/* HELP BOX */

.contact-help-box {
    margin-top: 35px;

    padding: 27px;

    border-radius: 12px;

    background: var(--navy);

    color: #ffffff;
}


.contact-help-box > span {
    color: #aad8ff;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .8px;
}


.contact-help-box h3 {
    margin-top: 7px;

    font-size: 19px;

    line-height: 1.4;
}


.contact-help-box p {
    margin-top: 10px;

    color: rgba(255,255,255,.7);

    font-size: 13px;

    line-height: 1.7;
}


/* =====================================
   FORM
===================================== */

.contact-form-wrapper {
    padding: 40px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 20px 50px
        rgba(10, 47, 79, .08);
}


.contact-form-heading {
    margin-bottom: 30px;
}


.contact-form-heading > span {
    display: block;

    margin-bottom: 7px;

    color: var(--orange);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.contact-form-heading h2 {
    font-size: 30px;
}


.contact-form-heading p {
    margin-top: 8px;

    color: var(--text);

    font-size: 13px;
}


.contact-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.form-group label {
    color: var(--heading);

    font-size: 13px;
    font-weight: 600;
}


.form-group label span {
    color: var(--orange);
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #dce3ea;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: var(--heading);

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.form-group input,
.form-group select {
    height: 50px;

    padding: 0 15px;
}


.form-group textarea {
    min-height: 145px;

    padding: 14px 15px;

    resize: vertical;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aab5;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy);

    box-shadow:
        0 0 0 3px
        rgba(7, 59, 104, .08);
}


/* SUBMIT */

.contact-submit-btn {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 0;

    border-radius: 8px;

    background: var(--orange);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.contact-submit-btn:hover {
    background: var(--orange-dark);

    transform: translateY(-1px);
}


.contact-submit-btn svg {
    width: 18px;
    height: 18px;
}


.form-note {
    text-align: center;

    color: #8b96a1;

    font-size: 11px;
}


/* =====================================
   BOTTOM CTA
===================================== */

.contact-bottom-cta {
    padding: 55px 0;

    background: var(--green);

    color: #ffffff;
}


.contact-bottom-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.contact-bottom-inner span {
    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .8px;

    opacity: .8;
}


.contact-bottom-inner h2 {
    font-size: 27px;
}


.contact-white-btn {
    flex-shrink: 0;

    background: #ffffff;

    color: var(--green);
}


/* =====================================
   MODAL
===================================== */

.contact-modal {
    position: fixed;

    inset: 0;

    z-index: 20000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.contact-modal.show {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


.contact-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(4, 24, 42, .65);

    backdrop-filter: blur(3px);
}


.contact-modal-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 430px;

    padding: 40px 35px 32px;

    border-radius: 16px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 25px 80px
        rgba(0,0,0,.22);

    transform: translateY(15px) scale(.98);

    transition: transform .2s ease;
}


.contact-modal.show .contact-modal-content {
    transform:
        translateY(0)
        scale(1);
}


.contact-modal-close {
    position: absolute;

    top: 13px;
    right: 15px;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 0;

    border-radius: 50%;

    background: #f3f6f8;

    color: var(--heading);

    font-size: 23px;

    cursor: pointer;
}


.success-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #e9f9f3;

    color: var(--green);
}


.success-icon svg {
    width: 38px;
    height: 38px;
}


.contact-modal-content h3 {
    font-size: 25px;
}


.contact-modal-content p {
    max-width: 330px;

    margin: 12px auto 25px;

    color: var(--text);

    font-size: 14px;

    line-height: 1.7;
}


.modal-done-btn {
    min-width: 130px;

    height: 45px;

    border: 0;

    border-radius: 7px;

    background: var(--navy);

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


body.modal-open {
    overflow: hidden;
}


/* =====================================
   TABLET
===================================== */

@media (max-width: 900px) {

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .contact-info {
        max-width: 650px;
    }

}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .contact-hero {
        padding: 70px 0;
    }


    .contact-hero-inner {
        text-align: left;
    }


    .contact-hero h1 {
        font-size: 39px;

        letter-spacing: -1.5px;
    }


    .contact-hero p {
        margin-left: 0;

        font-size: 14px;
    }


    .contact-main {
        padding: 65px 0;
    }


    .contact-info h2 {
        font-size: 32px;
    }


    .contact-form-wrapper {
        padding: 27px 20px;
    }


    .form-row {
        grid-template-columns: 1fr;
    }


    .contact-bottom-inner {
        flex-direction: column;

        align-items: flex-start;
    }


    .contact-white-btn {
        width: 100%;
    }

}


/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 420px) {

    .contact-hero h1 {
        font-size: 34px;
    }


    .contact-form-heading h2 {
        font-size: 26px;
    }


    .contact-modal-content {
        padding:
            38px 22px
            28px;
    }

}