/* ===================================
   TAXI ĐIỆN BDD — Main Stylesheet
   =================================== */

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

/* ---- CSS Variables ---- */
:root {
  --primary: #00D2FF;
  --primary-dark: #0099CC;
  --secondary: #7B2FBE;
  --accent: #00FF88;
  --bg-dark: #060614;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.07);
  --border: rgba(0, 210, 255, 0.2);
  --border-hover: rgba(0, 210, 255, 0.5);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --success: #00FF88;
  --warning: #FFB800;
  --danger: #FF4757;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- Animated Background ---- */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-animated::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 20%, rgba(0, 210, 255, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(123, 47, 190, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 0%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, 2%) scale(1.05); }
}

/* Floating particles */
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  opacity: 0.15;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

/* ---- Main Container ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

/* ---- Header ---- */
.header {
  text-align: center;
  padding: 32px 0 24px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-glow);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,210,255,0.3); }
  50% { box-shadow: 0 0 40px rgba(0,210,255,0.6), 0 0 80px rgba(123,47,190,0.3); }
}

.logo-text {
  text-align: left;
}

.logo-name {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ---- Hero Banner ---- */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(0,210,255,0.1) 0%, rgba(123,47,190,0.1) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.hero-car {
  font-size: 60px;
  text-align: center;
  margin-bottom: 8px;
  animation: carBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(0,210,255,0.5));
}

@keyframes carBounce {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-5px) translateX(3px); }
  75% { transform: translateY(-3px) translateX(-3px); }
}

.hero-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.hero-desc {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.hero-stat {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-num {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- Section Title ---- */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- Card ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
}

/* ---- Form Styles ---- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-label .label-icon {
  font-size: 14px;
}

.form-label .required {
  color: var(--danger);
  font-size: 14px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder {
  color: var(--text-muted);
  font-size: 14px;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(0, 210, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

.form-control:focus + .input-hint { display: block; }

.input-hint {
  display: none;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  padding-left: 4px;
}

select.form-control {
  cursor: pointer;
  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='%2300D2FF' 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;
}

select.form-control option {
  background: #1a1a2e;
  color: white;
}

textarea.form-control {
  resize: none;
  min-height: 90px;
  line-height: 1.5;
}

/* ---- Row ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---- Route Section ---- */
.route-visual {
  position: relative;
  padding-left: 24px;
}

.route-visual::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 2px;
}

.route-point {
  position: relative;
  margin-bottom: 16px;
}

.route-point:last-child {
  margin-bottom: 0;
}

.route-dot {
  position: absolute;
  left: -20px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg-dark);
  z-index: 1;
}

.route-dot.end {
  border-color: var(--secondary);
  background: var(--secondary);
}

/* ---- Service Options ---- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.service-item {
  position: relative;
}

.service-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-input);
  text-align: center;
}

.service-label .s-icon { font-size: 24px; }
.service-label .s-name { font-size: 12px; font-weight: 600; }
.service-label .s-price { font-size: 11px; color: var(--primary); font-weight: 700; }

.service-item input[type="radio"]:checked + .service-label {
  border-color: var(--primary);
  background: rgba(0, 210, 255, 0.1);
  box-shadow: 0 0 15px rgba(0,210,255,0.2);
}

/* ---- Datetime Picker ---- */
input[type="datetime-local"].form-control {
  color-scheme: dark;
}

/* ---- Submit Button ---- */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #0099CC 50%, var(--secondary) 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.6s;
}

.btn-submit:hover::before { left: 100%; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,210,255,0.4); }
.btn-submit:active { transform: translateY(0); }

.btn-submit.loading {
  opacity: 0.8;
  pointer-events: none;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-spinner { display: block; }
.btn-submit.loading .btn-icon { display: none; }

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

/* ---- Success Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 20, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: linear-gradient(135deg, rgba(0,210,255,0.1), rgba(123,47,190,0.1));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  transform: scale(0.8) translateY(30px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(0,255,136,0.2), rgba(0,210,255,0.2));
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
  animation: successPop 0.5s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
}

@keyframes successPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-msg {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.booking-code {
  background: rgba(0,210,255,0.1);
  border: 1px solid rgba(0,210,255,0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.code-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.code-value {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.btn-close-modal {
  width: 100%;
  padding: 13px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: rgba(255,255,255,0.15);
}

/* ---- Features Section ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon { font-size: 24px; margin-bottom: 6px; }
.feature-title { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.feature-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ---- Notice ---- */
.notice-box {
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.notice-box .n-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.notice-box .n-text { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.notice-box .n-text strong { color: var(--warning); }

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

/* ---- Floating CTA (mobile) ---- */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: none;
}

.btn-float {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,210,255,0.4);
  cursor: pointer;
  text-decoration: none;
  animation: floatBtn 3s ease-in-out infinite;
}

@keyframes floatBtn {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 20px rgba(0,210,255,0.4); }
  50% { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,210,255,0.6); }
}

/* ---- Notification Toast ---- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 9999;
  background: rgba(10, 10, 30, 0.95);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  min-width: 280px;
  max-width: 90vw;
  box-shadow: var(--shadow-glow);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: var(--accent); }
.toast.error { border-color: var(--danger); }
.toast-icon { font-size: 18px; }
.toast-text { flex: 1; }

/* ---- Responsive ---- */
@media (max-width: 360px) {
  .form-row { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: 8px; }
}

@media (min-width: 768px) {
  .container { padding: 0 20px 60px; }
  .floating-cta { display: block; }
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---- Fake Booking Alert Popup ---- */
.fake-booking-alert {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  background: rgba(10, 10, 30, 0.95);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  box-shadow: var(--shadow-glow);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fake-booking-alert.show {
  transform: translateY(0);
  opacity: 1;
}

.fake-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.fake-content {
  flex: 1;
}

.fake-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.fake-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.fake-time {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 3px;
  text-align: right;
}

