/* ============================================================
   IVR (Indo-Viet Click2Dine) — Global Design System v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,500&display=swap');

/* ── CSS Variables ── */
:root {
  --clr-bg:         #0d0f14;
  --clr-bg-2:       #131720;
  --clr-surface:    rgba(255,255,255,0.04);
  --clr-border:     rgba(255,255,255,0.08);
  --clr-gold:       #c8973a;
  --clr-gold-light: #e6b55a;
  --clr-gold-pale:  rgba(200, 151, 58, 0.12);
  --clr-accent:     #d4691e;
  --clr-green:      #3cb371;
  --clr-red:        #e05252;
  --clr-text:       #f0ece4;
  --clr-muted:      #8a8580;
  --clr-label:      #bfb8ae;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --shadow-card:    0 8px 40px rgba(0,0,0,0.45);
  --shadow-gold:    0 4px 24px rgba(200, 151, 58, 0.25);
  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body:      'Outfit', sans-serif;
  --font-display:   'Playfair Display', serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }

.display { font-family: var(--font-display); }

.text-gold    { color: var(--clr-gold); }
.text-muted   { color: var(--clr-muted); }
.text-sm      { font-size: 0.85rem; }
.text-center  { text-align: center; }
.text-green   { color: var(--clr-green); }
.text-red     { color: var(--clr-red); }

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

.flex       { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding: 16px 0;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--clr-text);
}

.navbar .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.navbar .logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.navbar .logo-sub {
  font-size: 0.7rem;
  color: var(--clr-gold);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--clr-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--clr-text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(200, 151, 58, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 151, 58, 0.45);
}

.btn-ghost {
  background: var(--clr-surface);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.btn-outline {
  background: transparent;
  color: var(--clr-gold);
  border: 1.5px solid var(--clr-gold);
}

.btn-outline:hover {
  background: var(--clr-gold-pale);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 34px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: rgba(200, 151, 58, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
}

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--clr-gold);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--clr-muted); }

.form-control:focus {
  border-color: var(--clr-gold);
  background: rgba(200, 151, 58, 0.06);
  box-shadow: 0 0 0 3px rgba(200, 151, 58, 0.12);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8580' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

select.form-control option {
  background: var(--clr-bg-2);
  color: var(--clr-text);
}

textarea.form-control { resize: vertical; min-height: 100px; }

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

/* ── Badges & Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-gold {
  background: var(--clr-gold-pale);
  color: var(--clr-gold-light);
  border: 1px solid rgba(200,151,58,0.2);
}

.badge-green {
  background: rgba(60,179,113,0.12);
  color: var(--clr-green);
  border: 1px solid rgba(60,179,113,0.2);
}

.badge-red {
  background: rgba(224,82,82,0.12);
  color: var(--clr-red);
  border: 1px solid rgba(224,82,82,0.2);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--clr-border);
  margin: 28px 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--clr-muted);
  font-size: 0.82rem;
  margin: 24px 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-border);
}

/* ── Section Headers ── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-sub {
  font-size: 1rem;
  color: var(--clr-muted);
  max-width: 520px;
  margin-top: 12px;
  line-height: 1.7;
}

/* ── Steps Timeline ── */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(to bottom, var(--clr-gold), transparent);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}

.step-content h4 { font-size: 0.95rem; margin-bottom: 4px; }
.step-content p  { font-size: 0.85rem; color: var(--clr-muted); }

/* ── Policy Box ── */
.policy-box {
  background: rgba(200, 151, 58, 0.06);
  border: 1px solid rgba(200, 151, 58, 0.2);
  border-left: 4px solid var(--clr-gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.policy-box h4 {
  font-size: 0.85rem;
  color: var(--clr-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.policy-box p, .policy-box li {
  font-size: 0.88rem;
  color: var(--clr-label);
  line-height: 1.7;
}

.policy-box ul { padding-left: 18px; }

/* ── Gala Fields (hidden by default) ── */
#gala-section {
  display: none;
  background: rgba(200, 151, 58, 0.05);
  border: 1px solid rgba(200, 151, 58, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 4px;
  animation: fadeSlideIn 0.3s ease;
}

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

/* ── Status Pills ── */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.status-submitted::before  { background: #888; }
.status-processing::before { background: #c8973a; }
.status-confirmed::before  { background: #3cb371; }
.status-cancelled::before  { background: #e05252; }

/* ── Tab System ── */
.tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); padding: 4px; }

.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--clr-muted);
  border-radius: calc(var(--radius-sm) - 2px);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-accent));
  color: #fff;
  box-shadow: 0 2px 12px rgba(200,151,58,0.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeSlideIn 0.3s ease; }

/* ── Toast Notification ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 280px;
  display: none;
  box-shadow: var(--shadow-card);
  z-index: 999;
  animation: toastIn 0.3s ease;
}

.toast.show { display: flex; align-items: flex-start; gap: 12px; }

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

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 40px 0;
  color: var(--clr-muted);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .grid-2, .grid-3       { grid-template-columns: 1fr; }
  .nav-links              { display: none; }
}
