/* =============================================
   🎨 LUX THEME — KIM TÀI LỘC / LIMOUSINE STYLE
   ============================================= */

/* -------- VARIABLES -------- */
:root {
  --base-dark: #080C14;
  --base-light: #FAFBFF;
  --primary-blue-vibrant: #2563EB;
  --primary-blue-dark: #0D4FC9;
  --primary-blue-light: #CFDFFF;
  --accent-orange-vibrant: #F97316;
  --accent-orange-dark: #C2410C;
  --richness-purple: #9333EA;
  --signal-success: #16A34A;
  --signal-error: #DC2626;
  --text-main: #080C14;
  --text-secondary: #334155;
  --text-info: #64748B;
  --footer-bg: #030711;
  --footer-text: #FAFBFF;
  --footer-heading: #FAFBFF;
  --footer-link-hover: #2563EB;
  --footer-social-hover: #F97316;
}

/* -------- BASE -------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background-color: var(--base-light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Tahoma', serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
}

/* -------- HERO -------- */
.hero {
  background: linear-gradient(135deg, var(--primary-blue-vibrant), var(--primary-blue-dark));
  color: white;
  padding: 80px 20px;
  text-align: center;
  box-shadow: inset 0 -6px 15px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero p {
  opacity: 0.9;
  font-size: 1.2rem;
}

.hero .btn {
  border-radius: 9999px;
  padding: 12px 28px;
  font-weight: 600;
  transition: all .3s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero .btn:hover {
  transform: translateY(-3px);
}

/* -------- SEARCH & INPUT -------- */
input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border: 2px solid var(--primary-blue-light);
  background-color: var(--base-light);
  color: var(--text-main);
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  transition: all 0.3s ease;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-blue-vibrant);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.form-control.big-input {
  font-size: 1.1rem;
  padding: 16px 20px;
  border-radius: 1rem;
  border: 2px solid var(--primary-blue-light);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
}

.form-control.big-input:focus {
  border-color: var(--primary-blue-vibrant);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* -------- AUTOCOMPLETE -------- */
.autocomplete-suggestions {
  position: absolute;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-radius: 10px;
  margin-top: 5px;
  overflow-y: auto;
  display: none;
  animation: fadeIn 0.2s ease;
}

.autocomplete-suggestion {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.autocomplete-suggestion:hover {
  background: #f1f5ff;
  color: var(--primary-blue-vibrant);
  font-weight: 500;
}

/* -------- CARD (VÉ) -------- */
.ticket-card {
  background-color: var(--base-light);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all .4s cubic-bezier(0.23, 1, 0.32, 1);
}

.ticket-card.show {
  opacity: 1;
  transform: translateY(0);
}

.ticket-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* -------- SEAT GRID -------- */
.seat-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #f9fbff;
  padding: 1.5em 1em;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.03);
}

.row-seat {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.seat {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  border: 2px solid var(--primary-blue-vibrant);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  transition: all 0.25s ease;
  user-select: none;
}

.seat.available {
  background: #e9f2ff;
  color: var(--primary-blue-vibrant);
}

.seat.available:hover {
  background: var(--primary-blue-vibrant);
  color: white;
  transform: scale(1.08);
}

.seat.selected {
  background: var(--primary-blue-vibrant);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.4);
}

.seat.booked {
  background: #dc3545;
  color: white;
  opacity: 0.9;
  cursor: not-allowed;
}

.seat.driver {
  background: #6c757d;
  color: white;
  cursor: not-allowed;
}

/* -------- BUTTONS -------- */
.lux-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.lux-button.primary {
  background-color: var(--primary-blue-vibrant);
  color: white;
}

.lux-button.primary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(13, 79, 201, 0.5);
}

.lux-button.accent {
  background-color: var(--accent-orange-vibrant);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.lux-button.accent:hover {
  background-color: var(--accent-orange-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(194, 65, 12, 0.5);
}

/* -------- MODAL -------- */
.modal-content {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: none;
}

.modal-footer {
  border-top: none;
}

/* -------- TOAST -------- */
.toast {
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* -------- ANIMATION -------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======= FIX: Input password nhỏ hơn các ô khác ======= */

/* Đồng bộ chiều cao giữa input, icon và nút con mắt */
.input-group .form-control,
.input-group .input-group-text,
.input-group .btn {
  height: 56px !important;
  font-size: 1.05rem;
  border-radius: 0.9rem !important;
}

/* Icon trong input */
.input-group-text {
  background: var(--primary-blue-light);
  color: var(--primary-blue-dark);
  border: 2px solid var(--primary-blue-light);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nút con mắt */
.input-group .btn-outline-secondary {
  border: 2px solid var(--primary-blue-light);
  color: var(--primary-blue-dark);
  background: var(--base-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.input-group .btn-outline-secondary:hover {
  background: var(--primary-blue-vibrant);
  color: #fff;
}

/* Khi focus toàn group */
.input-group:focus-within .input-group-text,
.input-group:focus-within .btn-outline-secondary,
.input-group:focus-within .form-control {
  border-color: var(--primary-blue-vibrant) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.seat input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .seat {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
  }

  .form-control.big-input {
    font-size: 1rem;
  }
}