/* =========================================================
   Contact Page
   ========================================================= */

.contact-page {
    background: #fff;
}

.contact-main {
    padding: 75px 0 85px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 70px;
    align-items: flex-start;
}


/* =========================================================
   Editor Content
   ========================================================= */

.contact-left {
    min-width: 0;
    padding-top: 8px;
}

.contact-editor-content {
    color: #666;
    font-size: 15px;
    line-height: 25px;
}

.contact-editor-content h2 {
    margin: 0 0 20px;
    color: #111;
    font-size: 34px;
    line-height: 44px;
}

.contact-editor-content h3 {
    margin: 30px 0 8px;
    color: #111;
    font-size: 18px;
    line-height: 26px;
}

.contact-editor-content p {
    margin: 0 0 18px;
}

.contact-editor-content strong,
.contact-editor-content b {
    color: #333;
}

.contact-editor-content a {
    color: #555;
}

.contact-editor-content a:hover {
    color: #078ad4;
}

.contact-editor-content ul,
.contact-editor-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.contact-editor-content ul li {
    list-style: disc;
}

.contact-editor-content ol li {
    list-style: decimal;
}

.contact-editor-content li {
    margin-bottom: 6px;
}


/* =========================================================
   Form Box
   ========================================================= */

.contact-form-box {
    padding: 36px 38px 38px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .05);
}

.contact-form-title {
    margin-bottom: 30px;
}

.contact-form-title > span {
    display: block;
    margin-bottom: 4px;
    color: #078ad4;
    font-size: 13px;
    line-height: 21px;
}

.contact-form-title h2 {
    margin: 0 0 9px;
    color: #111;
    font-size: 30px;
    line-height: 40px;
}

.contact-form-title > p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 22px;
}


/* =========================================================
   Form
   ========================================================= */

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

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-group > label:first-child {
    display: block;
    margin-bottom: 8px;
    color: #222;
    font-size: 14px;
    line-height: 21px;
}

.contact-form-group label em {
    color: #e53935;
}

.contact-form-group input[type="text"],
.contact-form-group input[type="email"],
.contact-form-group textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.contact-form-group input[type="text"],
.contact-form-group input[type="email"] {
    height: 48px;
    padding: 0 15px;
}

.contact-form-group textarea {
    min-height: 145px;
    padding: 13px 15px;
    line-height: 22px;
    resize: vertical;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: #078ad4;
    box-shadow: 0 0 0 3px rgba(7, 138, 212, .08);
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #999;
}


/* =========================================================
   Validation
   ========================================================= */

.contact-form-group.has-error input,
.contact-form-group.has-error textarea {
    border-color: #df4747;
}

.contact-form-group.has-error input:focus,
.contact-form-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(223, 71, 71, .08);
}

.contact-field-error {
    min-height: 0;
    margin-top: 0;
    color: #df4747;
    font-size: 12px;
    line-height: 18px;
}

.contact-form-group.has-error .contact-field-error {
    margin-top: 6px;
}


/* =========================================================
   Upload
   ========================================================= */

.contact-form-group .contact-upload {
    min-height: 175px;
    margin: 0;
    padding: 23px 20px;
    border: 1px dashed #bdc9d2;
    border-radius: 9px;
    background: #f8fbff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition:
        border-color .25s ease,
        background .25s ease;
}

.contact-form-group .contact-upload:hover,
.contact-form-group .contact-upload.dragover {
    border-color: #078ad4;
    background: #f0f9fe;
}

.contact-upload-input {
    display: none;
}

.contact-upload > i {
    margin-bottom: 9px;
    color: #078ad4;
    font-size: 30px;
}

.contact-upload > strong {
    margin-bottom: 2px;
    color: #222;
    font-size: 15px;
    line-height: 22px;
}

.contact-upload > p {
    margin: 0 0 8px;
    color: #888;
    font-size: 13px;
    line-height: 20px;
}

.contact-upload > span {
    min-width: 125px;
    height: 39px;
    padding: 0 18px;
    border-radius: 6px;
    background: #078ad4;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-upload > small {
    margin-top: 11px;
    color: #999;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}


/* =========================================================
   File List
   ========================================================= */

.contact-upload-files {
    margin-top: 10px;
}

.contact-file-item {
    padding: 8px 10px;
    border-radius: 5px;
    background: #f5f7f8;
    color: #666;
    font-size: 12px;
    line-height: 18px;
}

.contact-file-item + .contact-file-item {
    margin-top: 5px;
}


/* =========================================================
   Submit
   ========================================================= */

.contact-submit {
    min-width: 175px;
    height: 48px;
    padding: 0 25px;
    border: 0;
    border-radius: 6px;
    background: #078ad4;
    color: #fff;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.contact-submit > i {
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.contact-submit:hover {
    background: #057bbc;
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(7, 138, 212, .22);
}

.contact-submit:hover > i {
    transform: translateX(3px) rotate(45deg);
}


/* =========================================================
   Map
   ========================================================= */

.contact-map {
    width: 100%;
    height: 430px;
    border-top: 1px solid #eee;
    background: #f5f5f5;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}


/* =========================================================
   Tablet
   ========================================================= */

@media screen and (max-width: 1100px) {

    .contact-layout {
        grid-template-columns: 36% 64%;
        gap: 40px;
    }

    .contact-editor-content h2 {
        font-size: 30px;
        line-height: 40px;
    }

    .contact-form-box {
        padding: 30px;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media screen and (max-width: 767px) {

    .contact-main {
        padding: 45px 0 55px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-left {
        padding-top: 0;
    }

    .contact-editor-content h2 {
        font-size: 27px;
        line-height: 36px;
    }

    .contact-editor-content h3 {
        margin-top: 24px;
        font-size: 17px;
        line-height: 25px;
    }

    .contact-form-box {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .contact-form-title h2 {
        font-size: 25px;
        line-height: 34px;
    }

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

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

    .contact-form-group .contact-upload {
        min-height: 160px;
    }

    .contact-submit {
        width: 100%;
    }

    .contact-map {
        height: 330px;
    }

}

/* =========================================================
   Form Status
   ========================================================= */

.contact-form-status {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 22px;
}

.contact-form-status.error {
    border: 1px solid #f0c7c7;
    background: #fff5f5;
    color: #c92a2a;
}

.contact-form-status.success {
    border: 1px solid #bfe2f5;
    background: #f0f9fe;
    color: #078ad4;
}


/* =========================================================
   Success Modal
   ========================================================= */

.contact-modal-open {
    overflow: hidden;
}

.contact-success-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-success-modal[hidden] {
    display: none;
}

.contact-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .46);
}

.contact-success-dialog {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 32px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eef8fd;
    color: #078ad4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.contact-success-dialog h3 {
    margin: 0 0 10px;
    color: #111;
    font-size: 24px;
    line-height: 32px;
}

.contact-success-dialog p {
    margin: 0 0 25px;
    color: #666;
    font-size: 14px;
    line-height: 23px;
}

.contact-success-confirm {
    min-width: 130px;
    height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 6px;
    background: #078ad4;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .25s ease;
}

.contact-success-confirm:hover {
    background: #057bbc;
}

@media screen and (max-width: 767px) {

    .contact-success-dialog {
        max-width: 360px;
        padding: 30px 22px 26px;
    }

    .contact-success-dialog h3 {
        font-size: 22px;
        line-height: 30px;
    }

}

