/* =====================================================
   Easy Taxi Pattaya - Premium Stylesheet v3.0
   ===================================================== */

/* CSS Custom Properties */
:root {
  --navy: #003580;
  --navy-dark: #001f44;
  --navy-light: #004fa3;
  --action-blue: #006ce4;
  --action-blue-dark: #0055b3;
  --yellow: #febb02;
  --yellow-dark: #e0a800;
  --green: #25D366;
  --line-green: #06C755;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Prevent iOS zoom on input focus */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* =====================================================
   TYPOGRAPHY ENHANCEMENTS
   ===================================================== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: var(--navy);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 53, 128, 0.1);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 40rem;
  margin: 0 auto;
}

/* =====================================================
   HEADER - PREMIUM WHITE
   ===================================================== */
.native-header {
  position: relative;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0);
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.native-header-content {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =====================================================
   BUTTONS - PREMIUM STYLES
   ===================================================== */
.btn-b-primary {
  background-color: var(--action-blue);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-b-primary:hover {
  background-color: var(--action-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 108, 228, 0.35);
}

.btn-b-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-b-action {
  background-color: var(--navy);
  color: white;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-b-action:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 53, 128, 0.3);
}

.btn-b-outline {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.btn-b-outline:hover {
  background-color: var(--navy);
  color: white;
}

/* =====================================================
   HERO SEARCH FORM
   ===================================================== */
.search-box-container {
  background-color: var(--yellow);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.search-box-inner {
  background-color: white;
  border-radius: 2px;
}

/* Booking card premium shadow */
.booking-card {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.12), 0 30px 60px rgba(0,0,0,0.06);
  border-radius: 16px !important;
}

/* =====================================================
   INPUT STYLES
   ===================================================== */
input, select, textarea {
  border-radius: var(--radius-sm);
  border: 1.5px solid #d1d5db;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(0, 108, 228, 0.15);
  outline: none;
}

.input-error {
  border-color: #dc2626 !important;
  background-color: #fff5f5 !important;
  animation: shake 0.35s ease-in-out;
}

.input-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* =====================================================
   VEHICLE CARDS
   ===================================================== */
.vehicle-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: white;
}

.vehicle-card:hover {
  border-color: var(--action-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 108, 228, 0.12), 0 4px 12px rgba(0,0,0,0.08);
}

.vehicle-card.selected {
  border-color: var(--action-blue);
  background-color: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(0, 108, 228, 0.2);
}

/* =====================================================
   VEHICLE OPTION CARDS (Modal)
   ===================================================== */
.vehicle-option-card {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1.5px solid #d1d5db;
  transition: var(--transition);
  cursor: pointer;
}

.vehicle-option-card:hover {
  border-color: var(--action-blue);
  background-color: #f8fbff;
}

.vehicle-option-card .vehicle-check {
  display: none;
}

.vehicle-option-card.border-sky-500 {
  border-color: var(--action-blue) !important;
  background-color: #eff6ff;
  box-shadow: 0 0 0 3px rgba(0, 108, 228, 0.15);
}

.vehicle-option-card.border-sky-500 .vehicle-check {
  display: flex;
  color: var(--action-blue);
}

/* =====================================================
   SECTION: WHY CHOOSE US
   ===================================================== */
.why-choose-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-choose-card:hover {
  transform: translateY(-6px);
}

/* =====================================================
   SECTION: HOW IT WORKS - STEP CARDS
   ===================================================== */
.step-card {
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 20px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--action-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.step-card:hover {
  border-color: rgba(0, 53, 128, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--action-blue));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

/* =====================================================
   REVIEW CARDS
   ===================================================== */
.review-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: rgba(0, 108, 228, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.review-score {
  background: linear-gradient(135deg, var(--navy), var(--action-blue));
  color: white;
  font-size: 13px;
  font-weight: 800;
  width: 38px;
  height: 38px;
  border-radius: 6px 2px 6px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

/* =====================================================
   GALLERY
   ===================================================== */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* =====================================================
   FEATURE CARDS (Trust section)
   ===================================================== */
.feature-card {
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: white;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 108, 228, 0.15);
  transform: translateY(-3px);
}

/* =====================================================
   PRICING TABLE
   ===================================================== */
.pricing-table {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pricing-table th {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pricing-table tr:hover td {
  background-color: #f8fbff;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

#booking-modal {
  overscroll-behavior: none;
  touch-action: pan-y;
  overflow-x: hidden !important;
}

@media screen and (max-width: 768px) {
  #booking-modal > div:last-child {
    max-height: 90vh;
    margin: 0;
    border-radius: 20px 20px 0 0;
  }
}

/* =====================================================
   GOOGLE PLACES AUTOCOMPLETE
   ===================================================== */
.pac-container {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  z-index: 99999 !important;
  overflow: hidden;
}

.pac-item {
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.pac-item:last-child {
  border-bottom: none;
}

.pac-item:hover {
  background-color: #f0f7ff;
}

.pac-item-selected {
  background-color: #e8f2ff;
}

.pac-icon {
  margin-right: 10px;
}

.pac-item-query {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.pac-matched {
  font-weight: 700;
  color: var(--navy);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 108, 228, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0, 108, 228, 0); }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.animate-fade-in-up {
  animation: slideUp 0.55s ease forwards;
}

.animate-fade-in-up.delay-75 {
  animation-delay: 0.1s;
}

.animate-fade-in-up.delay-100 {
  animation-delay: 0.2s;
}

/* =====================================================
   COLOR HELPERS
   ===================================================== */
.text-b-navy { color: var(--navy); }
.bg-b-navy   { background-color: var(--navy); }
.text-b-gold { color: #fff7c2; }
.bg-b-gold   { background-color: #C5A059; }
.bg-gold-gradient {
  background: linear-gradient(135deg, #C5A059 0%, #E6C87C 50%, #C5A059 100%);
}

/* =====================================================
   FLOATING CONTACT BUTTON (Mobile)
   ===================================================== */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-cta-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  animation: pulse-glow 2.5s infinite;
}

.floating-cta-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.floating-cta-btn.whatsapp { background-color: #25D366; }
.floating-cta-btn.line     { background-color: #06C755; }

@media (min-width: 768px) {
  .floating-cta { display: none; }
}

/* =====================================================
   SECTION DIVIDERS
   ===================================================== */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--action-blue));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* =====================================================
   HERO SECTION ENHANCEMENTS
   ===================================================== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 11px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
}

.hero-badge:hover {
  background: rgba(255,255,255,0.2);
}

/* =====================================================
   GRADIENT SECTION BACKGROUNDS
   ===================================================== */
.bg-section-light {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.bg-section-navy {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

/* =====================================================
   RESPONSIVE IMPROVEMENTS
   ===================================================== */
@media (max-width: 640px) {
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 0.9375rem; }

  .booking-card {
    border-radius: 12px !important;
    padding: 18px !important;
  }
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

/* =====================================================
   SELECTION
   ===================================================== */
::selection {
  background-color: rgba(0, 108, 228, 0.2);
  color: var(--navy);
}

/* =====================================================
   FOCUS VISIBLE (Accessibility)
   ===================================================== */
:focus-visible {
  outline: 2px solid var(--action-blue);
  outline-offset: 2px;
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .floating-cta,
  #sidebar-menu,
  .native-header { display: none !important; }
}
