@font-face {
    font-family: 'SVN-Mightiest';
    src: url('../fonts/SVN-Mightiest-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LC-Masterisans';
    src: url('../fonts/LC-Masterisans-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-red-600: #e40014;
    --color-orange-400: #ff8b1a;
    --color-amber-50: #fffbeb;
    --color-yellow-500: #edb200;
    --color-blue-900: #1c398e;
    --color-gray-100: #f3f4f6;
    --color-gray-300: #d1d5dc;
    --color-gray-400: #99a1af;
    --color-gray-700: #364153;
    --color-gray-900: #101828;
    --color-black: #000;
    --color-white: #fff;
    --color-light-bg: #fffdf9;
    /* very soft cream for luxury feel */
    --bg-gradient: linear-gradient(90deg, #eb9f2e -44.09%, #e97d2b -10.6%, #e86428 20.57%, #e75526 48.28%, #e75026 71.38%);
    --bg-gradient-blue: linear-gradient(67.94deg, #2167b1 20.47%, #1f64af 27.84%, #1f60ab 30.79%, #21519a 47.03%, #22468e 66.21%, #224087 92.77%, #233f86 168.03%);
    --shadow-elegant: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 50px rgba(231, 80, 38, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'LC-Masterisans', sans-serif;
    color: var(--color-gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'SVN-Mightiest', serif;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-black);
}

/* Typography */
.text-gradient {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-orange-400);
    /* fallback */
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    color: var(--color-blue-900);
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    font-weight: bold;
}

.heading-md {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.3;
    font-weight: bold;
}

.text-body {
    font-size: 1.125rem;
    font-weight: 300;
    opacity: 0.85;
}

.text-bold {
    font-weight: 700;
    color: var(--color-black);
}

.text-orange {
    color: var(--color-orange-400);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 90px 0;
}

.section-maps {
    background-image: var(--bg-gradient-blue), url('../images/partern-7.avif');
    background-position: center;
    background-blend-mode: multiply;
    color: var(--color-white);
}

.section-alt {
    background-color: var(--color-white);
}

.section-muted {
    background-color: #f9fafb;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-blue-900);
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-gray-200);
}

header.scrolled {
    background: linear-gradient(rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    backdrop-filter: blur(12px);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--bg-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-orange-400);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-black);
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Button */
.btn-primary {
    background: var(--bg-gradient);
    color: var(--color-white) !important;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    font-family: 'SVN-Mightiest', serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-orange-400) !important;
    border: 1px solid var(--color-orange-400);
    padding: 15px 39px;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'SVN-Mightiest', serif;
}

.btn-outline:hover {
    background: var(--color-orange-400);
    color: var(--color-white) !important;
}

/* Grid Layouts shared */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Center Heading block */
.section-header {
    text-align: center;
    margin: 0 auto 50px;
}

.subtitle {
    font-family: 'LC-Masterisans';
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

/* Cards & Wrappers */
.img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* Hero Section (Section 1) */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    background: url('../images/MCC RENDER FACADE.jpg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 80%, rgba(255, 255, 255, 0.1) 100%);

    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-stats-bar {
    position: relative;
    z-index: 2;
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-elegant);
    margin-top: 60px;
    margin-bottom: 60px;
}

.hero-stats-bar .grid-3 {
    text-align: center;
}

.hero-stats-bar h4 {
    color: var(--color-gray-500);
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-family: 'LC-Masterisans';
    font-weight: 600;
}

.hero-stats-bar p {
    font-size: 1.2rem;
    font-family: 'SVN-Mightiest';
    font-weight: bold;
    color: var(--color-gray-900);
}

.hero-stats-bar .highlight {
    color: var(--color-orange-400);
    font-size: 1.8rem;
}

/* Video Block (Section 3) */
.video-block {
    width: 100%;
    max-width: 1300px;
    height: 700px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    background: #000;
}

.video-block iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 992px) {
    .video-block {
        height: 500px;
    }
}

#tong-quan {
    background-image: var(--bg-gradient-blue), url('../images/partern-7.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    color: var(--color-white);
}

#tong-quan h2.heading-md {
    color: var(--color-white);
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--color-white);
    box-shadow: var(--shadow-elegant);
    border-radius: 8px;
    overflow: hidden;
}

.overview-table tr {
    border-bottom: 1px solid var(--color-gray-200);
}

.overview-table tr:last-child {
    border-bottom: none;
}

.overview-table td {
    padding: 20px;
    vertical-align: top;
}

.overview-table td:first-child {
    width: 35%;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-gray-100);
}

.overview-table td:nth-child(2) {
    color: var(--color-white);
}

.overview-table ul {
    list-style-type: none;
    padding-left: 0;
}

.overview-table ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.overview-table ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-orange-400);
    font-size: 1.2rem;
    line-height: 1;
}

/* Time connects (Section 4) */
.time-connect {
    background: var(--color-white);
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: var(--shadow-elegant);
    text-align: center;
    border-top: 3px solid var(--color-orange-400);
}

.time-connect h5 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-orange-400);
}

.time-connect ul {
    list-style: none;
    text-align: left;
}

.time-connect ul li {
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--color-gray-200);
}

.time-connect ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.icon-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.icon-list-item {
    background: var(--color-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.icon-list-item h4 {
    font-family: 'LC-Masterisans';
    font-size: 1rem;
    color: var(--color-white);
    font-weight: 600;
}

/* Utilities Card (Section 5) */
.util-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.util-card:hover {
    transform: translateY(-5px);
}

.util-card .img-box {
    height: 220px;
    overflow: hidden;
}

.util-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.util-card:hover .img-box img {
    transform: scale(1.08);
}

.util-card .content {
    padding: 25px;
    flex-grow: 1;
}

.util-card .content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-black);
}

.util-card .content p {
    font-size: 0.9rem;
    color: var(--color-gray-700);
}

/* Alpine Image Slider */
.alpine-slider {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    background: var(--color-gray-100);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-black);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: background 0.3s, color 0.3s;
}

.slider-btn:hover {
    background: var(--color-orange-400);
    color: var(--color-white);
}

.slider-btn.prev-btn {
    left: 20px;
}

.slider-btn.next-btn {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: var(--color-orange-400);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .alpine-slider {
        height: 350px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-btn.prev-btn {
        left: 10px;
    }

    .slider-btn.next-btn {
        right: 10px;
    }
}

/* Floor plans (Section 7) */
.pricing-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-elegant);
    border: 1px solid var(--color-gray-100);
}

.pricing-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-orange-400);
}

.pricing-card p {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-gray-900);
}

.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.feature-box img {
    width: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.feature-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 5 Reasons (Section 8) */
.reason-item {
    padding: 25px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-elegant);
}

.reason-item h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.reason-item h4 span {
    color: var(--color-orange-400);
    font-size: 1.8rem;
}

.reason-item p {
    font-size: 0.95rem;
    color: var(--color-gray-700);
}

/* Registration Form (Section 5 & 9) */
.register-form-box {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-elegant);
    margin: 40px auto 0;
    text-align: center;
    border: 1px solid var(--color-gray-200);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

@media(max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgb(103 103 103 / 60%);
    border-radius: 4px;
    font-family: 'LC-Masterisans';
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--color-orange-400);
}

.form-submit {
    width: 100%;
}

/* Footer */
footer {
    background: var(--color-gray-900);
    padding: 70px 0 30px;
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--color-white);
    letter-spacing: 2px;
}

.footer-col p,
.footer-col a {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--color-orange-400);
}

.footer-col .logo-text {
    color: var(--color-white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    color: var(--color-gray-400);
    font-size: 0.85rem;
}

.banner {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
}

.logo img {
    width: 100px;
}

/* Glassmorphism Effect for all Borders and Cards */
.hero-stats-bar,
.overview-table,
.time-connect,
.icon-list-item,
.util-card,
.pricing-card,
.feature-box,
.reason-item,
.register-form-box {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important;
}


.overview-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.overview-table td:first-child {
    background: rgba(255, 255, 255, 0.3) !important;
}

.form-input {
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--color-orange-400) !important;
}

/* COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES */
@media (max-width: 992px) {

    /* Fix Hero Stats Bar borders when stacked */
    .hero-stats-bar .grid-3>div[style*="border-left"] {
        border-left: none !important;
        border-right: none !important;
        border-top: 1px dashed var(--color-orange-400) !important;
        border-bottom: 1px dashed var(--color-orange-400) !important;
        padding: 15px 0;
    }

    .hero-stats-bar {
        padding: 20px;
    }

    /* Reorder zigzag grid layout on mobile (Section 7: Mặt Bằng) */
    #mat-bang .grid-2>div:nth-child(1) {
        order: 1;
    }

    #mat-bang .grid-2>div:nth-child(2) {
        order: 2;
    }

    #mat-bang .grid-2>div:nth-child(4) {
        order: 3;
        margin-top: 15px;
    }

    /* Đảo hình ảnh lên trên */
    #mat-bang .grid-2>div:nth-child(3) {
        order: 4;
        margin-bottom: 20px;
    }

    /* Hạ nội dung chữ xuống dưới */
    #mat-bang .grid-2>div:nth-child(5) {
        order: 5;
        margin-top: 15px;
    }

    #mat-bang .grid-2>div:nth-child(6) {
        order: 6;
    }
}

@media (max-width: 768px) {

    /* Typography scaling */
    .heading-md {
        font-size: 1.5rem;
    }

    /* Layout spacing */
    .section-padding {
        padding: 40px 0;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .container {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 25px;
    }

    /* Forms */
    .register-form-box {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .register-form-box h3 {
        font-size: 1.3rem;
    }

    /* Convert Overview Table to Block list on small screens */

    .overview-table tr {
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px;
        overflow: hidden;
    }

    .overview-table td {
        padding: 15px;
        text-align: left;
    }

    .overview-table td:first-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
        padding-bottom: 10px;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.4) !important;
    }

    .overview-table td:nth-child(2) {
        padding-top: 10px;
    }

    /* Sliders and Video */
    .alpine-slider {
        height: 250px;
    }

    .video-block {
        height: 250px;
    }

    .img-wrapper {
        margin-top: 15px !important;
    }

    /* Force grids with auto-fit to be strictly 1 col on mobile if too squished */
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Giữ nguyên 2 cột cho grid-4 ở phần Vị trí trên mobile */
    #vi-tri .grid-4,
    .grid-4 {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    #vi-tri .grid-4 .icon-list-item {
        padding: 15px 10px;
    }

    #vi-tri .grid-4 .icon-list-item h4 {
        font-size: 0.85rem;
    }
}

/* ===========================
   COSMO POPUP
   =========================== */
.cosmo-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cosmo-popup.is-open {
    display: flex;
    pointer-events: all;
}

.cosmo-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cosmo-popup__content {
    position: relative;
    background: var(--color-white);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cosmo-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--color-white);
    font-size: 1.6rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1;
}

.cosmo-popup__close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cosmo-popup__body {
    padding: 0;
}

.cosmo-popup__header {
    background: var(--bg-gradient);
    padding: 30px 30px 24px;
    text-align: center;
    color: var(--color-white);
}

.cosmo-popup__label {
    font-family: 'SVN-Mightiest', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    opacity: 0.85;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cosmo-popup__header h3 {
    font-family: 'SVN-Mightiest', serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: 10px;
}

.cosmo-popup__header p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.cosmo-popup__form {
    padding: 24px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cosmo-popup__field .form-input {
    width: 100%;
    border: 1.5px solid var(--color-gray-300);
    border-radius: 6px;
    padding: 13px 16px;
    font-size: 1rem;
    font-family: 'LC-Masterisans', sans-serif;
    color: var(--color-gray-900);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    background: #fff;
}

.cosmo-popup__field .form-input:focus {
    border-color: var(--color-orange-400);
    box-shadow: 0 0 0 3px rgba(255, 139, 26, 0.15);
}

.cosmo-popup__submit {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    margin-top: 4px;
    border-radius: 6px;
}

/* Alpine.js transition classes */
.popup-enter {
    transition: opacity 0.3s ease;
}

.popup-enter-start {
    opacity: 0;
}

.popup-enter-end {
    opacity: 1;
}

.popup-leave {
    transition: opacity 0.25s ease;
}

.popup-leave-start {
    opacity: 1;
}

.popup-leave-end {
    opacity: 0;
}

@media (max-width: 480px) {
    .cosmo-popup__header {
        padding: 24px 20px 18px;
    }

    .cosmo-popup__form {
        padding: 20px;
    }
}