/* ==========================================================================
   THIỆP CHÚC MỪNG 20/10 PHONG CÁCH ĐẢNG - ĐẢNG ỦY PHƯỜNG NHA TRANG
   Aesthetic: Red Velvet, Royal Gold, Dong Son Bronze Drum, Golden Lotus
   ========================================================================== */

:root {
  --primary-red: #A30D11;
  --dark-red: #680003;
  --deep-red: #4A0002;
  --bright-red: #DA251D;
  --gold-primary: #FFD700;
  --gold-light: #FFF2A3;
  --gold-dark: #C68A00;
  --gold-gradient: linear-gradient(135deg, #FFF6B7 0%, #F1C40F 50%, #B78700 100%);
  --gold-metallic: linear-gradient(135deg, #FFE082 0%, #FFD700 40%, #FFA000 80%, #D48800 100%);
  --parchment-bg: #FFFDF9;
  --parchment-border: #F0DFC8;
  --text-dark: #2C1810;
  --text-muted: #6B5B52;
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.45);
  --shadow-envelope: 0 15px 40px rgba(0, 0, 0, 0.6);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 50% 20%, #8A0609 0%, #520002 60%, #2A0001 100%);
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding-bottom: 60px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Background watermarks: Rotating Dong Son Drum & Falling Lotus Petals */
.bg-drum-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 92vw);
  height: min(900px, 92vw);
  max-width: 100vw;
  max-height: 100vw;
  background: url('../images/trong-dong.svg') no-repeat center center;
  background-size: contain;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  animation: spinDrum 180s linear infinite;
}

@keyframes spinDrum {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Canvas for celebratory falling petals / sparkle */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Top Political Header Slogan Banner */
.political-top-banner {
  background: linear-gradient(90deg, #680003 0%, #A30D11 50%, #680003 100%);
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  text-align: center;
  padding: 6px 8px;
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: hidden;
}

.political-slogan {
  font-family: 'Playfair Display', 'Merriweather', serif;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
  width: 100%;
}

.political-slogan .slogan-text {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(0.58rem, 2.7vw, 0.95rem);
  letter-spacing: clamp(0.2px, 0.4vw, 1.2px);
  line-height: 1.2;
}

.political-slogan img,
.top-banner-flag {
  height: clamp(16px, 3.5vw, 22px);
  width: auto;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  vertical-align: middle;
  flex-shrink: 0;
}

/* Main Container */
.main-wrapper {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 16px;
  position: relative;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   STAGE 1: LUXURY ENVELOPE (BÌ THƯ ĐỎ HOÀNG GIA DÁT VÀNG)
   -------------------------------------------------------------------------- */
.envelope-wrapper {
  perspective: 1200px;
  margin: 40px auto;
  max-width: 640px;
  transition: var(--transition-smooth);
}

.envelope-wrapper.hidden {
  display: none;
}

.envelope {
  position: relative;
  background: linear-gradient(135deg, #910D12 0%, #600003 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-envelope);
  border: 3px solid var(--gold-primary);
  padding: 40px 24px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
}

.envelope::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/trong-dong.svg') no-repeat center center;
  background-size: 380px;
  opacity: 0.08;
  pointer-events: none;
}

.envelope-corner-ornament {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.85;
  pointer-events: none;
}
.envelope-corner-ornament.top-left { top: 8px; left: 8px; }
.envelope-corner-ornament.top-right { top: 8px; right: 8px; transform: rotate(90deg); }
.envelope-corner-ornament.bottom-left { bottom: 8px; left: 8px; transform: rotate(-90deg); }
.envelope-corner-ornament.bottom-right { bottom: 8px; right: 8px; transform: rotate(180deg); }

.envelope-header {
  margin-bottom: 20px;
}

.envelope-badge-logo {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 15px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 15px rgba(255,215,0,0.5);
  animation: pulseGold 3s infinite ease-in-out;
  display: block;
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255,215,0,0.5)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(255,215,0,0.9)); }
}

.envelope-authority-block {
  margin-bottom: 8px;
}

.envelope-superior-title {
  font-family: 'Playfair Display', 'Merriweather', serif;
  font-size: 1.05rem;
  letter-spacing: 1.2px;
  color: #FFE082;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.envelope-committee {
  font-family: 'Playfair Display', 'Merriweather', serif;
  font-size: 1.35rem;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.envelope-subtitle {
  font-size: 0.9rem;
  color: #FFE082;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.95;
}

.envelope-gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.envelope-gold-divider .line {
  height: 1.5px;
  width: 80px;
  background: var(--gold-gradient);
}

.envelope-gold-divider .star {
  color: var(--gold-primary);
  font-size: 1.2rem;
}

.envelope-recipient-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px dashed rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px auto;
  max-width: 460px;
}

.envelope-recipient-prefix {
  font-size: 0.88rem;
  color: #FFECB3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.envelope-recipient-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 6px 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.envelope-recipient-org {
  font-size: 1rem;
  color: #FFF9C4;
  font-weight: 500;
}

/* Wax Seal Stamp Button */
.envelope-seal-wrapper {
  margin-top: 30px;
  position: relative;
}

.envelope-wax-stamp {
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.6));
}

.envelope-wax-stamp:hover {
  transform: scale(1.1) rotate(5deg);
}

.envelope-open-hint {
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  animation: bounceHint 2s infinite;
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* --------------------------------------------------------------------------
   STAGE 2: THE GREETING CARD (THIỆP MỜI TRANG TRỌNG ĐẢNG ỦY)
   -------------------------------------------------------------------------- */
.greeting-card-container {
  display: block;
  animation: cardSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.greeting-card-container.visible {
  display: block;
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(50px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.luxury-card {
  background: var(--parchment-bg);
  border-radius: 20px;
  border: 4px solid var(--primary-red);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 2px var(--gold-primary);
  position: relative;
  overflow: hidden;
  padding: 40px 30px;
}

/* Inner gold border */
.card-inner-frame {
  position: relative;
  border: 2px solid #E2C082;
  border-radius: 12px;
  padding: 35px 25px;
  background: radial-gradient(circle at 50% 30%, #FFFFFA 0%, #FAF5EE 100%);
}

.card-corner-svg {
  position: absolute;
  width: 55px;
  height: 55px;
  pointer-events: none;
}
.card-corner-svg.tl { top: 4px; left: 4px; }
.card-corner-svg.tr { top: 4px; right: 4px; transform: rotate(90deg); }
.card-corner-svg.bl { bottom: 4px; left: 4px; transform: rotate(-90deg); }
.card-corner-svg.br { bottom: 4px; right: 4px; transform: rotate(180deg); }

/* Card Header */
.card-header {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.card-emblem-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.card-party-emblem {
  width: 65px;
  height: 65px;
}

.card-flag-emblem {
  width: 52px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.card-authority-block {
  margin-bottom: 6px;
}

.card-superior-title {
  font-family: 'Playfair Display', 'Merriweather', serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #7A1C1E;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 2px;
}

.card-authority-title {
  font-family: 'Playfair Display', 'Merriweather', serif;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-weight: 900;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-authority-sub {
  font-family: 'Playfair Display', 'Merriweather', serif;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: #7A1C1E;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.card-divider-lotus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 18px 0;
}

.card-divider-lotus .bar {
  flex: 1;
  max-width: 140px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #C68A00, transparent);
}

.card-divider-lotus img {
  height: 28px;
  width: auto;
}

/* Event Title */
.card-event-badge {
  display: inline-block;
  background: linear-gradient(135deg, #A30D11, #680003);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 18px;
  border-radius: 20px;
  border: 1px solid var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.card-title-main {
  font-family: 'Charm', cursive, 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.08);
}

/* Các phong cách font chữ tiêu đề cách điệu, bay bổng, thư pháp */
.card-title-main.font-theme-charm {
  font-family: 'Charm', cursive !important;
  font-weight: 700 !important;
  font-size: 2.3rem !important;
  letter-spacing: 0.5px !important;
  line-height: 1.3 !important;
}

.card-title-main.font-theme-alex_brush {
  font-family: 'Alex Brush', cursive !important;
  font-weight: 400 !important;
  font-size: 2.7rem !important;
  letter-spacing: 1px !important;
  line-height: 1.35 !important;
}

.card-title-main.font-theme-ephesis {
  font-family: 'Ephesis', cursive !important;
  font-weight: 400 !important;
  font-size: 2.6rem !important;
  letter-spacing: 0.5px !important;
  line-height: 1.3 !important;
}

.card-title-main.font-theme-pattaya {
  font-family: 'Pattaya', sans-serif !important;
  font-weight: 400 !important;
  font-size: 2.05rem !important;
  letter-spacing: 0.5px !important;
}

.card-title-main.font-theme-playfair_italic {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  font-size: 2.05rem !important;
  letter-spacing: 0.8px !important;
}

.card-title-main.font-theme-playfair {
  font-family: 'Playfair Display', serif !important;
  font-weight: 900 !important;
  font-size: 2rem !important;
  text-transform: uppercase !important;
}

.card-sub-occasion {
  font-size: 1.05rem;
  font-style: italic;
  color: #8C6239;
  margin-bottom: 20px;
}

/* Recipient Salute */
.card-salute-box {
  background: #FFF7EB;
  border-left: 5px solid var(--primary-red);
  border-radius: 0 10px 10px 0;
  padding: 16px 22px;
  margin: 25px 0;
}

.card-salute-title {
  font-size: 0.95rem;
  color: #7A5B3E;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.card-salute-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-red);
  margin: 4px 0;
}

.salute-recipients-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.salute-recipient-item {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1.4;
  text-align: left;
}

.card-salute-org {
  font-size: 1.05rem;
  color: #3E2723;
  font-weight: 600;
}

/* Formal Message Body */
.card-message-body {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #2E1B10;
  text-align: justify;
  margin: 12px 0;
}

.card-message-body p,
.greeting-para {
  margin-bottom: 6px;
  text-indent: 1.5em;
  line-height: 1.55;
}

.card-message-body p:last-child,
.greeting-para:last-child {
  margin-bottom: 0;
}

/* Event Logistics Box (Thực đơn & Thời gian tiệc sáng) */
.event-details-card {
  background: linear-gradient(135deg, #FFF9ED 0%, #FFF3D6 100%);
  border: 2px solid #E6CA85;
  border-radius: 14px;
  padding: 24px;
  margin: 25px 0;
  box-shadow: 0 4px 15px rgba(183, 28, 28, 0.08);
}

.event-details-header {
  font-family: 'Playfair Display', 'Merriweather', serif;
  color: var(--primary-red);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid #E2C082;
  padding-bottom: 10px;
}

.event-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.event-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.event-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-red), #680003);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(104, 0, 3, 0.3);
}

.event-info-text strong {
  display: block;
  font-size: 0.88rem;
  color: #7A5B3E;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.event-info-text span {
  font-size: 1.02rem;
  color: #2E1B10;
  font-weight: 600;
}

/* Party Signature Box */
.card-signature-section {
  display: flex;
  justify-content: flex-end;
  margin: 35px 0 20px;
  text-align: center;
}

.card-signature-box {
  min-width: 280px;
}

.signature-authority {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  line-height: 1.4;
  white-space: pre-line;
}

.signature-seal-img {
  display: none;
}

.signature-space {
  height: 50px;
}

.signature-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #2E1B10;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   STAGE 3: CHECK-IN & BREAKFAST/COFFEE SELECTION (CHỌN MÓN TIỆC SÁNG)
   -------------------------------------------------------------------------- */
.checkin-section {
  margin-top: 40px;
  border-top: 3px dashed #E2C082;
  padding-top: 35px;
}

.checkin-title-heading {
  text-align: center;
  margin-bottom: 22px;
}

.checkin-title-heading h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.checkin-title-heading h3 i {
  color: var(--primary-red);
  font-size: 1.45rem;
}

.checkin-title-box {
  text-align: center;
  margin-bottom: 25px;
}

.checkin-title-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  color: var(--primary-red);
  font-weight: 800;
}

.checkin-title-box p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 6px;
}

/* RSVP Status Choice Buttons (Tham dự / Báo vắng) */
.rsvp-options-container {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.rsvp-option-label {
  cursor: pointer;
  flex: 1;
  min-width: 220px;
  max-width: 300px;
}

.rsvp-option-label input[type="radio"] {
  display: none;
}

.rsvp-card-choice {
  border: 2px solid #E0D3C1;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  background: #FFF;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #555;
}

.rsvp-card-choice i {
  font-size: 1.4rem;
}

.rsvp-option-label input[type="radio"]:checked + .rsvp-card-choice.attend {
  background: #F1F8E9;
  border-color: #2E7D32;
  color: #1B5E20;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
  transform: translateY(-2px);
}

.rsvp-option-label input[type="radio"]:checked + .rsvp-card-choice.decline {
  background: #FFEBEE;
  border-color: #C62828;
  color: #B71C1C;
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.2);
  transform: translateY(-2px);
}

/* Menu Section (Hidden if declined) */
.menu-selection-block {
  transition: var(--transition-smooth);
}

.menu-category-header {
  font-family: 'Playfair Display', 'Merriweather', serif;
  font-size: 1.15rem;
  color: var(--primary-red);
  font-weight: 800;
  margin: 25px 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-category-header span.badge-must {
  background: #C62828;
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
}

/* Grid of Dish Cards */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.menu-items-grid > label {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  min-width: 0;
}

.menu-dish-card {
  position: relative;
  background: #FFFFFF;
  border: 2px solid #EADBCC;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.menu-dish-card:hover {
  border-color: #D4AF37;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.dish-radio-input {
  display: none;
}

.dish-radio-input:checked + .menu-dish-card {
  border-color: var(--primary-red);
  background: #FFF9F7;
  box-shadow: 0 0 0 2px var(--primary-red), 0 8px 20px rgba(163, 13, 17, 0.15);
}

.dish-radio-input:checked + .menu-dish-card::after {
  content: '✓ ĐÃ CHỌN';
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary-red);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 2;
}

.dish-icon-badge {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #FFF9F2 0%, #FDEED9 100%);
  border: 1px solid #EAD8C3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  position: relative;
}

.dish-icon-badge.has-img {
  background: #FAFAFA;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dish-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  transition: transform 0.3s ease;
  display: block;
}

.menu-dish-card:hover .dish-thumb-img {
  transform: scale(1.06);
}

.dish-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2A170F;
  margin-bottom: 4px;
  line-height: 1.3;
}

.dish-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

/* Thông báo linh hoạt chọn 1 trong 2 hoặc cả hai */
.menu-selection-hint {
  font-size: 0.9rem;
  color: #78350F;
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-selection-hint i {
  color: #D97706;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Form Inputs for Notes and Wishes */
.form-group-custom {
  margin-bottom: 20px;
}

.form-group-custom label {
  display: block;
  font-weight: 600;
  color: #332219;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.form-group-custom input,
.form-group-custom textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #D9C8B4;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  background: #FFF;
  transition: var(--transition-smooth);
}

.form-group-custom input:focus,
.form-group-custom textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(163, 13, 17, 0.15);
}

/* Submit Golden Button */
.btn-submit-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 30px auto 10px;
  padding: 15px 24px;
  background: linear-gradient(135deg, #B71C1C 0%, #7E0004 100%);
  color: var(--gold-light);
  border: 2px solid var(--gold-primary);
  border-radius: 50px;
  font-family: 'Playfair Display', 'Merriweather', serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(126, 0, 4, 0.4), var(--shadow-gold);
  transition: var(--transition-smooth);
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  box-sizing: border-box;
}

.btn-submit-gold:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #DA251D 0%, #900004 100%);
  box-shadow: 0 10px 25px rgba(126, 0, 4, 0.6), 0 0 25px rgba(255, 215, 0, 0.7);
}

.btn-submit-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   STAGE 4: SUCCESS E-TICKET PASS & SUMMARY
   -------------------------------------------------------------------------- */
.e-ticket-card {
  background: linear-gradient(135deg, #FFFDEB 0%, #FFF8D6 100%);
  border: 3px solid var(--gold-primary);
  border-radius: 16px;
  padding: 30px 25px;
  margin: 30px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.e-ticket-header {
  text-align: center;
  border-bottom: 2px dashed #D4AF37;
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.e-ticket-tag {
  background: #2E7D32;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.e-ticket-tag.declined {
  background: #C62828;
}

.e-ticket-code {
  font-family: 'Playfair Display', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-red);
  letter-spacing: 1.5px;
}

.e-ticket-body {
  display: block;
}

.e-ticket-details {
  width: 100%;
  background: #FFFDF8;
  border: 1px solid #F2E4CF;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.03);
}

.e-ticket-row {
  margin-bottom: 12px;
}

.e-ticket-label {
  font-size: 0.82rem;
  color: #795548;
  text-transform: uppercase;
  font-weight: 600;
}

.e-ticket-val {
  font-size: 1.1rem;
  color: #2E1B10;
  font-weight: 700;
}

.e-ticket-qr {
  text-align: center;
}

.e-ticket-qr img {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 2px solid var(--gold-primary);
  padding: 5px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.e-ticket-qr-caption {
  font-size: 0.78rem;
  color: #666;
  margin-top: 6px;
  font-weight: 600;
}

/* Edit RSVP button */
.btn-edit-rsvp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-red);
  background: #FFF;
  border: 1.5px solid var(--primary-red);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 15px;
  transition: var(--transition-smooth);
}

.btn-edit-rsvp:hover {
  background: var(--primary-red);
  color: #fff;
}

/* Floating Audio / Share Bar */
.floating-actions-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.floating-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), #680003);
  border: 2px solid var(--gold-primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: var(--transition-smooth);
}

.floating-action-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-title-main {
    font-size: 1.5rem;
  }
  .luxury-card {
    padding: 24px 15px;
  }
  .card-inner-frame {
    padding: 22px 14px;
  }
  .political-slogan {
    white-space: nowrap;
    gap: 5px;
  }
  .political-slogan .slogan-text {
    font-size: clamp(0.52rem, 2.7vw, 0.8rem);
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
  .envelope-superior-title {
    font-size: 0.92rem;
    letter-spacing: 0.8px;
  }
  .envelope-committee {
    font-size: 1.15rem;
    letter-spacing: 0.8px;
  }
  .card-superior-title {
    font-size: 0.92rem;
    letter-spacing: 0.8px;
  }
  .card-authority-title {
    font-size: 1.18rem;
    letter-spacing: 0.8px;
  }
  .envelope {
    padding: 30px 15px;
  }
  .envelope-recipient-name {
    font-size: 1.35rem;
  }
  .event-info-grid {
    grid-template-columns: 1fr;
  }
  .e-ticket-body {
    flex-direction: column;
    text-align: center;
  }
}

/* Guest Identity & Live Lookup Styling - Centered & Prominent */
.guest-identity-card {
  background: #FFFDF9;
  border: 2px solid #E2C082;
  border-radius: 16px;
  padding: 26px 24px;
  margin: 0 auto 30px auto;
  max-width: 620px;
  box-shadow: 0 6px 25px rgba(163, 13, 17, 0.09);
  position: relative;
  text-align: center;
}

.guest-identity-header {
  margin-bottom: 20px;
}

.guest-identity-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), #680003);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 1.5px solid var(--gold-primary);
}

.guest-identity-title {
  font-family: 'Playfair Display', 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.guest-identity-subtitle {
  font-size: 0.95rem;
  color: #5D4037;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 500px;
}

.guest-check-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  margin-top: 15px;
}

.guest-input-container {
  position: relative;
  flex: 1;
}

.guest-field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-red);
  font-size: 1.25rem;
  pointer-events: none;
}

.guest-identity-input {
  width: 100%;
  height: 54px;
  padding: 12px 18px 12px 52px;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: inherit;
  border: 2.5px solid #D9C8B4;
  border-radius: 12px;
  background: #FFF;
  color: #2E1B10;
  transition: var(--transition-smooth);
}

.guest-identity-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 4px rgba(163, 13, 17, 0.15);
}

.btn-check-guest {
  background: linear-gradient(135deg, #A30D11 0%, #680003 100%);
  color: var(--gold-light);
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  padding: 0 24px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
}

.btn-check-guest:hover {
  background: linear-gradient(135deg, #DA251D 0%, #900004 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(163, 13, 17, 0.35);
}

.btn-check-guest:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Status Cards */
.guest-check-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeInStatus 0.3s ease;
}

@keyframes fadeInStatus {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.guest-check-status.found {
  background: #E8F5E9;
  border: 1.5px solid #81C784;
  color: #1B5E20;
}

.guest-check-status.found .status-icon {
  color: #2E7D32;
  font-size: 1.45rem;
  margin-top: 2px;
}

.guest-check-status.found .status-title {
  font-weight: 800;
  color: #1B5E20;
  margin-bottom: 2px;
  font-size: 1.02rem;
}

.guest-check-status.found .status-name {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.guest-check-status.found .status-hint {
  font-size: 0.88rem;
  color: #388E3C;
}

.guest-check-status.not-found {
  background: #FFEBEE;
  border: 1.5px solid #EF5350;
  color: #B71C1C;
}

.guest-check-status.not-found .status-icon {
  color: #D32F2F;
  font-size: 1.45rem;
  margin-top: 2px;
}

.guest-check-status.not-found .status-title {
  font-weight: 800;
  color: #C62828;
  margin-bottom: 2px;
  font-size: 1.02rem;
}

.guest-check-status.not-found .status-desc {
  font-size: 0.92rem;
  color: #721C24;
}

/* ==========================================================================
   TỐI ƯU HÓA GIAO DIỆN MOBILE & TABLET (MỞ RỘNG SÁT VIỀN & 2 MÓN TRÊN 1 HÀNG)
   ========================================================================== */

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    touch-action: pan-y;
  }

  body {
    padding-bottom: 40px !important;
  }

  .bg-drum-watermark {
    width: 85vw !important;
    height: 85vw !important;
    max-width: 340px !important;
    max-height: 340px !important;
  }

  /* Mở rộng thiệp sát viền thiết bị và khóa cố định vào khung màn hình */
  .main-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 4px auto 16px !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .greeting-card-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .luxury-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 6px !important;
    border-radius: 12px !important;
    border-width: 2.5px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .card-inner-frame {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 8px !important;
    border-radius: 8px !important;
    border-width: 1.5px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .card-signature-box {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Hoa văn góc bo gọn để không che nội dung */
  .card-corner-svg {
    width: 26px;
    height: 26px;
    opacity: 0.45;
  }
  .card-corner-svg.tl { top: 2px; left: 2px; }
  .card-corner-svg.tr { top: 2px; right: 2px; }
  .card-corner-svg.bl { bottom: 2px; left: 2px; }
  .card-corner-svg.br { bottom: 2px; right: 2px; }

  /* Header thiệp cân đối */
  .card-header {
    margin-bottom: 14px;
  }
  .card-emblem-cluster {
    gap: 8px;
    margin-bottom: 8px;
  }
  .card-flag-emblem {
    width: 38px;
    height: 25px;
  }
  .card-authority-title {
    font-size: 0.98rem;
    letter-spacing: 0.4px;
    line-height: 1.25;
    margin-bottom: 2px;
  }
  .card-authority-sub {
    font-size: 0.92rem;
    letter-spacing: 0.6px;
  }
  .card-divider-lotus {
    margin: 10px 0;
    gap: 8px;
  }
  .card-divider-lotus .bar {
    max-width: 50px;
  }
  .card-divider-lotus img {
    height: 20px;
  }
  .card-event-badge {
    font-size: 0.8rem;
    padding: 3px 12px;
    margin-bottom: 6px;
  }
  .card-title-main {
    font-size: 1.55rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  .card-title-main.font-theme-alex_brush,
  .card-title-main.font-theme-ephesis {
    font-size: 1.85rem !important;
    line-height: 1.35 !important;
  }
  .card-title-main.font-theme-charm {
    font-size: 1.65rem !important;
    line-height: 1.3 !important;
  }
  .card-title-main.font-theme-pattaya {
    font-size: 1.45rem !important;
  }

  /* Khung Kính gửi đại biểu */
  .card-salute-box {
    padding: 10px 10px;
    margin: 12px 0;
    border-left-width: 4px;
    border-radius: 0 8px 8px 0;
  }
  .card-salute-title {
    font-size: 0.82rem;
  }
  .card-salute-name {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 3px 0;
  }
  .salute-recipients-list {
    gap: 4px;
    margin: 3px 0;
  }
  .salute-recipient-item {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
  }
  .card-salute-org {
    font-size: 0.88rem;
  }

  /* Lời chúc */
  .card-message-body {
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 10px 0;
  }
  .card-message-body p,
  .greeting-para {
    margin-bottom: 6px;
    text-indent: 1.2em;
  }

  /* Khung chi tiết chương trình */
  .event-details-card {
    padding: 12px 8px;
    margin: 14px 0;
    border-radius: 10px;
  }
  .event-details-header {
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
    gap: 6px;
  }
  .event-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .event-info-item {
    gap: 8px;
    align-items: center;
  }
  .event-info-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 6px;
  }
  .event-info-text strong {
    font-size: 0.76rem;
    margin-bottom: 1px;
  }
  .event-info-text span {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  /* Khung Tra cứu đại biểu */
  .guest-identity-card {
    padding: 12px 8px;
    margin-bottom: 15px;
    border-radius: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .guest-identity-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .guest-identity-subtitle {
    font-size: 0.84rem;
  }
  .guest-check-row {
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .guest-input-container {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .guest-identity-input {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 44px;
    font-size: 0.95rem;
    padding: 8px 12px 8px 38px;
    border-radius: 8px;
  }
  .guest-field-icon {
    left: 12px;
    font-size: 1rem;
  }
  .btn-check-guest {
    height: 44px;
    font-size: 0.92rem;
    border-radius: 8px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .guest-check-status {
    padding: 10px 12px;
    font-size: 0.86rem;
    border-radius: 8px;
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .guest-check-status .status-icon {
    font-size: 1.25rem;
  }
  .guest-check-status .status-title {
    font-size: 0.95rem;
  }
  .guest-check-status .status-name {
    font-size: 0.98rem;
  }

  /* 2 nút Lựa chọn Tham dự / Báo vắng */
  .rsvp-options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }
  .rsvp-option-label {
    min-width: 0;
    max-width: none;
  }
  .rsvp-card-choice {
    padding: 9px 4px;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 5px;
    border-radius: 8px;
    border-width: 1.5px;
  }
  .rsvp-card-choice i {
    font-size: 1rem;
  }

  /* Khối Chọn Món Điểm Tâm */
  .checkin-section {
    margin-top: 20px;
    padding-top: 18px;
  }
  .checkin-title-heading {
    margin-bottom: 14px;
    text-align: center;
  }
  .checkin-title-heading h3 {
    font-size: 1.25rem;
    gap: 8px;
  }
  .checkin-title-heading h3 i {
    font-size: 1.15rem;
  }

  .menu-selection-hint {
    font-size: 0.82rem;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    gap: 6px;
  }
  .menu-selection-hint i {
    font-size: 0.95rem;
  }

  .menu-category-header {
    font-size: 0.92rem;
    margin: 15px 0 8px;
    gap: 6px;
  }
  .menu-category-header span.badge-must {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  /* ============================================================
     BẮT BUỘC HIỂN THỊ 2 MÓN TRÊN 1 HÀNG TRÊN MÀN HÌNH DI ĐỘNG
     ============================================================ */
  .menu-items-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
  }

  .menu-items-grid > label {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    cursor: pointer;
  }

  .menu-dish-card {
    padding: 6px !important;
    border-radius: 8px !important;
    border: 1.5px solid #EADBCC !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    position: relative !important;
    background: #FFFFFF !important;
    overflow: hidden !important;
  }

  /* Tối ưu ảnh thực đơn hiển thị rõ nét, tỷ lệ 4:3 đẹp mắt */
  .dish-icon-badge {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    border-radius: 6px !important;
    margin-bottom: 6px !important;
    background: linear-gradient(135deg, #FFF9F2 0%, #FDEED9 100%) !important;
    border: 1px solid #EAD8C3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .dish-icon-badge.has-img {
    background: #FAFAFA !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  }

  .dish-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 5px !important;
    display: block !important;
  }

  /* Tên món: font serif trang nhã, tối đa 2 dòng không xô lệch */
  .dish-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #2A170F !important;
    margin-bottom: 3px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
  }

  /* Mô tả món: tối đa 2 dòng súc tích */
  .dish-desc {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    color: #6B5B52 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    flex: 1 !important;
  }

  /* Nhãn Đã Chọn: nhỏ gọn, đặt trên ảnh */
  .dish-radio-input:checked + .menu-dish-card {
    border-color: #A30D11 !important;
    background: #FFF9F7 !important;
    box-shadow: 0 0 0 1px #A30D11, 0 3px 10px rgba(163, 13, 17, 0.15) !important;
  }

  .dish-radio-input:checked + .menu-dish-card::after {
    content: '✓ ĐÃ CHỌN' !important;
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    background: #A30D11 !important;
    color: #FFF2A3 !important;
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
    border: 1px solid #FFD700 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
    z-index: 2 !important;
  }

  /* Input ghi chú & Lời chúc */
  .form-group-custom {
    margin-bottom: 12px;
  }
  .form-group-custom label {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  .form-group-custom input,
  .form-group-custom textarea {
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  /* Nút Xác nhận gửi */
  .btn-submit-gold {
    max-width: 100%;
    padding: 12px 14px;
    font-size: 0.92rem;
    margin: 16px 0 10px;
    border-radius: 30px;
  }

  /* Vé điện tử E-ticket */
  .e-ticket-card {
    padding: 14px 8px;
    border-radius: 12px;
    margin: 14px 0;
    border-width: 2px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .e-ticket-header {
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  .e-ticket-code {
    font-size: 1.25rem;
    letter-spacing: 1px;
  }
  .e-ticket-details {
    padding: 10px 8px;
    border-radius: 8px;
  }
  .e-ticket-row {
    margin-bottom: 8px;
  }
  .e-ticket-label {
    font-size: 0.74rem;
  }
  .e-ticket-val {
    font-size: 0.92rem;
  }
}

@media (max-width: 360px) {
  .dish-title {
    font-size: 0.8rem !important;
  }
  .dish-desc {
    font-size: 0.68rem !important;
  }
  .card-authority-title {
    font-size: 0.9rem;
  }
}


