/* --- STYLE SYSTEM & VARIABLES --- */
:root {
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f3f5;
    --primary: #ff6b35; /* Orange */
    --primary-hover: #e0531d;
    --primary-glow: rgba(255, 107, 53, 0.25);
    --primary-bg-trans: rgba(255, 107, 53, 0.06);
    --accent-gold: #ffb800;
    --accent-red: #ff4757;
    --accent-red-hover: #ff6b81;
    --text-white: #ffffff; /* Actual white for light text on dark buttons */
    --text-main: #333333; /* Dark gray for body/headings */
    --text-muted: #666666; /* Medium gray for secondary text */
    --text-dark: #222222;
    --border-color: rgba(255, 107, 53, 0.2);
    --border-light: rgba(0, 0, 0, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-main: 0 12px 30px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

/* --- RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 107, 53, 0.04);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-red {
    background-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(217, 43, 52, 0.3);
}

.btn-red:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 43, 52, 0.45);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.25);
    font-weight: 700;
}

.btn-gold:hover {
    background-color: #e0a200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* --- TYPOGRAPHY & SECTION HEADERS --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

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

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- BADGES --- */
.hero-badge {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--border-color);
    background-color: var(--primary-bg-trans);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.badge-gold {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    background-color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-hot {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    color: var(--text-white);
    background-color: var(--accent-red);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.badge-discount {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    background-color: rgba(255, 184, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.badge-info {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-muted);
}

/* --- NAVBAR --- */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: 76px;
    display: flex;
    align-items: center;
}

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

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
    margin-top: 4px;
    text-transform: uppercase;
    opacity: 0.95;
}

.logo-accent {
    color: var(--primary);
}

.logo-dot {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--text-muted);
}

.nav-item:hover {
    color: var(--primary);
}

.nav-item.active {
    background-color: var(--primary-bg-trans);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-slogan {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-top: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-desc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
    max-width: 600px;
    text-align: left;
}

.hero-desc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-desc-item strong {
    color: var(--text-main);
}

.desc-item-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.02);
}

/* Hero column 2 Card */
.hero-card-wrapper {
    perspective: 1000px;
}

.premium-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.premium-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08), var(--shadow-glow);
}

.card-image-box {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
}

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

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

.card-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 8px;
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
}

.card-link-item:hover {
    background-color: var(--primary-bg-trans);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition-smooth);
}

.card-link-item:hover .arrow-icon {
    transform: translateX(4px);
}

/* --- SECTION 2: PROBLEMS --- */
.problems-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-main) 0%, #f1f3f5 100%);
    border-top: 1px solid var(--border-light);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.problem-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 28px 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 12px;
    align-items: start;
}

@media (max-width: 480px) {
    .problem-card {
        grid-template-columns: 44px 1fr;
        column-gap: 16px;
        row-gap: 10px;
        padding: 20px 16px;
    }
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-red);
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-card:hover {
    border-color: rgba(217, 43, 52, 0.3);
    background-color: var(--bg-card-hover);
    transform: translateY(-5px);
}

.problem-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff6b35, #ff3c00);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

@media (max-width: 480px) {
    .problem-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
}

.problem-icon svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 480px) {
    .problem-icon svg {
        width: 20px;
        height: 20px;
    }
}

.problem-card h3 {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    align-self: center;
}

@media (max-width: 480px) {
    .problem-card h3 {
        font-size: 16px;
    }
}

.problem-content-box {
    grid-column: 2;
    grid-row: 2;
}

.pain-text {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.solution-text {
    font-size: 13.5px;
    color: var(--primary); /* Orange accent */
    font-weight: 600;
    line-height: 1.5;
    background-color: var(--primary-bg-trans);
    padding: 10px 14px;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    margin-top: 4px;
}

/* --- SECTION 3: COMPARISON --- */
.comparison-section {
    padding: 60px 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-light);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-card {
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
}

.normal-dorm {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
}

.premium-dorm {
    background-color: #ffffff;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.premium-dorm::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    pointer-events: none;
}

.comp-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
    position: relative;
}

.hot-badge {
    position: absolute;
    top: -55px;
    right: -10px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 50px;
}

.comp-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.comp-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-red);
}

.comp-price.trọn-gói {
    font-size: 24px;
    color: var(--primary);
}

.comp-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.comp-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comp-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
}

.comp-list li.negative span {
    color: var(--text-muted);
}

.comp-list li.positive span {
    color: var(--text-main);
}

.icon-cross {
    width: 18px;
    height: 18px;
    color: var(--accent-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-check {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- SECTION 4: AMENITIES & TABS --- */
.amenities-section {
    padding: 60px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-light);
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.tab-btn {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid transparent;
    background-color: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--primary);
    background-color: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
    background-color: var(--primary-bg-trans);
    border-color: var(--primary);
    color: var(--primary);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.tab-image {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
}

.tab-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* Minh họa khu an ninh */
.security-illustration {
    width: 100%;
    height: 380px;
    background-color: #f1f3f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px dashed var(--primary);
}

.sec-icon-large svg {
    width: 80px;
    height: 80px;
}

.sec-text-large {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    letter-spacing: 2px;
}

.tab-text h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tab-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 650px;
    margin: 0 auto;
}

.details-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
}

.details-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* --- SECTION 5: PRICING & BOOKING --- */
.booking-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-main) 0%, #f1f3f5 100%);
    border-top: 1px solid var(--border-light);
}

.booking-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: flex-start;
}

.pricing-info h2 {
    margin-top: 12px;
    margin-bottom: 16px;
}

.pricing-intro {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.vacancy-status-widget {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-bg-trans);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 32px;
    width: 100%;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 rgba(255, 71, 87, 0.4);
    animation: pulse-dot-anim 1.5s infinite;
}

.vacancy-text {
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.5;
}

@keyframes pulse-dot-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 71, 87, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.price-cards-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    align-items: stretch;
}

.mini-price-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mini-price-card.popular {
    border: 2px solid var(--primary);
    background-color: #fff9f6;
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.12);
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    padding: 2px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.mini-price-card h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mini-price-card .price {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.mini-price-card .price .period {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.mini-price-card p {
    font-size: 13px;
    color: var(--text-muted);
}

.card-badge-economy {
    position: absolute;
    top: -12px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    background-color: var(--primary);
    color: var(--text-white);
    padding: 2px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.price-feature-list {
    margin-top: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.price-feature-list li {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.price-feature-list li span {
    flex-shrink: 0;
}

.btn-price-cta {
    margin-top: auto;
    font-size: 13px;
}

.btn-price-cta-featured {
    margin-top: auto;
    font-size: 13px;
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.btn-price-cta-featured:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.form-micro-copy {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    opacity: 0.8;
}

.location-box {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
}

.location-box h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.loc-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.loc-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.dist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Booking Form */
.booking-form-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-main);
}

.form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group label .required {
    color: var(--accent-red);
}

.form-group input, .form-group select {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.15);
}

.form-success-alert {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 10px;
}

.success-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.form-success-alert h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-success-alert p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 60px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-color);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    gap: 16px;
}

.faq-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
    padding: 0 24px 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* --- FOOTER --- */
.footer {
    padding: 60px 0 80px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 150px; /* Thừa khoảng trống để không bị đè bởi sticky bottom bar */
    }
}

.footer-sub {
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.5;
}

/* --- STICKY BOTTOM BAR --- */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sticky-bottom-bar.show {
    transform: translateY(0);
}

.sticky-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sticky-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-text {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
}

.sticky-actions {
    display: flex;
    gap: 12px;
}

.btn-sticky {
    padding: 10px 22px;
    font-size: 13px;
    border-radius: 50px;
}

.btn-call {
    background-color: var(--accent-red);
    color: var(--text-white);
    border: none;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-call:hover {
    background-color: var(--accent-red-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 43, 52, 0.4);
}

.sticky-nav-pill {
    display: flex;
    gap: 4px;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-light);
    padding: 4px;
    border-radius: 50px;
}

.sticky-nav-item {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-nav-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.08);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
}

.sticky-nav-item:hover {
    color: var(--primary);
    background-color: var(--primary-bg-trans);
}

.sticky-nav-item:hover span {
    background-color: var(--primary);
    color: var(--text-white);
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 96px; /* Cách trên sticky bar */
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .hero-card-wrapper {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .booking-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .sticky-bar-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .sticky-nav-pill {
        display: none; /* Ẩn đi hướng phụ trên màn hình trung bình */
    }
}

@media (max-width: 768px) {
    .price-cards-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body {
        font-size: 15px;
    }
    
    .card-image-box {
        height: 280px;
    }
    
    .navbar-container {
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 76px;
        left: -24px;
        width: calc(100% + 48px);
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-light);
        gap: 12px;
        display: none;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        border-radius: 8px;
        padding: 12px 16px;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile Menu Toggle Active */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tab-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tab-image img {
        height: 250px;
    }
    
    .tabs-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .booking-form-box {
        padding: 24px;
    }
    
    .sticky-bottom-bar {
        padding: 12px 0 20px; /* tăng padding đáy trên di động để dễ bấm */
    }
    
    .sticky-info-box {
        justify-content: center;
        width: 100%;
    }
    
    .sticky-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-sticky {
        flex: 1;
        text-align: center;
        padding: 10px 4px;
        font-size: 11.5px;
    }
    
    .back-to-top {
        bottom: 120px;
    }
}

/* --- PULSATING CTA BUTTONS ANIMATION --- */
@keyframes cta-pulse-primary {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

@keyframes cta-pulse-gold {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

@keyframes cta-pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 43, 52, 0.7);
    }
    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 10px rgba(217, 43, 52, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 43, 52, 0);
    }
}

/* Áp dụng nhấp nháy cho các nút CTA nổi bật */
.hero-actions .btn-primary,
.nav-cta .btn-primary,
.btn-price-cta-featured,
.sticky-actions .btn-primary,
.btn-call {
    transition: transform 0.2s ease-in-out;
}

.hero-actions .btn-primary,
.nav-cta .btn-primary,
.sticky-actions .btn-primary {
    animation: cta-pulse-primary 2s infinite;
}

.btn-price-cta-featured {
    animation: cta-pulse-gold 2s infinite;
}

.btn-call {
    animation: cta-pulse-red 2s infinite;
}

/* --- SECTION: FOUNDER --- */
.founder-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
}

.founder-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-main);
}

.founder-card::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 120px;
    font-family: serif;
    color: rgba(255, 107, 53, 0.08);
    line-height: 1;
}

.founder-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    margin: 20px 0;
    font-style: italic;
}

.founder-author {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--primary); /* Orange */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- SECTION: SOCIAL PROOF / FEEDBACK --- */
.feedback-section {
    padding: 60px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-light);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feedback-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feedback-card .rating {
    font-size: 16px;
    margin-bottom: 16px;
}

.feedback-card .feedback-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.student-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.student-school {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive feedback section */
@media (max-width: 1024px) {
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feedback-section {
        padding: 60px 0;
    }
}

/* --- TỐI ƯU KHOẢNG TRỐNG & KHOẢNG CÁCH DI ĐỘNG (UX/UI) --- */
@media (max-width: 768px) {
    .problems-section,
    .comparison-section,
    .amenities-section,
    .booking-section,
    .faq-section,
    .founder-section,
    .feedback-section {
        padding: 35px 0 !important; /* Thu hẹp các khoảng trống trắng quá lớn giữa các phần */
    }
    
    .section-header {
        margin-bottom: 24px !important;
    }
    
    .pricing-intro {
        margin-bottom: 20px !important;
    }
    
    .vacancy-status-widget {
        margin-bottom: 20px !important;
    }
}

/* --- CHATBOT WIDGET STYLES --- */
.hp-chatbot {
    position: fixed;
    bottom: 156px;
    right: 24px;
    z-index: 1000;
    font-family: var(--font-body);
}

@media (max-width: 768px) {
    .hp-chatbot {
        bottom: 190px; /* Tránh đè lên thanh sticky bottom bar di động */
        right: 16px;
    }
}

/* Launcher Button */
.chatbot-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a00 100%);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3), var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.chatbot-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.45), var(--shadow-glow);
}

.chatbot-launcher svg {
    width: 28px;
    height: 28px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-red);
    color: var(--text-white);
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Tooltip Preview */
.chatbot-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 260px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 32px 12px 16px;
    box-shadow: var(--shadow-main);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.chatbot-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
    font-weight: 500;
}

.tooltip-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
}

.tooltip-close:hover {
    color: var(--accent-red);
}

/* Chat Window */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 180px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .chatbot-window {
        bottom: 20px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100% - 32px);
        height: 80vh;
        bottom: 20px;
        right: 16px;
    }
}

.chatbot-window.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.chatbot-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a00 100%);
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.bot-details {
    display: flex;
    flex-direction: column;
}

.bot-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.bot-status {
    font-size: 11px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #2ed573;
    border-radius: 50%;
    display: inline-block;
    animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 4px rgba(46, 213, 115, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.chatbot-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Chat Messages */
.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Chat Bubbles */
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: bubble-appear 0.3s ease forwards;
}

@keyframes bubble-appear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.5;
}

.bot .msg-bubble {
    background-color: #f1f3f5;
    color: var(--text-main);
    border-top-left-radius: 4px;
    border: 1px solid var(--border-light);
}

.user .msg-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a00 100%);
    color: var(--text-white);
    border-top-right-radius: 4px;
}

.msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.bot .msg-time {
    align-self: flex-start;
}

.user .msg-time {
    align-self: flex-end;
}

/* Quick Replies (Options Panel) */
.chatbot-quick-replies {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-light);
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.reply-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
    width: 100%;
}

.reply-btn:hover {
    background-color: var(--primary-bg-trans);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(2px);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background-color: #f1f3f5;
    border-radius: 18px;
    border-top-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Form Action Button inside Chat */
.chat-action-container {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: center;
}

.chat-btn-form {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e0a200 100%);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(255, 184, 0, 0.2);
}

.chat-btn-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 184, 0, 0.35);
}

.chat-btn-zalo {
    background-color: #0084ff;
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(0, 132, 255, 0.2);
}

.chat-btn-zalo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 132, 255, 0.35);
}

/* --- FLOATING CTA BAR (DESKTOP ONLY) --- */
.floating-cta-bar {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 35px;
    padding: 20px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 999;
}

.floating-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 60px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.floating-cta-item:hover {
    transform: translateY(-3px);
}

.floating-cta-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.floating-cta-item:hover .floating-cta-icon-wrapper {
    transform: scale(1.08);
    animation: none !important;
}

/* Brand Colors for Icons with staggered pulsing animations */
.floating-cta-item.zalo .floating-cta-icon-wrapper {
    background: #0084ff;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
    animation: cta-pulse-blue 1.8s infinite;
}

.floating-cta-item.phone .floating-cta-icon-wrapper {
    background: #d92b34;
    box-shadow: 0 4px 12px rgba(217, 43, 52, 0.3);
    animation: cta-pulse-red 1.8s infinite 0.45s;
}

.floating-cta-item.form .floating-cta-icon-wrapper {
    background: #ffb800;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
    animation: cta-pulse-gold 1.8s infinite 0.9s;
}

.floating-cta-item.chat .floating-cta-icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a00 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    animation: cta-pulse-orange 1.8s infinite 1.35s;
}

.floating-cta-icon-wrapper svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.floating-cta-label {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #4a5568;
    text-align: center;
    font-family: var(--font-heading);
    white-space: nowrap;
}

/* Hide horizontal sticky bottom bar and standalone chatbot launcher globally */
.sticky-bottom-bar,
.chatbot-launcher {
    display: none !important;
}

/* Badge styling for the AI chat trigger in the vertical bar */
.floating-cta-icon-wrapper {
    position: relative;
}

.floating-cta-icon-wrapper .notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-red);
    color: var(--text-white);
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Tooltip alignment relative to the vertical bar */
.floating-cta-bar .chatbot-tooltip {
    position: absolute;
    right: 76px;
    bottom: 0px;
    width: 250px;
    z-index: 1000;
}

/* Mobile & Tablet styling for Floating CTA Bar (compact style) */
@media (max-width: 768px) {
    .floating-cta-bar {
        right: 12px;
        padding: 12px 6px;
        border-radius: 25px;
        gap: 12px;
    }

    .floating-cta-item {
        width: 44px;
    }

    .floating-cta-icon-wrapper {
        width: 36px;
        height: 36px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .floating-cta-icon-wrapper svg {
        width: 16px;
        height: 16px;
        stroke-width: 2;
    }

    .floating-cta-label {
        display: none; /* Hide text labels on mobile to keep it thin */
    }

    .floating-cta-bar .chatbot-tooltip {
        right: 56px;
        bottom: 0px;
        width: 220px;
    }
}

/* --- KEYFRAMES FOR FLOATING CTA PULSING ANIMATIONS --- */
@keyframes cta-pulse-blue {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 132, 255, 0.35), 0 0 0 0 rgba(0, 132, 255, 0.8);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 4px 12px rgba(0, 132, 255, 0.2), 0 0 0 18px rgba(0, 132, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 132, 255, 0.35), 0 0 0 0 rgba(0, 132, 255, 0);
    }
}

@keyframes cta-pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(217, 43, 52, 0.35), 0 0 0 0 rgba(217, 43, 52, 0.8);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 4px 12px rgba(217, 43, 52, 0.2), 0 0 0 18px rgba(217, 43, 52, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(217, 43, 52, 0.35), 0 0 0 0 rgba(217, 43, 52, 0);
    }
}

@keyframes cta-pulse-gold {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 184, 0, 0.35), 0 0 0 0 rgba(255, 184, 0, 0.8);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 4px 12px rgba(255, 184, 0, 0.2), 0 0 0 18px rgba(255, 184, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 184, 0, 0.35), 0 0 0 0 rgba(255, 184, 0, 0);
    }
}

@keyframes cta-pulse-orange {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35), 0 0 0 0 rgba(255, 107, 53, 0.8);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2), 0 0 0 18px rgba(255, 107, 53, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35), 0 0 0 0 rgba(255, 107, 53, 0);
    }
}


