/* v2-only overrides — không đụng main.css/commont.css/home.css của v1 */

/* Popup đăng ký ở cover: dịch khung lên cao hơn 1 chút (chỉ desktop, mobile giữ giữa màn hình để không đè header) */
@media (min-width: 768px) {
    #popup-form .component-inner {
        top: 38%;
    }
}

/* Popup đăng ký: nâng cấp UX/visual để tăng tỉ lệ điền form — nội dung giữ nguyên, chỉ chỉnh style */
#popup-form { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#popup-form.open .component-inner { animation: popup-pop-in .35s ease; }
@keyframes popup-pop-in {
    from { opacity: 0; transform: translateY(-50%) scale(.94); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

#popup-form .component-inner .component-info {
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(240,196,138,.3);
}

/* Popup rộng hơn để nội dung 2 cột thoáng, không bị bể chữ */
@media (min-width: 768px) {
    #popup-form .component-inner { width: 720px; }
}

/* Panel trái: nền gradient maroon thương hiệu, logo Sun Group là điểm nhấn to rõ giữa panel */
#popup-form .component-inner .component-info .form-contact .group-heading {
    background: linear-gradient(160deg, #6b1420 0%, #4a0e18 100%);
    max-width: unset;
    padding: 44px 32px;
}
#popup-form .component-inner .component-info .form-contact .group-heading .logo {
    width: 220px;
    height: 220px;
    padding: 14px;
    border: 3px solid rgba(240,196,138,.55);
    box-shadow: 0 0 0 8px rgba(240,196,138,.12), 0 0 50px rgba(240,196,138,.28);
    margin-bottom: 22px;
}
#popup-form .component-inner .component-info .form-contact .group-heading .description p {
    color: #f0c48a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 13px;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 18px;
}
#popup-form .component-inner .component-info .form-contact .group-heading .description p::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 36px;
    height: 2px;
    background: rgba(240,196,138,.4);
}
#popup-form .component-inner .component-info .form-contact .group-heading .description ul li {
    margin-bottom: 16px;
}
#popup-form .component-inner .component-info .form-contact .group-heading .description ul li:last-child {
    margin-bottom: 0;
}
/* .contact-item (địa chỉ) và <a> (đt/email) đều thành hàng ngang icon + chữ, chữ được phép xuống dòng thay vì tràn ra ngoài panel */
#popup-form .component-inner .component-info .form-contact .group-heading .description ul li .contact-item,
#popup-form .component-inner .component-info .form-contact .group-heading .description ul li > a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    color: #f5e6d3;
}
#popup-form .component-inner .component-info .form-contact .group-heading .description ul li .text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    padding-top: 5px;
}
#popup-form .component-inner .component-info .form-contact .group-heading .icon {
    color: #f0c48a;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(240,196,138,.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Panel phải: form nổi bật hơn, input/nút to tay, focus rõ ràng */
#popup-form .component-inner .component-info .form-contact .group-form {
    background: #fffaf3;
    padding: 48px 34px;
}
#popup-form .component-inner .component-info .form-contact .group-form .title {
    font-size: 19px;
    font-weight: 800;
    color: #4a0e18;
    position: relative;
    padding-bottom: 16px;
}
#popup-form .component-inner .component-info .form-contact .group-form .title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #c17a3f, #f0c48a);
}
#popup-form .form-home__contact-wrap .form-group input {
    border: 1.5px solid #e4d3bd;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
#popup-form .form-home__contact-wrap .form-group input:focus {
    border-color: #c17a3f;
    box-shadow: 0 0 0 4px rgba(193,122,63,.15);
}
#popup-form .form-home__contact-submit button {
    background: linear-gradient(90deg, #f0c48a, #c17a3f);
    color: #4a0e18;
    font-weight: 800;
    font-size: 16px;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(193,122,63,.4);
    transition: transform .2s ease, box-shadow .2s ease;
}
#popup-form .form-home__contact-submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(193,122,63,.5);
}
/* fix: quote text trắng trên nền cream bị mất chữ */
#popup-form .form-home__contact-submit .quote { color: #8a5a3a; }

#popup-form .component-inner .close-button {
    background-color: rgba(20,4,7,.6);
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* Widget nổi góc phải: đổi màu theo brand maroon/gold, icon nút bảng giá */
#phone-vr .phone-vr-circle-fill { background-color: rgba(34, 139, 34, .75); box-shadow: 0 0 0 0 #228b22; }
#phone-vr .phone-vr-img-circle { background-color: #228b22; }

#zalo-vr .phone-vr-circle-fill { background-color: rgba(0, 104, 255, .7); box-shadow: 0 0 0 0 #0068ff; }
#zalo-vr .phone-vr-img-circle { background-color: #0068ff; }

#download-vr .phone-vr-img-circle { background-color: #c17a3f; }
#download-vr .phone-vr-img-circle i { color: #fff; font-size: 20px; line-height: 40px; }

/* Hero cover mới: full-bleed toàn cảnh đêm, panel kính mờ (glass) */
.hero-content.hero-content--glass {
    display: inline-block;
    max-width: 560px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 196, 138, .28);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    color: #2b0810;
}
.hero-content.hero-content--glass .hero-title { color: #6b1420; }
.hero-content.hero-content--glass .hero-desc { color: #4a0e18; }
@media (max-width: 767px) {
    .hero-content.hero-content--glass {
        display: block;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 420px;
        padding: 42px 24px;
        border-radius: 16px;
    }
}
@media (min-width: 768px) {
    .hero-content.hero-content--glass { left: 55%; right: auto; transform: translate(-50%, -13vh); }
}

/* Bản đồ full-bleed trong mục vị trí — kéo edge-to-edge, thoát .container */
.map-full-bleed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    margin-top: 40px;
}
.map-full-bleed iframe {
    display: block;
    width: 100%;
    height: 640px;
    border: 0;
}
@media (max-width: 767px) {
    .map-full-bleed iframe { height: 420px; }
}

/* Bỏ viền đỏ thừa: padding-bottom của section maroon lộ ra sau media full-bleed */
.section-location-sg { padding-bottom: 0; }
.section-ldc-sg { padding-bottom: 0; }

/* Tour 360 full-bleed trong mục tiến độ — kéo edge-to-edge */
.tour360-full-bleed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 640px;
}
.tour360-full-bleed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 767px) {
    .tour360-full-bleed { height: 380px; }
}

/* Bảng tính lãi vay */
.loan-calc-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 40px 44px;
    box-shadow: 0 20px 60px rgba(74, 14, 24, .12);
}
@media (max-width: 767px) {
    .loan-calc-card { padding: 28px 22px; }
}
.loan-calc-row { margin-bottom: 26px; }
.loan-calc-row:last-of-type { margin-bottom: 0; }
.loan-calc-row-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: .5px;
    color: #6b1420;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.loan-calc-row-label strong { font-size: 18px; color: #4a0e18; }
.loan-calc-row input[type="range"] {
    width: 100%;
    accent-color: #6b1420;
}
.loan-calc-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .loan-calc-2col { grid-template-columns: 1fr; } }
.loan-calc-results {
    background: #f8ede1;
    border-radius: 14px;
    padding: 26px 28px;
    margin-top: 32px;
}
.loan-calc-results-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.loan-calc-results-top p { margin: 0 0 4px; font-size: 12.5px; color: #8a5a3a; }
.loan-calc-results-top h4 { margin: 0; font-size: 22px; color: #4a0e18; font-family: 'Montserrat', sans-serif; }
.loan-calc-results-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(107,20,32,.12); font-size: 14px; color: #4a0e18; }
.loan-calc-results-row.total { font-weight: 700; font-size: 16px; }
.loan-calc-note { font-size: 12px; color: #8a5a3a; margin-top: 18px; }

/* Chính sách bán hàng: bỏ ảnh, dùng nền đỏ, ô chữ nằm giữa section */
.section-csbh-sg { background: var(--bg-sp-m, #4a0e18); padding: 60px 0; }
.section-csbh-sg__right,
.section-csbh-sg .img__list {
    display: none;
}
.section-csbh-sg__left {
    width: min(85%, 900px);
    padding-left: 0;
    margin: 0 auto;
}
.section-csbh-sg__left .inner {
    padding: 32px 56px;
    text-align: center;
    background: transparent;
}
.section-csbh-sg__left .title {
    text-align: center;
}
@media (max-width: 767px) {
    .section-csbh-sg__left { width: 92%; }
    .section-csbh-sg__left .inner { padding: 20px 22px; }
    .section-csbh-sg__left .title { font-size: 20px; }
}

/* Dự toán dòng tiền vay: nền ảnh galaxy4, overlay tối, chữ trắng để đọc rõ */
.section-loan-sg {
    position: relative;
    background: url(../images/examples/galaxy4.webp) center/cover no-repeat;
}
.section-loan-sg:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 4, 7, .88);
}
.section-loan-sg .container { position: relative; z-index: 1; }
.section-loan-sg .title,
.section-loan-sg .text { color: #fff; }

