﻿/* ==========================================================================
   FESTIVAL HOA ĐÀ LẠT 2026 — MARKETING COMPONENTS
   Hero, Countdown, Event Cards, Lineup, Filter, Forms, Chatbot
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO BANNER — HOÀNH TRÁNG BẬC NHẤT
   -------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #071C17;
  color: #FFFFFF;
  padding: 80px 0 100px 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.68) saturate(1.15);
  transform: scale(1.03);
  animation: zoomSubtle 24s infinite alternate ease-in-out;
}

@keyframes zoomSubtle {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(7, 28, 23, 0.72) 0%,
    rgba(7, 28, 23, 0.45) 45%,
    rgba(7, 28, 23, 0.95) 100%
  );
}

.hero-overlay-radial {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at center, rgba(148, 19, 56, 0.28) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero-kicker-wrap {
  margin-bottom: 20px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--r-full);
  color: #FFE082;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-kicker i {
  color: var(--c-gold);
}

.hero-title {
  font-family: var(--f-display);
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

.hero-title em {
  font-family: var(--f-serif);
  font-style: italic;
  display: block;
  font-weight: 700;
  font-size: 3.4rem;
  background: linear-gradient(135deg, #FFF176 0%, #FFB300 50%, #FF8A80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}

.hero-slogan {
  font-family: var(--f-serif);
  font-size: 1.45rem;
  font-style: italic;
  color: #E2ECE9;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  font-size: 1.1rem;
  color: #CADCD6;
  max-width: 760px;
  margin: 0 auto 32px auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

/* --------------------------------------------------------------------------
   COUNTDOWN TIMER — HOÀNG GIA
   -------------------------------------------------------------------------- */
.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 35, 27, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 16px 36px;
  border-radius: var(--r-xl);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
}

.countdown-num {
  font-family: var(--f-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #FFE082;
  text-transform: uppercase;
  margin-top: 6px;
}

.countdown-divider {
  width: 1px;
  height: 38px;
  background: rgba(212, 175, 55, 0.35);
}

.hero-meta-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  color: #D3E4DE;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-item i {
  color: var(--c-gold);
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   KEY STATS COUNTER STRIP
   -------------------------------------------------------------------------- */
.stats-strip {
  position: relative;
  z-index: 20;
  margin-top: -50px;
  margin-bottom: 30px;
}

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

.stat-card {
  background: #FFFFFF;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--t-smooth);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(148, 19, 56, 0.12);
  border-color: rgba(148, 19, 56, 0.3);
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(148, 19, 56, 0.1) 0%, rgba(212, 175, 55, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--c-primary);
  flex-shrink: 0;
}

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-pine);
  line-height: 1;
}

.stat-number span {
  color: var(--c-primary);
}

.stat-desc {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   FEATURED EVENTS CARDS (SỰ KIỆN TÂM ĐIỂM)
   -------------------------------------------------------------------------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.event-card {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  transition: all var(--t-smooth);
  text-decoration: none !important;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.5);
}

.event-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.event-card:hover .event-card-img {
  transform: scale(1.07);
}

.event-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(10,35,27,0.7) 100%);
}

.event-card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.event-category-pill {
  background: rgba(10, 35, 27, 0.85);
  backdrop-filter: blur(8px);
  color: #FFE082;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.event-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 10px;
}

.event-card-title {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-pine);
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

.event-card-location i {
  color: var(--c-primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.event-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-card-action {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-card:hover .event-card-action {
  color: var(--c-gold-dark);
}

/* --------------------------------------------------------------------------
   EVENT REGISTRATION PROGRESS BAR (CARD LEVEL)
   -------------------------------------------------------------------------- */
.event-progress-wrap {
  background: var(--c-surface-soft);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  margin-top: auto;
}

.event-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.event-progress-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--c-pine);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.72rem;
}

.event-progress-label i {
  color: var(--c-gold-dark);
}

.event-progress-val {
  font-size: 0.82rem;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

.event-progress-val strong {
  color: var(--c-primary);
  font-weight: 800;
}

.event-progress-track {
  width: 100%;
  height: 8px;
  background: #E8ECE9;
  border-radius: var(--r-full);
  overflow: hidden;
  position: relative;
}

.event-progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, #0A3329 0%, #D4AF37 60%, #941338 100%);
  position: relative;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  animation: progressShimmer 2.2s infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.event-progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.75rem;
}

.event-progress-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.72rem;
}

.event-progress-tag.tag-hot {
  background: #FEE2E2;
  color: #991B1B;
}

.event-progress-tag.tag-warning {
  background: #FEF3C7;
  color: #92400E;
}

.event-progress-tag.tag-open {
  background: #D1FAE5;
  color: #065F46;
}

.event-progress-remain {
  color: var(--c-text-muted);
  font-size: 0.75rem;
}

.event-progress-remain strong {
  color: var(--c-pine);
}

/* --------------------------------------------------------------------------
   REGISTRATION PROGRESS DASHBOARD (TIẾN ĐỘ CHỈ TIÊU TỔNG THỂ)
   -------------------------------------------------------------------------- */
.registration-progress-dashboard {
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  margin-bottom: 36px;
  box-shadow: 0 16px 36px rgba(10, 51, 41, 0.08);
  position: relative;
  overflow: hidden;
}

.registration-progress-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-gold) 50%, var(--c-pine) 100%);
}

.rpd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.rpd-title-group {
  flex: 1;
  min-width: 280px;
}

.rpd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 51, 41, 0.08);
  color: var(--c-pine);
  border: 1px solid rgba(10, 51, 41, 0.15);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.rpd-badge i {
  color: var(--c-primary);
}

.rpd-title {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  color: var(--c-pine);
  line-height: 1.3;
  margin: 0 0 6px 0;
}

.rpd-desc {
  font-size: 0.92rem;
  color: var(--c-text-muted);
  margin: 0;
}

.rpd-total-pill {
  background: linear-gradient(135deg, #07231B 0%, #0E382E 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--r-lg);
  padding: 14px 22px;
  color: #FFFFFF;
  text-align: right;
  flex-shrink: 0;
}

.rpd-pill-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFE082;
  margin-bottom: 4px;
  font-weight: 700;
}

.rpd-pill-value {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.rpd-pill-value em {
  font-size: 0.85rem;
  font-style: normal;
  color: #CDE0D9;
  font-family: var(--f-sans);
  font-weight: 500;
}

.rpd-overall-bar-wrap {
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.rpd-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.rpd-bar-stat {
  font-size: 0.95rem;
  color: var(--c-text);
}

.rpd-stat-label {
  color: var(--c-text-muted);
  margin-right: 6px;
}

.rpd-stat-count strong {
  color: var(--c-primary);
  font-size: 1.35rem;
  font-family: var(--f-display);
  font-weight: 800;
}

.rpd-bar-percent {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-pine);
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 4px 14px;
  border-radius: var(--r-full);
}

.rpd-bar-remain {
  font-size: 0.92rem;
}

.rpd-bar-remain strong {
  color: #065F46;
  font-weight: 700;
}

.rpd-progress-track {
  width: 100%;
  height: 16px;
  background: #E5E7EB;
  border-radius: var(--r-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.rpd-progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, #0A3329 0%, #D4AF37 50%, #941338 100%);
  position: relative;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rpd-progress-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  animation: progressShimmer 2.2s infinite;
}

.rpd-category-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 991px) {
  .rpd-category-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .rpd-category-breakdown {
    grid-template-columns: 1fr;
  }
}

.rpd-cat-item {
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: transform var(--t-fast);
}

.rpd-cat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.4);
}

.rpd-cat-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.rpd-cat-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-pine);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rpd-cat-name i {
  color: var(--c-primary);
}

.rpd-cat-ratio {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

.rpd-cat-ratio strong {
  color: var(--c-primary);
  font-weight: 700;
}

.rpd-cat-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: var(--r-full);
  overflow: hidden;
}

.rpd-cat-fill {
  height: 100%;
  border-radius: var(--r-full);
}

.rpd-cat-fill.fill-berry {
  background: linear-gradient(90deg, #941338, #C42851);
}

.rpd-cat-fill.fill-gold {
  background: linear-gradient(90deg, #B8860B, #E5C158);
}

.rpd-cat-fill.fill-pine {
  background: linear-gradient(90deg, #0A3329, #1B5E20);
}

.rpd-cat-fill.fill-emerald {
  background: linear-gradient(90deg, #047857, #10B981);
}

.rpd-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #1E40AF;
  line-height: 1.5;
}

.rpd-notice i {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   SPECIAL GUEST & ARTIST LINEUP (DÀN KHÁCH MỜI ĐẶC BIỆT)
   -------------------------------------------------------------------------- */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

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

.guest-photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-xl);
  padding: 4px;
  background: linear-gradient(135deg, #FF5376 0%, #D4AF37 50%, #0A3329 100%);
  box-shadow: 0 16px 36px rgba(148, 19, 56, 0.18);
  transition: all var(--t-smooth);
  overflow: hidden;
}

.guest-photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--r-xl) - 4px);
  overflow: hidden;
  background: #0E241E;
}

.guest-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s ease;
}

.guest-card:hover .guest-photo-wrap {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(148, 19, 56, 0.28);
}

.guest-card:hover .guest-photo-img {
  transform: scale(1.08);
}

.guest-photo-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 35, 27, 0.85) 100%);
}

.guest-role-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-primary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.guest-info-overlay {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 16px;
  color: #FFFFFF;
}

.guest-name {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.guest-sub {
  font-size: 0.78rem;
  color: #FFE082;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   SPONSORS & ORGANIZERS MARQUEE
   -------------------------------------------------------------------------- */
.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0;
}

.marquee-container::before, .marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--c-surface) 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(-90deg, var(--c-surface) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 70px;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: all var(--t-fast);
  text-decoration: none;
}

.sponsor-item:hover {
  opacity: 1;
  transform: scale(1.08);
}

.sponsor-item img {
  max-height: 52px;
  max-width: 160px;
  object-fit: contain;
}

.sponsor-item span {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-pine);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   FILTER & TAB CONTROLS
   -------------------------------------------------------------------------- */
.filter-bar {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 18px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--c-primary);
  color: #FFFFFF;
  border-color: var(--c-primary);
  box-shadow: 0 4px 12px rgba(148, 19, 56, 0.25);
}

.filter-search {
  position: relative;
  min-width: 260px;
}

.filter-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  font-family: var(--f-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t-fast);
}

.filter-search input:focus {
  border-color: var(--c-primary);
}

.filter-search i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   FORM STYLES — CHUẨN NHÀ NƯỚC & ĐẲNG CẤP MARKETING
   -------------------------------------------------------------------------- */
.form-card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  padding: 44px;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-pine);
  margin-bottom: 8px;
}

.form-label .required {
  color: #D32F2F;
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  font-family: var(--f-sans);
  font-size: 0.95rem;
  color: var(--c-text);
  background: #FDFBF8;
  outline: none;
  transition: all var(--t-fast);
}

.form-control:focus {
  border-color: var(--c-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(148, 19, 56, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-help {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-top: 6px;
}

/* Simulated QR Ticket */
.ticket-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: linear-gradient(145deg, #FAF7F2 0%, #F0EAE1 100%);
  border-radius: var(--r-lg);
  border: 2px dashed rgba(212, 175, 55, 0.6);
  text-align: center;
  margin-top: 24px;
}

.ticket-qr-svg {
  width: 160px;
  height: 160px;
  background: #FFFFFF;
  padding: 12px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   CHATBOT AI ASSISTANT WIDGET
   -------------------------------------------------------------------------- */
.chatbot-panel {
  position: fixed;
  bottom: 95px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  background: #FFFFFF;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(10, 35, 27, 0.25);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1250;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--t-smooth);
}

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

.chatbot-header {
  background: linear-gradient(135deg, #0A3329 0%, #155544 100%);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: #FFFFFF;
  padding: 4px;
  border: 2px solid var(--c-gold);
}

.chatbot-name {
  font-weight: 700;
  font-size: 1rem;
}

.chatbot-status {
  font-size: 0.72rem;
  color: #A3E0D1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatbot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #00E676;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
}

.chatbot-body {
  flex-grow: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FAF8F5;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-bubble-bot {
  background: #FFFFFF;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-bubble-user {
  background: var(--c-primary);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-quick-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.quick-chip {
  background: #FFFFFF;
  border: 1px solid rgba(148, 19, 56, 0.25);
  color: var(--c-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
}

.quick-chip:hover {
  background: var(--c-primary);
  color: #FFFFFF;
}

.chatbot-footer {
  padding: 12px 16px;
  background: #FFFFFF;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 8px;
}

.chatbot-input {
  flex-grow: 1;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 0.88rem;
  outline: none;
}

.chatbot-input:focus {
  border-color: var(--c-primary);
}

.chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--c-primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   UTILITY DIRECTORY & SPECIAL OFFERS (TIỆN ÍCH & ƯU ĐÃI ĐỊA ĐIỂM)
   -------------------------------------------------------------------------- */
.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .utility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.utility-card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  transition: all var(--t-smooth);
  position: relative;
}

.utility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.5);
}

.utility-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0A231C;
}

.utility-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.utility-card:hover .utility-card-img {
  transform: scale(1.06);
}

.utility-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,35,27,0.7) 100%);
}

.utility-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.utility-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.utility-card-title {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-pine);
  line-height: 1.35;
  margin-bottom: 10px;
}

.utility-card-location, .utility-card-contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  line-height: 1.45;
}

.utility-card-location i, .utility-card-contact i {
  color: var(--c-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.utility-card-desc {
  font-size: 0.86rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 8px 0 16px 0;
}

/* Khung ưu đãi Festival Hoa đặc biệt cho từng địa điểm */
.place-offer-box {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.55) 0%, rgba(255, 237, 213, 0.45) 100%);
  border: 1.5px dashed var(--c-gold-dark);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-top: auto;
  margin-bottom: 16px;
  position: relative;
}

.place-offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.place-offer-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.place-offer-title i {
  font-size: 0.95rem;
  color: var(--c-gold-dark);
}

.place-offer-detail {
  font-size: 0.84rem;
  color: #78350F;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.place-offer-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 6px;
  padding: 4px 8px;
}

.place-promo-code {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: 1px;
}

.copy-promo-btn {
  background: none;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--c-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--t-fast);
}

.copy-promo-btn:hover {
  background: rgba(148, 19, 56, 0.1);
}

/* Khung thông tin y tế cấp cứu chuyên trách (Không hiển thị ưu đãi) */
.hospital-duty-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 3.5px solid #DC2626;
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-top: auto;
  margin-bottom: 16px;
}

.hospital-duty-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #991B1B;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hospital-duty-head i {
  color: #DC2626;
  font-size: 1.05rem;
}

.hospital-duty-head strong {
  color: #B91C1C;
}

.hospital-duty-desc {
  font-size: 0.83rem;
  color: #7F1D1D;
  line-height: 1.45;
  margin: 0;
}

.utility-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-card-footer .hotline-call {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-card-footer .hotline-call:hover {
  color: var(--c-primary-dark);
}

.filter-badge-count {
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--r-full);
  margin-left: 4px;
}

.filter-btn.active .filter-badge-count {
  background: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.2rem; }
  .hero-title em { font-size: 2.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .lineup-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-title em { font-size: 2rem; }
  .countdown-box { padding: 12px 20px; gap: 10px; }
  .countdown-num { font-size: 2rem; }
  .countdown-unit { min-width: 45px; }
  .event-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}
