/* hero */
.contact_hero {
    position: relative;
    overflow: hidden;
    padding: 145px 0 80px;
}

.contact_hero .glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(174.5px);
    pointer-events: none;
}

.contact_hero .glow_left {
    top: -277px;
    left: -399px;
    width: 1037px;
    height: 644px;
    background: #00E8C4;
    opacity: 0.14;
}

.contact_hero .glow_right {
    top: 188px;
    right: -111px;
    width: 870px;
    height: 505px;
    background: #C52EFC;
    opacity: 0.16;
}

.contact_hero .center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.contact_hero h1 {
    font-size: 56px;
    line-height: 64px;
    color: #1A1C30;
}

.contact_hero p.desc {
    font-size: 16px;
    line-height: 30px;
}

.contact_hero p.desc a {
    color: #846BFF;
    text-decoration: underline;
}

/* form */
.form_section {
    padding-bottom: 96px;
}

.contact_form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 60px;
    row-gap: 40px;
    padding: 64px 100px 68px;
    background: #FFFFFF;
    border: 1px solid #E3DDF3;
    border-radius: 40px;
}

.contact_form .form_col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact_form .field {
    position: relative;
}

.contact_form .title {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: #1A1C30;
    margin-bottom: 12px;
}

.contact_form .title.req::before {
    content: '* ';
    color: #FF4545;
}

.contact_form .form_col input,
.contact_form .form_col select,
.contact_form .form_col textarea {
    display: block;
    width: calc(100% - 16px);
    height: 56px;
    margin-left: 16px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: #F9F9F9;
    color: #1A1C30;
    font: inherit;
    font-size: 16px;
    line-height: 26px;
    outline: 0;
}

.contact_form .form_col select {
    appearance: none;
    cursor: pointer;
}

.contact_form .form_col textarea {
    height: 328px;
    resize: none;
}

.contact_form .captcha {
    display: flex;
    align-items: center;
    gap: 20px;
    width: calc(100% - 16px);
    margin-left: 16px;
}

.contact_form .captcha input {
    flex: 1;
    min-width: 0;
    width: auto;
    margin-left: 0;
}

.contact_form .captcha span {
    flex: 0 0 134px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #F9F9F9;
    color: #1A1C30;
    font-size: 36px;
    line-height: 32px;
}

.contact_form .captcha i {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    background: url(/images/contact/refresh.svg) center / contain no-repeat;
    cursor: pointer;
}

.contact_form .error {
    position: absolute;
    top: 100%;
    left: 36px;
    display: none;
    color: #FF4545;
    font-size: 16px;
    line-height: 26px;
}

.contact_form .field.active .error {
    display: block;
}

.contact_form .btn_box {
    grid-column: 1 / -1;
    justify-content: center;
}

.contact_form .submit_btn {
    min-width: 280px;
    height: 64px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #6B44E0, #2455E8);
    color: #F9F9F9;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    cursor: pointer;
}

/* reach */
.reach {
    margin-top: 64px;
    text-align: center;
}

.reach .title {
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    color: #1A1C30;
}

.reach ul {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}

.reach a {
    display: block;
    width: 64px;
    height: 64px;
}

.reach i {
    display: block;
    width: 64px;
    height: 64px;
    background: url(/images/contact/ins.svg) center / contain no-repeat;
}

.reach li:nth-child(2) i {
    background-image: url(/images/contact/twitter.svg);
}

.reach li:nth-child(3) i {
    background-image: url(/images/contact/email.svg);
}

/* success modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.modal.active {
    display: flex;
}

.modal_box {
    position: relative;
    width: 760px;
    max-width: calc(100% - 48px);
    padding: 48px 120px 60px;
    background: #FFFFFF;
    border-radius: 16px;
    text-align: center;
}

.modal_box>i {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: url(/images/contact/close.svg) center / contain no-repeat;
    cursor: pointer;
}

.modal_box img {
    margin: 0 auto;
}

.modal_box p.title {
    margin-top: 20px;
    font-size: 24px;
    line-height: 32px;
    color: #1A1C30;
}

.modal_box p.desc {
    margin-top: 12px;
    font-size: 16px;
    line-height: 26px;
    color: #1A1C30;
}

.modal_box .btn_box {
    margin-top: 24px;
    justify-content: center;
}

.modal_box .home_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6B44E0, #2455E8);
    color: #F9F9F9;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
}

body.modal-open {
    overflow: hidden;
}

/* the light contact page needs no footer overlap */
.footer {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .contact_hero {
        padding: 64px 0;
    }

    .contact_hero h1 {
        font-size: 40px;
        line-height: 48px;
    }

    .contact_form {
        grid-template-columns: 1fr;
        row-gap: 40px;
        padding: 40px 24px;
        border-radius: 24px;
    }

    .contact_form .form_col {
        gap: 40px;
    }

    .contact_form .form_col textarea {
        height: 200px;
    }

    .modal_box {
        padding: 40px 24px 48px;
    }
}
