/* ==============================
   Contact Page
   Future Power Color
================================= */

.contact-page {
    padding: 45px 0 60px;
    overflow: visible;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 46px;
    overflow: visible;
}

/* ==============================
   Left Content
================================= */

.contact-content-wrap {
    position: relative;
    overflow: visible;
}

.contact-content {
    position: sticky;
    top: 110px;
    padding: 10px 0;
}

.contact-content h2 {
    margin: 0 0 22px;
    color: #14284b;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 800;
}

.contact-content h3 {
    margin: 24px 0 6px;
    color: #14284b;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
}

.contact-content h4 {
    margin: 20px 0 6px;
    color: #14284b;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
}

.contact-content p {
    margin: 0 0 12px;
    color: #374151;
    font-size: 15px;
    line-height: 1.65;
}

.contact-content a {
    color: #168a3a;
    text-decoration: underline;
}

.contact-content a:hover {
    color: #109bd7;
}

/* ==============================
   Form Box
================================= */

.contact-form-wrap {
    width: 100%;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 18px 48px rgba(16, 36, 58, .11);
    padding: 32px;
    box-sizing: border-box;
    border: 1px solid #e7f2ee;
    position: relative;
    overflow: hidden;
}

.contact-form-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #37b34a 0%, #109bd7 72%, #f6bd16 100%);
}

.contact-form {
    width: 100%;
    position: relative;
    z-index: 2;
}

.contact-form-title {
    margin-bottom: 22px;
}

.contact-form-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #168a3a;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.contact-form-title h3 {
    margin: 0 0 7px;
    color: #14284b;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}

.contact-form-title p {
    margin: 0;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.6;
}

/* ==============================
   Form Row
================================= */

.contact-form-row {
    width: 100%;
    margin-bottom: 16px;
}

.contact-form-row.full {
    width: 100%;
}

.contact-form-row.half {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form-row.half > div {
    min-width: 0;
}

.contact-input {
    display: block;
    width: 100%;
    height: 58px;
    padding: 0 16px;
    border: 1px solid #dfe8ee;
    border-radius: 10px;
    background-color: #fff;
    color: #14284b;
    font-size: 15px;
    line-height: 58px;
    outline: none;
    box-sizing: border-box;
    transition: all .25s ease;
}

.contact-input::placeholder {
    color: #14284b;
    opacity: 1;
}

select.contact-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #9aa3b2 50%),
                      linear-gradient(135deg, #9aa3b2 50%, transparent 50%);
    background-position: calc(100% - 21px) 25px, calc(100% - 15px) 25px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.contact-input:focus {
    border-color: #37b34a;
    box-shadow: 0 0 0 4px rgba(55, 179, 74, .10);
}

.contact-input.error {
    border-color: #e23b3b;
    background: #fffafa;
}

textarea.contact-input {
    height: 100px;
    padding: 16px;
    line-height: 1.55;
    resize: vertical;
}

/* ==============================
   Phone Group
================================= */

.contact-phone-group {
    display: flex;
    width: 100%;
    border: 1px solid #dfe8ee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    transition: all .25s ease;
}

.contact-phone-group:focus-within {
    border-color: #37b34a;
    box-shadow: 0 0 0 4px rgba(55, 179, 74, .10);
}

.contact-phone-code {
    width: 70px;
    height: 58px;
    border: none;
    border-right: 1px solid #dfe8ee;
    outline: none;
    background: #f7fbf8;
    color: #14284b;
    font-size: 15px;
    text-align: center;
    padding: 0 8px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.contact-phone-input {
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    flex: 1;
}

.contact-phone-input:focus {
    border: none;
    box-shadow: none;
}

/* ==============================
   Submit
================================= */

.contact-submit-btn {
    min-width: 166px;
    height: 48px;
    margin: 0 auto;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #14284b;
    font-size: 18px;
    line-height: 48px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    transition: all .3s ease;
    border: 1px dashed #dfe8ee;
    box-shadow: 0 8px 22px rgba(16, 36, 58, .05);
}

.contact-submit-btn i {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #14284b;
    color: #fff;
    font-size: 13px;
    line-height: 19px;
    text-align: center;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #37b34a 0%, #109bd7 82%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(55, 179, 74, .24);
}

.contact-submit-btn:hover i {
    background: #fff;
    color: #168a3a;
}

.contact-submit-btn.disabled,
.contact-submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* ==============================
   Google Map
================================= */

.contact-map-box {
    margin-top: 55px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(55,179,74,.08), rgba(16,155,215,.08));
    border-radius: 28px;
    border: 1px solid #e7f2ee;
}

.contact-map-head {
    margin-bottom: 22px;
}

.contact-map-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #168a3a;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.contact-map-head h2 {
    margin: 0;
    color: #14284b;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 800;
}

.contact-map {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 36, 58, .12);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 420px;
}

/* ==============================
   Loading
================================= */

.contact-loading {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(16, 36, 58, .45);
    display: none;
    align-items: center;
    justify-content: center;
}

.contact-loading.show {
    display: flex;
}

.contact-loading-box {
    min-width: 230px;
    padding: 32px 28px;
    background: #fff;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.contact-loading-box i {
    color: #37b34a;
    font-size: 36px;
    margin-bottom: 14px;
}

.contact-loading-box p {
    margin: 0;
    color: #14284b;
    font-size: 15px;
    font-weight: 700;
}

/* ==============================
   Submit Alert Modal
================================= */

.contact-alert-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(16, 36, 58, .48);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-alert-mask.show {
    display: flex;
}

.contact-alert-box {
    width: 100%;
    max-width: 390px;
    padding: 34px 30px 28px;
    background: #fff;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    transform: translateY(12px);
    opacity: 0;
    transition: all .25s ease;
}

.contact-alert-mask.show .contact-alert-box {
    transform: translateY(0);
    opacity: 1;
}

.contact-alert-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f7fbf8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-alert-icon i {
    color: #168a3a;
    font-size: 28px;
}

.contact-alert-box.success .contact-alert-icon {
    background: #eff9ea;
}

.contact-alert-box.success .contact-alert-icon i {
    color: #168a3a;
}

.contact-alert-box.error .contact-alert-icon {
    background: #fff0f0;
}

.contact-alert-box.error .contact-alert-icon i {
    color: #e23b3b;
}

.contact-alert-box h3 {
    margin: 0 0 10px;
    color: #14284b;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 800;
}

.contact-alert-box p {
    margin: 0 0 22px;
    color: #5b6472;
    font-size: 15px;
    line-height: 1.65;
}

.contact-alert-box button {
    min-width: 120px;
    height: 42px;
    padding: 0 24px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #37b34a 0%, #109bd7 82%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all .3s ease;
}

.contact-alert-box button:hover {
    background: linear-gradient(135deg, #2aa640 0%, #0a8fc9 82%);
}

/* ==============================
   Tablet
================================= */

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        position: static;
        top: auto;
        padding: 0;
    }

    .contact-form-wrap {
        padding: 28px 24px;
    }

    .contact-map-box {
        margin-top: 40px;
    }
}

/* ==============================
   Mobile
================================= */

@media (max-width: 768px) {
    .contact-page {
        padding: 30px 0 42px;
    }

    .contact-content h2 {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .contact-content h3 {
        margin-top: 22px;
        font-size: 17px;
    }

    .contact-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .contact-form-wrap {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .contact-form-title h3 {
        font-size: 24px;
    }

    .contact-form-row {
        margin-bottom: 14px;
    }

    .contact-form-row.half {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-input {
        height: 52px;
        line-height: 52px;
        border-radius: 10px;
    }

    textarea.contact-input {
        height: 130px;
    }

    select.contact-input {
        background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
    }

    .contact-phone-code {
        height: 52px;
    }

    .contact-submit-btn {
        height: 48px;
        line-height: 48px;
    }

    .contact-map-box {
        margin-top: 32px;
        padding: 20px 16px;
        border-radius: 22px;
    }

    .contact-map-head h2 {
        font-size: 24px;
    }

    .contact-map {
        border-radius: 18px;
    }

    .contact-map iframe {
        height: 320px;
    }
}

/* 电话区号加国家简称后，区号下拉宽度要加大 */
.contact-phone-code {
    width: 118px;
    height: 58px;
    border: none;
    border-right: 1px solid #dfe8ee;
    outline: none;
    background: #f7fbf8;
    color: #14284b;
    font-size: 15px;
    text-align: center;
    padding: 0 8px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

@media (max-width: 768px) {
    .contact-phone-code {
        width: 105px;
        height: 52px;
        font-size: 14px;
    }
}