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

.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: #06182b;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.contact-content h3 {
    margin: 24px 0 6px;
    color: #06182b;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}

.contact-content h4 {
    margin: 20px 0 6px;
    color: #06182b;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.contact-content p {
    margin: 0 0 12px;
    color: #111827;
    font-size: 15px;
    line-height: 1.65;
}

.contact-content a {
    color: #2651b5;
    text-decoration: underline;
}

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

.contact-form-wrap {
    width: 100%;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 14px 42px rgba(36, 50, 79, .12);
    padding: 28px 32px;
    box-sizing: border-box;
}

.contact-form {
    width: 100%;
}

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

.contact-form-title h3 {
    margin: 0 0 6px;
    color: #06182b;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.contact-form-title p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

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

.contact-form-row {
    width: 100%;
    margin-bottom: 13px;
}

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

.contact-form-row.half {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-form-row.half > div {
    min-width: 0;
}

.contact-form-row label {
    display: block;
    margin-bottom: 5px;
    color: #06182b;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.contact-form-row label span {
    color: red;
}

.contact-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d9dde5;
    border-radius: 9px;
    background-color: #fff;
    color: #111827;
    font-size: 14px;
    line-height: 46px;
    outline: none;
    box-sizing: border-box;
    transition: all .25s ease;
}

select.contact-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #24324f 50%),
                      linear-gradient(135deg, #24324f 50%, transparent 50%);
    background-position: calc(100% - 21px) 19px, calc(100% - 15px) 19px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.contact-input:focus {
    border-color: #2651b5;
    box-shadow: 0 0 0 4px rgba(38, 81, 181, .08);
}

.contact-input.error {
    border-color: #e23b3b;
    background: #fffafa;
}

textarea.contact-input {
    height: 105px;
    padding: 11px 14px;
    line-height: 1.5;
    resize: vertical;
}

.contact-form-tip {
    margin: -1px 0 5px;
    color: #111827;
    font-size: 13px;
    line-height: 1.35;
}

/* ==============================
   Contact Type Options
================================= */

.contact-type-row {
    margin-bottom: 15px;
}

.contact-type-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.contact-type-option {
    display: block;
    margin: 0 !important;
    cursor: pointer;
}

.contact-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-type-option span {
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #d9dde5;
    border-radius: 9px;
    background: #fff;
    color: #24324f;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    transition: all .25s ease;
}

.contact-type-option span i {
    flex: 0 0 16px;
    width: 16px;
    color: #2651b5;
    font-size: 14px;
    text-align: center;
    transition: all .25s ease;
}

.contact-type-option:hover span {
    border-color: #2651b5;
    box-shadow: 0 0 0 4px rgba(38, 81, 181, .06);
}

.contact-type-option input:checked + span {
    border-color: #24324f;
    background: #24324f;
    color: #fff;
    box-shadow: 0 10px 24px rgba(36, 50, 79, .16);
}

.contact-type-option input:checked + span i {
    color: #fff;
}

.contact-type-list.error .contact-type-option span {
    border-color: #e23b3b;
    background: #fffafa;
}

/* ==============================
   Checkbox
================================= */

.contact-checkbox {
    margin: 10px 0;
}

.contact-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.contact-checkbox input {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 4px;
}

.contact-checkbox span {
    color: #111827;
    font-size: 13px;
    line-height: 1.45;
}

.contact-checkbox em {
    color: #222e4d;
    font-style: normal;
}

.contact-checkbox.checkbox-error span {
    color: #e23b3b;
}

.privacy-link {
    color: #2651b5;
    text-decoration: underline;
    font-weight: 600;
}

.privacy-link:hover {
    color: #24324f;
}

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

.contact-submit-btn {
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border: none;
    border-radius: 24px;
    background: #333336;
    color: #fff;
    font-size: 15px;
    line-height: 46px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .3s ease;
}

.contact-submit-btn i {
    font-size: 15px;
}

.contact-submit-btn:hover {
    background: #24324f;
    transform: translateY(-2px);
}

.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: #F3F4F6;
    border-radius: 28px;
}

.contact-map-head {
    margin-bottom: 22px;
}

.contact-map-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #2651b5;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.contact-map-head h2 {
    margin: 0;
    color: #06182b;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
}

.contact-map {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 34px rgba(36, 50, 79, .12);
}

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

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

.contact-loading {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(6, 24, 43, .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: #2651b5;
    font-size: 36px;
    margin-bottom: 14px;
}

.contact-loading-box p {
    margin: 0;
    color: #06182b;
    font-size: 15px;
    font-weight: 600;
}

/* ==============================
   Submit Alert Modal
================================= */

.contact-alert-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 24, 43, .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: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-alert-icon i {
    color: #2651b5;
    font-size: 28px;
}

.contact-alert-box.success .contact-alert-icon {
    background: #eff9ea;
}

.contact-alert-box.success .contact-alert-icon i {
    color: #222e4d;
}

.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: #06182b;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;
}

.contact-alert-box p {
    margin: 0 0 22px;
    color: #4b5563;
    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: #24324f;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.contact-alert-box button:hover {
    background: #2651b5;
}

/* ==============================
   Privacy Modal
================================= */

.privacy-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(6, 24, 43, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.privacy-modal-mask.show {
    display: flex;
}

.privacy-modal-box {
    width: 100%;
    max-width: 760px;
    max-height: 86vh;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
    overflow: hidden;
    transform: translateY(16px);
    opacity: 0;
    transition: all .25s ease;
}

.privacy-modal-mask.show .privacy-modal-box {
    transform: translateY(0);
    opacity: 1;
}

.privacy-modal-head {
    padding: 22px 26px;
    background: #24324f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.privacy-modal-head h3 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;
}

.privacy-modal-head h3 i {
    margin-right: 8px;
}

.privacy-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    cursor: pointer;
    transition: all .3s ease;
}

.privacy-close:hover {
    background: #fff;
    color: #24324f;
}

.privacy-modal-content {
    max-height: calc(86vh - 150px);
    padding: 26px;
    overflow-y: auto;
}

.privacy-modal-content h4 {
    margin: 0 0 10px;
    color: #06182b;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.privacy-modal-content p {
    margin: 0 0 20px;
    color: #374151;
    font-size: 15px;
    line-height: 1.75;
}

.privacy-modal-foot {
    padding: 18px 26px 24px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.privacy-modal-foot button {
    min-width: 135px;
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 24px;
    background: #24324f;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.privacy-modal-foot button:hover {
    background: #2651b5;
}

/* ==============================
   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: 22px 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-form-row label {
        font-size: 15px;
    }

    .contact-input {
        height: 50px;
        line-height: 50px;
        border-radius: 10px;
    }

    textarea.contact-input {
        height: 130px;
    }

    select.contact-input {
        background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px;
    }

    .contact-type-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-type-option span {
        min-height: 46px;
        border-radius: 10px;
        font-size: 14px;
    }

    .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;
    }

    .privacy-modal-mask {
        padding: 14px;
    }

    .privacy-modal-box {
        border-radius: 18px;
        max-height: 88vh;
    }

    .privacy-modal-head {
        padding: 18px;
    }

    .privacy-modal-head h3 {
        font-size: 20px;
    }

    .privacy-modal-content {
        padding: 20px 18px;
        max-height: calc(88vh - 140px);
    }

    .privacy-modal-content h4 {
        font-size: 16px;
    }

    .privacy-modal-content p {
        font-size: 14px;
        line-height: 1.7;
    }

    .privacy-modal-foot {
        padding: 16px 18px 20px;
    }

    .privacy-modal-foot button {
        width: 100%;
    }
}