﻿
.contact-page {
    width: 100%;
    padding: 70px 0 90px;
    background: #f5f8fb;
    overflow: hidden;
}

.contact-page .container {
    position: relative;
}

/* ==============================
   Layout
============================== */

.contact-main {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 34px;
}

.contact-info-box,
.contact-form-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 39, 89, .08);
    box-sizing: border-box;
}

.contact-info-box {
    width: 38%;
    padding: 46px 42px;
    background: linear-gradient(135deg, rgba(0, 39, 89, .96), rgba(0, 39, 89, .88));
    color: #fff;
}

.contact-form-box {
    width: 62%;
    padding: 46px 44px;
}

/* ==============================
   Left Contact Info
============================== */

.contact-title {
    margin-bottom: 34px;
}

.contact-title em,
.contact-form-title em,
.contact-map-title em {
    display: block;
    margin-bottom: 10px;
    font-style: normal;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-title em {
    color: rgba(255, 255, 255, .72);
}

.contact-title h1 {
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.35;
    color: #fff;
    font-weight: 700;
}

.contact-title p {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .84);
}

.contact-info-list {
    margin-top: 34px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.contact-info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    margin-right: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.contact-info-text {
    flex: 1;
    min-width: 0;
}

.contact-info-text h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
    font-weight: 600;
}

.contact-info-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .84);
    word-break: break-all;
}

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

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

.contact-form-title em,
.contact-map-title em {
    color: #002759;
}

.contact-form-title h2,
.contact-map-title h2 {
    margin: 0 0 12px;
    padding-left: 18px;
    position: relative;
    font-size: 30px;
    line-height: 1.35;
    color: #222;
    font-weight: 700;
}

.contact-form-title h2:before,
.contact-map-title h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 26px;
    background: #002759;
    border-radius: 4px;
}

.contact-form-title p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

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

.contact-form {
    width: 100%;
}

.contact-form-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.contact-form-item {
    width: 50%;
    position: relative;
}

.contact-form-item.width-full {
    width: 100%;
}

.contact-form-item label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    font-weight: 600;
}

.contact-input-wrap {
    position: relative;
    width: 100%;
}

.contact-input-wrap > i {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 2;
    color: #9aa2b8;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%);
    transition: all .3s ease;
}

.contact-textarea-wrap > i {
    top: 18px;
    transform: none;
}

.contact-form-item input,
.contact-form-item textarea {
    display: block;
    width: 100%;
    border: 1px solid #e3e9ef;
    outline: none;
    background: #f7f9fb;
    color: #333;
    font-size: 15px;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all .3s ease;
}

.contact-form-item input {
    height: 48px;
    line-height: 48px;
    padding: 0 16px 0 46px;
}

.contact-form-item textarea {
    height: 138px;
    padding: 14px 16px 14px 46px;
    line-height: 1.7;
    resize: none;
}

.contact-form-item input::-webkit-input-placeholder,
.contact-form-item textarea::-webkit-input-placeholder {
    color: #aaa;
}

.contact-form-item input:-moz-placeholder,
.contact-form-item textarea:-moz-placeholder {
    color: #aaa;
}

.contact-form-item input::-moz-placeholder,
.contact-form-item textarea::-moz-placeholder {
    color: #aaa;
}

.contact-form-item input:-ms-input-placeholder,
.contact-form-item textarea:-ms-input-placeholder {
    color: #aaa;
}

.contact-input-wrap:focus-within > i {
    color: #002759;
}

.contact-form-item input:focus,
.contact-form-item textarea:focus {
    border-color: #002759;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 39, 89, .1);
}

/* error */
.contact-form-item.error input,
.contact-form-item.error textarea {
    border-color: #e53935;
    background: #fffafa;
}

.contact-form-item.error .contact-input-wrap > i {
    color: #e53935;
}

.contact-form-error {
    display: none;
    margin-top: 7px;
    color: #e53935;
    font-size: 13px;
    line-height: 1.4;
}

.contact-form-item.error .contact-form-error {
    display: block;
}

/* submit */
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    height: 52px;
    border: 0;
    outline: none;
    border-radius: 52px;
    background: linear-gradient(135deg, #002759, #002759);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .35s ease;
}

.contact-submit-btn i {
    margin-right: 9px;
    font-size: 15px;
    line-height: 1;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #001b3f, #001b3f);
    box-shadow: 0 10px 26px rgba(0, 39, 89, .28);
    transform: translateY(-2px);
}

.contact-submit-btn.disabled,
.contact-submit-btn:disabled {
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

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

.contact-map-box {
    margin-top: 36px;
    padding: 42px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 39, 89, .08);
    box-sizing: border-box;
}

.contact-map-title {
    margin-bottom: 28px;
}

.contact-map {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #e9eff4;
}

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

/* =========================================================
   Popup / Loading
========================================================= */

.contact-pop-mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99990;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .48);
}

.contact-pop {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 99991;
    width: 380px;
    padding: 34px 32px 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    transform: translate(-50%, -50%);
    text-align: center;
    box-sizing: border-box;
}

.contact-pop-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(0, 39, 89, .1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-pop-icon span {
    display: block;
    width: 24px;
    height: 24px;
    position: relative;
}

.contact-pop-icon span:before,
.contact-pop-icon span:after {
    content: "";
    position: absolute;
    background: #002759;
    border-radius: 2px;
}

.contact-pop-icon span:before {
    left: 11px;
    top: 3px;
    width: 3px;
    height: 14px;
}

.contact-pop-icon span:after {
    left: 11px;
    bottom: 3px;
    width: 3px;
    height: 3px;
}

.contact-pop.success .contact-pop-icon {
    background: rgba(22, 163, 74, .1);
}

.contact-pop.success .contact-pop-icon span:before {
    left: 6px;
    top: 11px;
    width: 11px;
    height: 3px;
    background: #16a34a;
    transform: rotate(45deg);
}

.contact-pop.success .contact-pop-icon span:after {
    left: 12px;
    top: 8px;
    width: 18px;
    height: 3px;
    background: #16a34a;
    transform: rotate(-45deg);
}

.contact-pop.error .contact-pop-icon {
    background: rgba(229, 57, 53, .1);
}

.contact-pop.error .contact-pop-icon span:before,
.contact-pop.error .contact-pop-icon span:after {
    left: 11px;
    top: 4px;
    width: 3px;
    height: 20px;
    background: #e53935;
}

.contact-pop.error .contact-pop-icon span:before {
    transform: rotate(45deg);
}

.contact-pop.error .contact-pop-icon span:after {
    transform: rotate(-45deg);
}

.contact-pop-text h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.4;
    color: #222;
    font-weight: 700;
}

.contact-pop-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.contact-pop-close {
    margin-top: 24px;
    width: 120px;
    height: 42px;
    border: 0;
    outline: none;
    border-radius: 42px;
    background: linear-gradient(135deg, #002759, #002759);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all .3s ease;
}

.contact-pop-close:hover {
    background: linear-gradient(135deg, #001b3f, #001b3f);
}

/* loading */
.contact-loading {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99992;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .45);
}

.contact-loading-box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 210px;
    padding: 28px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .18);
    transform: translate(-50%, -50%);
    text-align: center;
    box-sizing: border-box;
}

.contact-loading-box span {
    display: block;
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid rgba(0, 39, 89, .15);
    border-top-color: #002759;
    animation: contactLoading 1s linear infinite;
}

.contact-loading-box p {
    margin: 0;
    font-size: 15px;
    color: #333;
}

@keyframes contactLoading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}