@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #FF8BA7; /* Soft Pink */
  --primary-dark: #FA709A;
  --secondary: #B8E1FF; /* Baby Blue */
  --accent: #FFD3B6; /* Cream/Peach */
  --text: #33272A; /* Dark Brownish for softness */
  --muted: #594A4E;
  --background: #FFF5F7; /* Very light pink/cream background */
  --surface: #ffffff;
  --border: #FFE3E8;
  --footer-bg: #33272A;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px rgba(255, 139, 167, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.7;
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, .logo span {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* --- Header & Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo span {
  color: var(--primary-dark);
  font-size: 1.8rem;
  background: linear-gradient(to right, var(--primary-dark), #FF9A9E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

/* --- Hero Section (AIDA: Attention) --- */
.hero {
  padding: 160px 0 100px;
  background: radial-gradient(circle at top right, #FFF1F3 0%, var(--background) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: var(--accent);
  filter: blur(100px);
  opacity: 0.3;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent);
  color: #D48166;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--text);
}

.hero h1 span {
  color: var(--primary-dark);
  position: relative;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.cta-button {
  background: var(--primary-dark);
  color: #fff;
  padding: 18px 36px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 15px 30px rgba(250, 112, 154, 0.3);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(250, 112, 154, 0.4);
}

.ghost-button {
  padding: 18px 36px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  background: transparent;
  transition: all 0.3s ease;
}

.ghost-button:hover {
  background: var(--primary);
  color: #fff;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.5s ease;
}

.hero-media img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* --- Features (AIDA: Interest) --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

/* --- Countdown Timer --- */
.countdown-container {
  background: var(--footer-bg);
  color: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  gap: 20px;
  margin-top: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

.timer-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
}

.timer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.8;
}

/* --- Testimonials --- */
.testimonials {
  padding: 100px 0;
  background: #FFF;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--background);
  padding: 30px;
  border-radius: var(--radius-md);
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-dark);
}

/* --- FAQ --- */
.faq {
  padding: 100px 0;
}

.faq-item {
  background: var(--surface);
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--background);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px;
  max-height: 1000px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* --- Advisor Section --- */
.advisor-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #fff 0%, #fff0f5 100%);
}

.advisor-box {
  background: #fff;
  padding: 60px;
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 100px rgba(250, 112, 154, 0.1);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.advisor-box::before {
  content: '🤖';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 100px;
  opacity: 0.05;
  transform: rotate(15deg);
}

.advisor-box h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.advisor-input-wrapper {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  background: var(--background);
  padding: 10px;
  border-radius: 40px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.advisor-input-wrapper:focus-within {
  border-color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(250, 112, 154, 0.15);
}

.advisor-box textarea {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 25px;
  font-size: 1.1rem;
  resize: none;
  outline: none;
  height: 60px;
  line-height: 30px;
}

.advisor-box .cta-button {
  padding: 0 40px;
  border-radius: 30px;
  white-space: nowrap;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advisor-result {
  margin-top: 50px;
  text-align: left;
  animation: slideUp 0.5s ease-out;
}

.advisor-answer-card {
  background: var(--secondary-light);
  padding: 30px;
  border-radius: 24px;
  border-left: 6px solid var(--primary-dark);
  position: relative;
}

.advisor-answer-card::after {
  content: 'Hiko Assistant';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--primary-dark);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

#advisorAnswerText {
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.15rem;
  white-space: pre-line;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Lead Form --- */
.lead-section {
  padding: 100px 0;
}

.lead-box {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: 0 20px 50px rgba(255, 139, 167, 0.15);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all 0.3s ease;
  resize: vertical;
  background-color: #fff;
}

.lead-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%236b7280' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 40px;
}

.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 139, 167, 0.1);
}

.lead-form select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

/* --- Gallery (Bento Grid Style) --- */
.gallery {
  padding: 100px 0;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(250, 112, 154, 0.2);
  z-index: 2;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .gallery-item.large, .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid, .lead-box {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .lead-box, .advisor-box {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-media img {
    transform: none;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-media {
    order: 1;
  }
  
  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }

  .advisor-input-wrapper {
    flex-direction: column;
    border-radius: 20px;
    padding: 15px;
  }

  .advisor-box textarea {
    height: 100px;
  }

  .advisor-box .cta-button {
    padding: 15px;
    width: 100%;
  }

  .nav {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .section-header h2, .hero h1, .advisor-box h2 {
    font-size: 1.8rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Lightbox Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-caption {
  margin-top: 20px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== Survey Form ===== */
/* Survey section: single column, centered (override 2-col grid của .lead-box) */
#survey .lead-box {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 56px;
}

#survey .lead-intro {
  text-align: center;
  margin-bottom: 8px;
}

#survey .lead-intro h2 {
  margin-bottom: 12px;
}

#survey .lead-intro p {
  max-width: 520px;
  margin: 0 auto;
  color: #6b7280;
}

/* Fieldset = card mềm hồng nhạt */
.survey-form .survey-group {
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 14px 20px 18px;
  margin: 22px 0 0;
  background: #FFFBFC;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.survey-form .survey-group:hover,
.survey-form .survey-group:focus-within {
  border-color: rgba(255, 139, 167, 0.5);
  box-shadow: 0 4px 16px rgba(255, 139, 167, 0.08);
}

.survey-form .survey-group legend {
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 12px;
  background: #FFF;
  border-radius: 10px;
  color: var(--text);
  line-height: 1.45;
}

.survey-form .survey-hint {
  font-weight: 400;
  font-size: 0.82rem;
  color: #9ca3af;
  margin-left: 6px;
}

/* Mỗi lựa chọn: circle/box bên TRÁI, text bên PHẢI, trên 1 dòng */
.survey-form .survey-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.97rem;
  color: var(--text);
  border-radius: 12px;
  transition: background 0.18s ease;
  user-select: none;
  line-height: 1.4;
}

.survey-form .survey-opt:hover {
  background: rgba(255, 139, 167, 0.08);
}

/* QUAN TRỌNG: override .lead-form input chung (width:100%, padding 16px, border 2px) cho radio/checkbox */
.survey-form .survey-opt input[type="radio"],
.survey-form .survey-opt input[type="checkbox"] {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  margin: 0;
  accent-color: var(--primary);
  flex: 0 0 auto;
  cursor: pointer;
}

/* Row "Khác:" cho phép input text inline */
.survey-form .survey-other-row {
  flex-wrap: wrap;
  gap: 10px;
}

.survey-form .survey-other-input {
  flex: 1 1 200px;
  min-width: 0;
  width: auto;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  margin-left: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.survey-form .survey-other-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 139, 167, 0.12);
}

/* Label cho 2 input text Tên + SĐT */
.survey-form > label {
  display: block;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--text);
}

.survey-form > input[type="text"],
.survey-form > input[type="tel"] {
  margin-bottom: 0;
}

.survey-form .cta-button {
  margin-top: 28px;
  width: 100%;
}

@media (max-width: 768px) {
  #survey .lead-box {
    padding: 28px 20px;
  }
  .survey-form .survey-group {
    padding: 12px 16px 14px;
  }
  .survey-form .survey-opt {
    padding: 8px 10px;
    font-size: 0.94rem;
  }
}

/* --- Chatbot Widget --- */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: "Inter", sans-serif;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), #FF9A9E);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(250, 112, 154, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(250, 112, 154, 0.5);
}

.chatbot-window {
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(255, 139, 167, 0.2);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 75px;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1001;
}

.chatbot-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 16px 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chatbot-info {
  display: flex;
  flex-direction: column;
}

.chatbot-name {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chatbot-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #2ec4b6;
  border-radius: 50%;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chatbot-close:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFF9FA;
  scroll-behavior: smooth;
}

.chatbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  word-wrap: break-word;
}

.chatbot-msg.bot {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(255,139,167,0.05);
}

.chatbot-msg.user {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(250, 112, 154, 0.15);
}

.chatbot-action-container {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatbot-action-btn {
  display: block;
  text-align: center;
  background: var(--primary-dark);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(250,112,154,0.25);
  transition: transform 0.2s;
}

.chatbot-action-btn:hover {
  transform: translateY(-2px);
}

.chatbot-action-btn.secondary {
  background: var(--secondary);
  color: var(--text) !important;
  box-shadow: 0 4px 12px rgba(184,225,255,0.25);
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 12px;
  background: #FFF9FA;
  border-top: 1px dashed var(--border);
  max-height: 130px;
  overflow-y: auto;
}

.chatbot-chip {
  background: #ffffff;
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chatbot-chip:hover {
  background: var(--primary);
  color: #fff;
}

.chatbot-input-area {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--background);
}

.chatbot-input:focus {
  border-color: var(--primary);
  background: #fff;
}

.chatbot-send-btn {
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 10px rgba(250,112,154,0.2);
}

.chatbot-send-btn:hover {
  transform: scale(1.05);
}

.chatbot-send-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Payment Modal --- */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(51, 39, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.payment-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal-container {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(51, 39, 42, 0.15);
  border: 1px solid var(--border);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
}

.payment-modal-overlay.open .payment-modal-container {
  transform: scale(1) translateY(0);
}

.payment-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFF9FA;
}

.payment-modal-title {
  margin: 0;
  font-size: 1.3rem;
  color: var(--primary-dark);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.payment-modal-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0 5px;
}

.payment-modal-close:hover {
  opacity: 1;
}

.payment-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payment-modal-content-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Two columns on desktop */
@media (min-width: 576px) {
  .payment-modal-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
  }
}

.payment-instruction-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.payment-qr-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--primary);
  display: inline-block;
  position: relative;
  box-shadow: 0 4px 12px rgba(255, 139, 167, 0.08);
}

.payment-qr-image {
  width: 200px;
  height: 200px;
  display: block;
  object-fit: contain;
}

.payment-detail-card {
  background: #FFF5F7;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.payment-detail-label {
  color: var(--muted);
}

.payment-detail-value {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-detail-value.highlight {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.payment-copy-btn {
  background: transparent;
  border: none;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.payment-copy-btn:hover {
  background: rgba(255, 139, 167, 0.1);
}

.payment-status-box {
  background: #f3f4f6;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid #e5e7eb;
}

.payment-status-box.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.payment-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #d1d5db;
  border-top-color: var(--primary-dark);
  border-radius: 50%;
  animation: payment-spin 0.8s linear infinite;
}

@keyframes payment-spin {
  to { transform: rotate(360deg); }
}

.payment-success-icon {
  width: 24px;
  height: 24px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.payment-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #FFF9FA;
}

.payment-btn {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.payment-btn.secondary {
  background: #e5e7eb;
  color: #4b5563;
}

.payment-btn.secondary:hover {
  background: #d1d5db;
}

.payment-btn.primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 10px rgba(250, 112, 154, 0.2);
}

.payment-btn.primary:hover {
  background: #e05e83;
}

/* =============================================
   THANK YOU MODAL - Màn hình Cảm ơn
   ============================================= */
.thankyou-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(51, 39, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.thankyou-modal-overlay.open {
  display: flex;
  animation: tyOverlayIn 0.35s ease;
}

@keyframes tyOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.thankyou-modal-container {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(250, 112, 154, 0.22), 0 8px 24px rgba(0,0,0,0.1);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  animation: tySlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.thankyou-header {
  background: linear-gradient(135deg, #FA709A 0%, #fee140 100%);
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
}

/* Animated checkmark circle */
.thankyou-check-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 4px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: tyCheckPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes tyCheckPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.thankyou-check-circle svg {
  width: 40px;
  height: 40px;
  color: #fff;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: tyCheckDraw 0.6s ease 0.5s forwards;
}

@keyframes tyCheckDraw {
  to { stroke-dashoffset: 0; }
}

.thankyou-header h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.thankyou-header p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin: 0;
}

.thankyou-body {
  padding: 28px 32px 24px;
}

.thankyou-info-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.thankyou-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9rem;
}

.thankyou-info-row:not(:last-child) {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.thankyou-info-label {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.thankyou-info-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.thankyou-email-notice {
  background: linear-gradient(135deg, rgba(250,112,154,0.08), rgba(255,211,182,0.2));
  border: 1px solid rgba(250,112,154,0.2);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.thankyou-email-notice .ty-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.thankyou-email-notice strong {
  color: var(--primary-dark);
}

.thankyou-close-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FA709A, #fee140);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(250, 112, 154, 0.3);
  letter-spacing: 0.3px;
}

.thankyou-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(250, 112, 154, 0.4);
}

.thankyou-close-btn:active {
  transform: translateY(0);
}

.thankyou-footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
  margin-bottom: 0;
}

