:root {
  --primary: #0f172a;
  --secondary: #0ea5e9;
  --accent: #ea580c;
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #10b981;
  --danger: #dc2626;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --text-dark: #334155;
  --text-light: #64748b;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-float: 0 30px 40px -10px rgb(0 0 0 / 0.15);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--primary); font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.section-title { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.5px; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.my-section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4 { margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-weight: 600; font-size: 16px;
  border-radius: 50px; text-decoration: none; cursor: pointer;
  transition: all 0.2s ease; border: 2px solid transparent; text-align: center;
}
.btn-large { padding: 16px 36px; font-size: 18px; }
.btn-full { width: 100%; }
.btn-primary { background-color: var(--primary); color: white; }
.btn-accent { background-color: var(--accent); color: white; }
.btn-accent:active { transform: scale(0.98); background-color: #c2410c; }
.btn-outline { background-color: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-white { background-color: rgba(255,255,255,0.1); color: white; border-color: white; backdrop-filter: blur(4px); }
.btn-outline-white:hover { background-color: white; color: var(--primary); }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 800px; display: flex; flex-direction: column; background-size: cover; background-position: center; color: white; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.1); z-index: 1; }
.navbar { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; padding: 24px 5% 0; }
.logo-center-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 24px 0; }
.logo-wrap { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 130px; width: auto; object-fit: contain; }
.logo-slogan { margin-top: -12px; font-family: var(--font-display); font-size: 24px; font-weight: 900; }
.lang-selector { position: absolute; top: 24px; right: 24px; z-index: 20; }
.goog-te-gadget-simple { background-color: transparent !important; border: 1px solid rgba(255,255,255,0.6) !important; border-radius: 50px !important; padding: 8px 16px !important; backdrop-filter: blur(4px); display: flex !important; align-items: center; }
.goog-te-gadget-simple span, .goog-te-gadget-simple a { color: white !important; font-family: var(--font-main) !important; font-weight: 600 !important; text-decoration: none !important; }
.goog-te-gadget-simple img { display: none !important; }
.goog-te-gadget-simple::before { content: '🌐'; margin-right: 8px; }
.hero-content { position: relative; z-index: 10; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 24px; margin-top: -60px; }
.hero-title { color: #ffffff !important; font-size: clamp(40px, 8vw, 72px); max-width: 900px; margin-bottom: 24px; text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 4px 20px rgba(0,0,0,0.5); }
.hero-subtitle { color: #ffffff !important; font-size: clamp(16px, 2.5vw, 22px); font-weight: 500; max-width: 1000px; margin-bottom: 40px; text-shadow: 0 2px 8px rgba(0,0,0,0.8); white-space: nowrap; }
.hero-cta-group { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }

/* USP */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.usp-card { background: white; border-radius: var(--radius-md); padding: 32px 24px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.usp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.usp-icon { font-size: 48px; margin-bottom: 16px; }
.usp-card h4 { font-size: 18px; margin-bottom: 12px; }
.usp-card p { font-size: 14px; color: var(--text-light); }

/* Services */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 48px; max-width: 900px; margin-inline: auto; }
.package-card { background: white; border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; border: 1px solid #f1f5f9; display: flex; flex-direction: column; }
.package-card.highlight { border: 2px solid var(--secondary); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.badge-best { position: absolute; top: 16px; right: -36px; background: var(--secondary); color: white; padding: 6px 40px; transform: rotate(45deg); font-size: 13px; font-weight: 700; }
.package-name { font-size: 24px; margin-bottom: 16px; }
.package-price { font-size: 48px; font-weight: 800; color: var(--primary); font-family: var(--font-display); margin-bottom: 24px; line-height: 1; }
.package-price .unit { font-size: 16px; font-weight: 500; color: var(--text-light); }
.package-desc { color: var(--text-light); margin-bottom: 32px; flex: 1; }

/* Gallery */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; grid-auto-rows: 250px; }
.portfolio-item { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s; }
.portfolio-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); z-index: 2; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.portfolio-item:hover img { transform: scale(1.05); }
@media (min-width: 768px) {
  .img-large { grid-column: span 2; grid-row: span 2; }
  .img-tall { grid-row: span 2; }
}

/* Schedule */
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; text-align: left; }
.schedule-box { background: white; border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9; height: 100%; }
.schedule-box h3 { font-size: 24px; color: var(--primary); margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; position: relative; }
.schedule-box h3::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 3px; background: var(--accent); border-radius: 4px; }
.schedule-box h4 { font-size: 18px; color: var(--text-dark); margin-top: 24px; margin-bottom: 12px; font-weight: 700; }
.schedule-box ul { padding-left: 0; color: var(--text-dark); list-style-type: none; }
.schedule-box li { margin-bottom: 12px; position: relative; font-size: 15px; padding-left: 20px; line-height: 1.5; }
.schedule-box li::before { content: '•'; color: var(--secondary); position: absolute; left: 0; font-weight: bold; font-size: 18px; }

/* Booking Form */
.form-section { background-color: #f1f5f9; padding: 80px 0; }
.form-wrapper { background: white; border-radius: var(--radius-lg); padding: 32px; max-width: 800px; margin: 0 auto; box-shadow: var(--shadow-float); }
.booking-form { margin-top: 24px; }
.form-row { display: flex; gap: 24px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; text-align: left; margin-bottom: 24px; }
.form-group.half { flex: 1; margin-bottom: 0; }
.form-group label { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--primary); }
.input-control { width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font-main); transition: border-color 0.2s, box-shadow 0.2s; background: #fff; }
.input-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1); }
.input-control[readonly] { background: #f1f5f9; color: var(--text-light); cursor: not-allowed; }
select.input-control { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; -webkit-appearance: none; }
.input-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ── Success State ── */
.success-state {
  text-align: center;
  padding: 24px;
  background: var(--success-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--success-border);
}
.success-icon { font-size: 48px; margin-bottom: 12px; }
.success-state h3 { color: var(--success); font-size: 26px; margin-bottom: 8px; }
.success-state > p { font-size: 14px; color: var(--text-dark); margin-bottom: 12px; font-weight: 500; }

/* Khung thông tin đặt chỗ */
.booking-summary {
  background: white; border: 1px solid #e2e8f0; border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 14px; text-align: left;
  font-size: 14px; color: var(--text-dark); box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.booking-summary-row {
  display: flex; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px dashed #e2e8f0;
}
.booking-summary-row:last-child { border-bottom: none; }

/* Khung hoá đơn giá */
.invoice-box {
  background: white; border: 1px solid #e2e8f0; border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 14px; text-align: left;
  font-size: 14px; color: var(--text-dark); box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.invoice-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
}
.invoice-row.discount { color: var(--success); }
.invoice-row.total {
  border-top: 2px solid var(--success-border);
  margin-top: 6px; padding-top: 10px;
  font-size: 17px; font-weight: 700; color: var(--success);
}
.invoice-tag {
  display: inline-block; background: #d1fae5; color: var(--success);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 50px;
  margin-left: 6px;
}

/* Khung thanh toán QR */
.payment-box {
  background: white; border: 1px solid #e2e8f0; border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 14px; text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.payment-box p { font-size: 13px; margin-bottom: 6px; color: var(--text-dark); }
.payment-box img { max-width: 140px; margin: 0 auto 8px; display: block; border-radius: 8px; border: 1px solid #e2e8f0; }
.payment-box .bank-info { font-size: 14px; margin-bottom: 2px; }
.payment-box .transfer-note { font-size: 14px; color: var(--text-dark); }
.payment-box .transfer-note strong { color: var(--primary); }

/* Scroll hint */
.scroll-hint {
  color: var(--accent); font-weight: bold; background: white;
  padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--accent);
  font-size: 13px; margin-bottom: 0;
}

/* Error alert inline */
.alert-error {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 16px; color: var(--danger);
  font-size: 14px; font-weight: 500; display: none;
}
.alert-error.show { display: block; }

/* Form notes */
.form-notes { font-size: 14px; color: var(--text-light); text-align: left; background: #f8fafc; padding: 16px; border-radius: var(--radius-sm); }
.form-notes ul { padding-left: 20px; margin-top: 8px; }
.form-notes li { margin-bottom: 4px; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; background: white; padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.faq-item { border-bottom: 1px solid #f1f5f9; }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-light); font-size: 15px; }
.faq-answer p { padding-bottom: 24px; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-icon { transition: transform 0.3s ease; font-size: 12px; color: var(--secondary); }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; align-items: start; }
.location-text { font-size: 16px; }
.location-images { display: flex; flex-direction: column; gap: 16px; }
.loc-img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); object-fit: contain; }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); padding: 100px 0; text-align: center; color: white; }

/* Chatbot */
.chatbot-shell {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #c2410c);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-float);
  cursor: pointer;
}

.chatbot-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16);
}

.chatbot-panel {
  width: min(380px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 24px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
  border-bottom: 1px solid #e2e8f0;
}

.chatbot-header strong {
  display: block;
  color: var(--primary);
}

.chatbot-header p {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 13px;
}

.chatbot-close {
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chatbot-messages {
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
}

.chatbot-message {
  margin-bottom: 12px;
}

.chatbot-message:last-child {
  margin-bottom: 0;
}

.chatbot-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.chatbot-message.bot .chatbot-bubble {
  background: #f8fafc;
  color: var(--text-dark);
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 6px;
}

.chatbot-message.user {
  text-align: right;
}

.chatbot-message.user .chatbot-bubble {
  background: linear-gradient(135deg, var(--secondary), #0284c7);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.chatbot-suggestion {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.chatbot-input-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
}

.chatbot-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font: inherit;
}

.chatbot-send {
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.chatbot-cta {
  display: block;
  margin: 0 16px 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #c2410c);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

/* Footer */
footer { padding: 40px 0; text-align: center; color: var(--text-light); background: #f8fafc; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
  .hero { min-height: 100svh; justify-content: center; }
  .navbar { padding-top: 16px; }
  .logo-img { height: 90px; }
  .logo-slogan { font-size: 16px; }
  .lang-selector { position: absolute; top: 16px; right: 16px; transform: scale(0.8); transform-origin: top right; }
  .hero-subtitle { white-space: normal; font-size: 15px; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; }
  .form-row { flex-direction: column; gap: 0; }
  .form-group.half { margin-bottom: 24px; }
  .form-wrapper { padding: 24px 16px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .usp-grid { gap: 16px; }
  .schedule-grid { grid-template-columns: 1fr; gap: 24px; }
  .schedule-box { padding: 24px; }
  .package-card.highlight { transform: none; }
  .my-section { padding: 60px 0; }
  .location-grid { grid-template-columns: 1fr; gap: 32px; }
  .chatbot-shell { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
  .chatbot-panel { width: 100%; }
  .chatbot-toggle { justify-content: center; }
}
