/* 
    MONREI SAIGON - Premium Landing Page Design
    Author: Antigravity
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --primary: #CDA26E;
    --primary-light: #E6C18D;
    --secondary: #0B265D;
    --secondary-dark: #051636;
    --bg: #F8F9FA;
    --text: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(11, 38, 93, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.header-cta .btn {
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(205, 162, 110, 0.3);
}

.header-cta .btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 162, 110, 0.4);
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(5, 22, 54, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    width: min(86vw, 360px);
    height: 100vh;
    padding: 22px;
    background: var(--secondary-dark);
    color: var(--white);
    box-shadow: -18px 0 45px rgba(0,0,0,0.24);
    transform: translateX(100%);
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.mobile-sidebar-logo img {
    height: 54px;
    display: block;
}

.mobile-menu-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-sidebar-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: var(--transition);
}

.mobile-sidebar-nav a:hover {
    color: var(--primary-light);
    padding-left: 10px;
}

.mobile-sidebar-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding: 14px 18px;
    border-radius: 50px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(205, 162, 110, 0.24);
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.mobile-menu-open .mobile-sidebar {
    transform: translateX(0);
    visibility: visible;
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('image/banner.jpg');
    background-size: cover;
    background-position: left;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-weight: 300;
    animation: fadeInUp 1.2s ease-out;
}

.hero .hero-price {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 430px;
    margin-bottom: 30px;
    padding: 18px 42px 20px;
    background: transparent;
    border: 2px solid #f4c35f;
    border-radius: 22px;
    color: var(--white);
    box-shadow: 0 18px 45px rgba(0,0,0,0.22), inset 0 0 20px rgba(255,255,255,0.08);
    overflow: hidden;
    animation: fadeInUp 1.3s ease-out;
}

.hero .hero-price::before,
.hero .hero-price::after {
    content: "";
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
    filter: blur(0.2px);
}

.hero .hero-price::before {
    top: 0;
    right: 50px;
    width: 120px;
}

.hero .hero-price::after {
    bottom: 0;
    left: 40px;
    width: 110px;
}

.hero-price-label {
    display: block;
    margin-bottom: 2px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.hero-price-main {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 0.95;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.hero-price-main strong {
    color: #f7b44a;
    font-size: 96px;
    line-height: 0.78;
    text-shadow: 0 3px 0 #8b4c18, 0 9px 18px rgba(0,0,0,0.38);
}

.hero .btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.4s ease-out;
}

.hero .cta-urgency {
    margin-top: 16px;
    margin-bottom: 0;
    color: rgba(255,255,255,0.86);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    animation: fadeInUp 1.5s ease-out;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border: 1px solid var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

/* --- Section General --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-title .divider {
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
}

/* --- Overview --- */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-text h3 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.overview-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.stat-item h4 {
    font-size: 36px;
    color: var(--secondary);
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 15px;
    font-size: 14px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

/* Project Info Table */
.project-info-table {
    margin-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 14px;
}

.info-value {
    color: var(--text-muted);
    font-size: 14px;
    text-align: right;
}

/* Why Choose Section */
.why-choose {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg);
    border-radius: 15px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Amenities --- */
.amenities {
    background: var(--secondary);
    color: var(--white);
}

.amenities .section-title h2 {
    color: var(--white);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.amenity-card {
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.amenity-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-10px);
}

.amenity-img {
    height: 200px;
    overflow: hidden;
}

.amenity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.amenity-card:hover .amenity-img img {
    transform: scale(1.1);
}

.amenity-info {
    padding: 24px;
    text-align: left;
}

.amenity-info h4 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
}

.amenity-info p {
    font-size: 14px;
    opacity: 0.8;
}

/* Infrastructure */
.infrastructure {
    background-color: var(--bg);
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.infra-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.infra-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.infra-img {
    height: 180px;
    overflow: hidden;
}

.infra-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.infra-text {
    padding: 25px;
}

.infra-text h4 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 18px;
}

.infra-text p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Floorplans & Products */
.floor-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--text-muted);
}

.floor-subtitle {
    margin-bottom: 34px;
    text-align: center;
}

.floor-subtitle h3 {
    color: var(--secondary);
    font-size: 34px;
    text-transform: uppercase;
}

.floor-subtitle .divider {
    margin: 14px auto 0;
}

.floorplan-tabs {
    margin-bottom: 70px;
}

.floorplan-tabs h3 {
    margin-bottom: 16px;
    color: var(--secondary-dark);
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.floorplan-tab-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.floorplan-tab {
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.floorplan-tab:hover {
    color: var(--secondary);
    background: rgba(205, 162, 110, 0.12);
}

.floorplan-tab.is-active {
    background: #a76528;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(167, 101, 40, 0.25);
}

.floorplan-tab-panels {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    overflow: hidden;
}

.floorplan-tab-panel {
    display: none;
    padding: 18px;
}

.floorplan-tab-panel.is-active {
    display: block;
}

.floorplan-tab-panel img {
    display: block;
    width: 100%;
    max-height: 760px;
    object-fit: contain;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.product-img {
    height: 240px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 30px;
}

.product-info h4 {
    color: var(--secondary);
    font-size: 20px;
    margin-bottom: 15px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.btn-sm {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-sm:hover {
    background: var(--primary);
    color: var(--white);
}

/* Gallery */
.gallery {
    background-color: var(--secondary-dark);
    color: var(--white);
}

.gallery .section-title h2 {
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(30%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.gallery-cta {
    margin-top: 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
    }
}
.location-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.location-details {
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.location-item {
    margin-bottom: 30px;
}

.location-item h5 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    min-height: 450px;
}

/* Legal Documents */
.legal-documents {
    background: var(--secondary-dark);
    color: var(--white);
}

.legal-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
    gap: 36px;
    align-items: stretch;
}

.legal-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
}

.legal-kicker {
    margin-bottom: 16px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.legal-copy h2 {
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1.15;
}

.legal-copy p {
    color: rgba(255,255,255,0.72);
    font-size: 15px;
}

.legal-cta {
    width: fit-content;
    margin-top: 30px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: var(--transition);
}

.legal-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.legal-doc {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 76px;
    padding: 16px 18px;
    border: 1px solid rgba(11, 38, 93, 0.08);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.legal-doc:hover {
    border-color: rgba(205, 162, 110, 0.45);
    background: #fbf8f3;
    transform: translateX(6px);
}

.legal-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 38px;
    border-radius: 10px;
    background: rgba(205, 162, 110, 0.16);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.legal-title {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.legal-doc i {
    color: var(--primary);
    font-size: 16px;
}

/* --- Contact --- */
.contact {
    background: url('image/bg-monrei-saigon.jpg');
    background-size: cover;
    position: relative;
}

.contact-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 38, 93, 0.9);
}

.contact .container {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.contact-form-image {
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
}

.contact-form-image img {
    display: block;
    width: 100%;
    height: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.is-hidden-field {
    display: none;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    color: var(--white);
    font-family: inherit;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: none;
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.form-urgency {
    margin-top: 14px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    text-align: center;
}

.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.contact-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 22, 54, 0.72);
    backdrop-filter: blur(6px);
}

.contact-popup-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(11, 38, 93, 0.94);
    color: var(--white);
    box-shadow: 0 24px 70px rgba(0,0,0,0.34);
    transform: translateY(24px) scale(0.98);
    transition: var(--transition);
}

.contact-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-popup-close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.contact-popup .section-title {
    margin-bottom: 24px;
    padding: 0 34px;
}

.contact-popup .section-title h2 {
    font-size: 34px;
}

.contact-popup-form {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
}

body.contact-popup-open {
    overflow: hidden;
}

body.contact-popup-open .contact-popup {
    opacity: 1;
    visibility: visible;
}

body.contact-popup-open .contact-popup-dialog {
    transform: translateY(0) scale(1);
}

/* --- Footer --- */
footer {
    background: var(--secondary-dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Fixed Contact --- */
.fixed-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    position: relative;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(205, 162, 110, 0.7);
    animation: ripple 2s infinite;
}

.contact-btn.zalo::before {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(205, 162, 110, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(205, 162, 110, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(205, 162, 110, 0);
    }
}

.contact-btn.zalo::before {
    animation: ripple-zalo 2s infinite;
}

@keyframes ripple-zalo {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

.contact-btn img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.contact-btn.call {
    background: var(--primary);
}

.contact-btn.zalo {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
}

.contact-btn:hover {
    transform: scale(1.1);
}

/* Ringing Animation */
.ring-anim {
    animation: ring 1.2s infinite;
}

@keyframes ring {
    0% { transform: scale(1) rotate(0); }
    10% { transform: scale(1.1) rotate(-10deg); }
    20% { transform: scale(1.1) rotate(10deg); }
    30% { transform: scale(1.1) rotate(-10deg); }
    40% { transform: scale(1.1) rotate(10deg); }
    50% { transform: scale(1) rotate(0); }
    100% { transform: scale(1) rotate(0); }
}

/* --- Mobile --- */
@media (max-width: 992px) {
    .overview-grid, .location-content, .footer-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .floorplan-tab-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .floorplan-tab {
        flex: 0 0 auto;
    }

    .legal-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .hero .hero-price {
        min-width: 0;
        width: 100%;
        max-width: 360px;
        padding: 14px 24px 16px;
        border-radius: 18px;
    }

    .hero-price-label {
        font-size: 18px;
    }

    .hero-price-main {
        gap: 10px;
        font-size: 22px;
    }

    .hero-price-main strong {
        font-size: 70px;
    }
    
    .hero .btn-group {
        flex-direction: column;
        gap: 15px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
        line-height: 1.35;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .floorplan-tabs h3 {
        font-size: 22px;
    }

    .floorplan-tab-panel {
        padding: 10px;
    }

    .floor-subtitle h3 {
        font-size: 28px;
    }

    .legal-copy {
        padding: 28px;
    }

    .legal-copy h2 {
        font-size: 30px;
    }

    .legal-list {
        padding: 10px;
    }

    .legal-doc {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        min-height: 0;
        padding: 14px;
    }

    .legal-doc i {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 14px 0;
    }

    header.scrolled {
        padding: 8px 0;
    }

    .logo img {
        height: 52px;
    }

    .header-cta {
        display: none;
    }

    .mobile-sidebar {
        width: min(90vw, 340px);
        padding: 20px;
    }

    .contact-popup {
        padding: 14px;
    }

    .contact-popup-dialog {
        max-height: calc(100vh - 28px);
        padding: 26px 18px 22px;
        border-radius: 16px;
    }

    .contact-popup-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .contact-popup .section-title {
        margin-bottom: 18px;
        padding: 0 34px 0 0;
    }

    .contact-popup .section-title h2 {
        font-size: 26px;
    }
}
