/* =========================================================
   VINSMARTHOME - CONTACT POPUP
========================================================= */

#lien-he {
    padding: 0 !important;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .28);
    max-height: calc(100vh - 40px);
}

#lien-he .row {
    max-width: none !important;
}



/* =========================================================
   LEFT SIDE
========================================================= */

#lien-he .vsh-popup-info {
    padding: 42px 38px 36px;
    color: #fff;

    background:
        radial-gradient(circle at 10% 10%,
            rgba(255, 255, 255, .16),
            transparent 32%),
        linear-gradient(145deg,
            #163f9c 0%,
            #2459c5 50%,
            #173d92 100%);

    position: relative;
    overflow: hidden;
}


/* decoration */
#lien-he .vsh-popup-info::before {
    content: "";
    position: absolute;

    width: 260px;
    height: 260px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;

    right: -130px;
    top: -90px;
}

#lien-he .vsh-popup-info::after {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    background: rgba(255, 255, 255, .05);
    border-radius: 50%;

    left: -100px;
    bottom: -100px;
}


/* Keep content over decorations */
#lien-he .vsh-popup-info>* {
    position: relative;
    z-index: 2;
}


/* Badge */
.vsh-popup-badge {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 5px 12px;

    border-radius: 30px;

    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);

    color: #fff;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;

    margin-bottom: 20px;
}


/* Title */
#lien-he .vsh-popup-info-title {
    color: #fff;
    font-size: 1.5em;
    line-height: 1.25;
    font-weight: 700;

    margin: 0 0 14px;
}


/* Description */
#lien-he .vsh-popup-info-desc {
    color: rgba(255, 255, 255, .82);

    font-size: 14px;
    line-height: 1.65;

    margin-bottom: 28px;
}


/* Benefits */
.vsh-popup-benefits {
    display: flex;
    flex-direction: column;
    gap: 18px;

    margin-bottom: 30px;
}


.vsh-popup-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}


.vsh-popup-benefit-icon {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);

    color: #fff;

    font-size: 14px;
    font-weight: 700;
}


.vsh-popup-benefit strong {
    display: block;

    color: #fff;

    font-size: 14px;
    line-height: 1.35;

    margin-bottom: 3px;
}


.vsh-popup-benefit small {
    display: block;

    color: rgba(255, 255, 255, .68);

    font-size: 12px;
    line-height: 1.45;
}


/* Hotline */
.vsh-popup-hotline {
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, .18);

    display: flex;
    flex-direction: column;
    gap: 4px;
}


.vsh-popup-hotline span {
    color: rgba(255, 255, 255, .65);

    font-size: 12px;
}


.vsh-popup-hotline a {
    color: #fff;

    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}


.vsh-popup-hotline a:hover {
    color: #fff;
    opacity: .85;
}


/* =========================================================
   RIGHT SIDE
========================================================= */

#lien-he .vsh-popup-form-col {
    padding: 38px 40px 30px;
    background: #fff;
}


/* Heading */
.vsh-popup-form-heading {
    margin-bottom: 22px;
}


.vsh-popup-form-kicker {
    display: block;

    color: #2f5dcc;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;

    margin-bottom: 8px;
}


#lien-he .vsh-popup-form-heading h3 {
    color: #172033;

    font-size: 25px;
    line-height: 1.3;

    margin: 0 0 8px;
}


#lien-he .vsh-popup-form-heading p {
    color: #687083;

    font-size: 13px;
    line-height: 1.55;

    margin: 0;
}


/* =========================================================
   FORM
========================================================= */

.vsh-contact-form {
    margin: 0;
}


.vsh-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}


.vsh-form-group {
    margin-bottom: 15px;
}

.wpcf7 .vsh-form-group p {
    margin-bottom: 0 !important;
}




.vsh-form-group label {
    display: block;

    color: #283142;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;

    margin-bottom: 6px;
}


.vsh-form-group label span {
    color: #e44242;
}

#lien-he .wpcf7-not-valid-tip {
    display: none !important;
}


#lien-he input[type="text"],
#lien-he input[type="email"],
#lien-he input[type="tel"],
#lien-he select,
#lien-he textarea {
    width: 100%;

    margin: 0;

    color: #222b3d;
    background: #f8f9fc;

    border: 1px solid #dfe3eb;
    border-radius: 9px;

    box-shadow: none;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


#lien-he input[type="text"],
#lien-he input[type="email"],
#lien-he input[type="tel"],
#lien-he select {
    height: 46px;
    padding: 0 13px;
}


#lien-he textarea {
    min-height: 86px;
    max-height: 130px;

    padding: 11px 13px;

    resize: vertical;
}


#lien-he input:focus,
#lien-he select:focus,
#lien-he textarea:focus {
    outline: none;

    background: #fff;

    border-color: #315dcc;

    box-shadow:
        0 0 0 3px rgba(49, 93, 204, .10);
}


#lien-he input::placeholder,
#lien-he textarea::placeholder {
    color: #a3a9b4;
}


/* Submit */
#lien-he .vsh-form-submit {
    position: relative;
    margin-top: 5px;
}


#lien-he .vsh-form-submit input[type="submit"] {
    width: 100%;
    height: 48px;

    margin: 0;

    border: 0;
    border-radius: 9px;

    background: linear-gradient(135deg,
            #315fce 0%,
            #214db7 100%);

    color: #fff;

    font-size: 13px;
    font-weight: 400;
    letter-spacing: .3px;

    box-shadow: 0 7px 18px rgba(37, 82, 190, .20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}


#lien-he .vsh-form-submit input[type="submit"]:hover {
    transform: translateY(-1px);

    box-shadow: 0 10px 24px rgba(37, 82, 190, .27);
}


/* CF7 spinner */
#lien-he .wpcf7-spinner {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    margin: 0 !important;
}


/* CF7 response */
#lien-he .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 9px 12px;

    border-radius: 7px;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   DIVIDER
========================================================= */

.vsh-popup-or {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 20px 0 14px;

    color: #8b93a3;

    font-size: 11px;
}


.vsh-popup-or::before,
.vsh-popup-or::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #e7e9ef;
}


/* =========================================================
   DIRECT CONTACT
========================================================= */

.vsh-popup-contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}


.vsh-popup-contact-btn {
    min-height: 58px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 12px;

    border: 1px solid #e0e4eb;
    border-radius: 9px;

    background: #fff;

    text-decoration: none;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.vsh-popup-contact-btn:hover {
    transform: translateY(-2px);

    border-color: #cbd5e8;

    box-shadow: 0 7px 18px rgba(28, 45, 80, .08);
}


.vsh-popup-contact-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #eff4ff;

    color: #2e5ccc;

    font-size: 15px;
    font-weight: 700;
}


.vsh-popup-contact-btn small {
    display: block;

    color: #8a92a1;

    font-size: 10px;
    line-height: 1.2;

    margin-bottom: 2px;
}


.vsh-popup-contact-btn strong {
    display: block;

    color: #252c3a;

    font-size: 13px;
    line-height: 1.25;
}


.vsh-popup-privacy {
    margin: 14px 0 0;

    text-align: center;

    color: #9aa1ad;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.mfp-content #lien-he .mfp-close {
    top: 12px !important;
    right: 12px;

    width: 36px;
    height: 36px;

    line-height: 36px;

    border-radius: 50%;

    color: #515969;

    opacity: 1;

    font-size: 26px;

    transition:
        background .2s ease,
        transform .2s ease;
}


.mfp-content #lien-he .mfp-close:hover {
    transform: rotate(90deg);
}


/* overlay */
.mfp-bg {
    background: #0d1422;
}

.mfp-bg.mfp-ready {
    opacity: .74;
}


/* =========================================================
   ANIMATION
========================================================= */

.mfp-wrap .mfp-content #lien-he {
    opacity: 0;
    transform: translateY(15px) scale(.98);

    transition:
        opacity .22s ease,
        transform .22s ease;
}


.mfp-wrap.mfp-ready .mfp-content #lien-he {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vsh-contact-mfp .vsh-form-group label {
    display: none;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 849px) {

    .vsh-popup-form-heading {
        margin-bottom: 10px;
    }

    .vsh-contact-mfp .mfp-content {
        vertical-align: top;
    }

    .vsh-contact-mfp .wpcf7-form-control-wrap {
        margin-top: 0;
    }

    #lien-he {
        height: calc(100vh - 126px);
        overflow-y: auto;
    }

    #lien-he .vsh-popup-info {
        padding: 28px 26px;
    }



    #lien-he .vsh-popup-info-desc {
        margin-bottom: 18px;
    }

    #lien-he .vsh-popup-benefits {
        display: none;
    }

    #lien-he .vsh-popup-hotline {
        padding-top: 15px;
    }

    #lien-he .vsh-popup-hotline a {
        font-size: 19px;
    }

}


@media (max-width: 549px) {

    #lien-he {
        border-radius: 14px;
    }

    #lien-he .vsh-popup-info {
        padding: 22px 20px 20px;
    }

    .vsh-popup-badge {
        margin-bottom: 10px;
    }

    #lien-he .vsh-popup-info-title {
        margin-bottom: 7px;
    }

    #lien-he .vsh-popup-info-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }

    #lien-he .vsh-popup-hotline {
        padding-top: 10px;
    }


    #lien-he .vsh-popup-form-heading h3 {
        font-size: 21px;
    }

    .vsh-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vsh-popup-contact-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .vsh-popup-contact-btn {
        min-height: 54px;
        padding: 8px 9px;
    }

    .vsh-popup-contact-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .vsh-popup-contact-btn strong {
        font-size: 11px;
    }

    #lien-he .mfp-close {
        top: 8px;
        right: 8px;
    }
}


/* =========================================================
   VSH CONTACT FORM - IMAGE UPLOAD ONLY
   Scope riêng phần hình ảnh
========================================================= */

.vsh-form-images {
    margin-top: 4px;
}

.vsh-form-images>label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vsh-form-images>label small {
    color: var(--vsh-text-muted, #607086);
    font-size: 13px;
    font-weight: 400;
}

.vsh-image-upload {
    width: 100%;
    margin-top: 8px;
}

.vsh-image-inputs {
    display: none !important;
}

.vsh-image-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-height: 76px;
    padding: 10px 14px;
    background: var(--vsh-blue-soft, #f9fbff);
    border: 1px dashed var(--vsh-border-hover, #bfd0e4);
    border-radius: 10px;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.vsh-image-dropzone:hover,
.vsh-image-dropzone.is-dragover {
    background: #f4f8fd;
    border-color: var(--vsh-blue, var(--primary-color));
    box-shadow: var(--vsh-focus-ring, 0 0 0 3px rgba(25, 85, 181, .10));
}

.vsh-image-upload-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 11px !important;
    min-width: 0 !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--vsh-heading, #172033) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}

.vsh-image-upload-trigger:hover,
.vsh-image-upload-trigger:focus {
    color: var(--vsh-heading, #172033) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.vsh-image-upload-trigger:focus-visible {
    outline: 2px solid var(--vsh-blue, var(--primary-color));
    outline-offset: 4px;
}

.vsh-image-upload-trigger:disabled {
    opacity: .5;
    cursor: default;
}

.vsh-image-upload-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--vsh-blue, var(--primary-color));
    background: #fff;
    border: 1px solid var(--vsh-border, #e5ebf2);
    border-radius: 9px;
    box-shadow: var(--vsh-shadow-sm, 0 2px 6px rgba(16, 48, 90, .04));
}

.vsh-image-upload-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vsh-image-upload-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vsh-image-upload-copy strong {
    color: var(--vsh-heading, #172033);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.vsh-image-upload-copy small {
    color: var(--vsh-text-muted, #607086);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.vsh-image-upload-limit {
    flex: 0 0 auto;
    color: var(--vsh-text-muted, #607086);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    text-align: right;
}

.vsh-image-preview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.vsh-image-preview:empty {
    display: none;
}

.vsh-image-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    min-width: 0;
    background: var(--vsh-bg-soft, #f8fafc);
    border: 1px solid var(--vsh-border, #e5ebf2);
    border-radius: 9px;
    box-shadow: var(--vsh-shadow-sm, 0 2px 6px rgba(16, 48, 90, .04));
    overflow: hidden;
}

.vsh-image-preview-item img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.vsh-image-preview-remove {
    position: absolute;
    z-index: 2;
    top: 6px;
    right: 6px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    background: rgba(11, 41, 77, .82) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .16) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-transform: none !important;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.vsh-image-preview-remove:hover {
    background: rgba(11, 41, 77, .96) !important;
    transform: none !important;
}

.vsh-image-preview-index {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    color: #fff;
    background: rgba(11, 41, 77, .78);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.vsh-image-upload-error {
    margin: 8px 0 0 !important;
    color: #c62828;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 849px) {
    .vsh-image-dropzone {
        align-items: flex-start;
        flex-direction: column;
    }

    .vsh-image-upload-limit {
        padding-left: 53px;
        text-align: left;
    }

    .vsh-image-preview {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 549px) {
    .vsh-image-dropzone {
        padding: 12px;
    }

    .vsh-image-upload-limit {
        padding-left: 0;
    }

    .vsh-image-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #lien-he input[type="text"],
    #lien-he input[type="email"],
    #lien-he input[type="tel"],
    #lien-he select {
        height: 40px;
        padding: 0 10px;
        font-size: 13px;
    }

    #lien-he .vsh-popup-form-col {
        padding: 25px 32px 25px;
    }

    #lien-he {
        height: calc(100dvh - 126px);
    }

    .vsh-contact-mfp .mfp-container {
        padding: 32px 15px;
    }
}