/* ==========================================================================
   TickTaxi-Inspired Booking Engine & Responsive Mobile Stylesheet
   ========================================================================== */

:root {
  --tt-primary: #0a2540;
  --tt-secondary: #0052cc;
  --tt-accent: #ffb800;
  --tt-bg-light: #f4f7fa;
  --tt-card-bg: #ffffff;
  --tt-border-color: #cbd5e1;
  --tt-border-active: #0a2540;
  --tt-text-main: #0f172a;
  --tt-text-muted: #64748b;
  --tt-sale-red: #dc2626;
  --tt-radius: 12px;
}

/* --------------------------------------------------------------------------
   UTILITY TAPE / ANNOUNCEMENT MARQUEE FOR MOBILE & DESKTOP
   -------------------------------------------------------------------------- */
.tt-utility-bar {
  background: var(--tt-primary);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 16px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.tt-utility-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .tt-utility-content {
    display: inline-block;
    animation: marquee 18s linear infinite;
    padding-left: 100%;
  }
}

@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

.tt-utility-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px;
}

/* Global Navbar Wrapping Prevention */
header nav a {
  white-space: nowrap !important;
}

@media (max-width: 1150px) and (min-width: 769px) {
  header {
    padding: 12px 20px !important;
  }
  header nav {
    gap: 6px !important;
  }
  header nav a {
    font-size: 12px !important;
    padding: 5px 8px !important;
  }
  .book-btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
}

.tt-badge-yellow {
  background: var(--tt-accent);
  color: #0a2540;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   BOOKING CONTAINER & SHADOW
   -------------------------------------------------------------------------- */
.tt-booking-wrapper {
  max-width: 860px;
  margin: 0 auto;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--tt-text-main);
  background: #ffffff;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--tt-border-color);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
}

@media (max-width: 600px) {
  .tt-booking-wrapper {
    padding: 14px;
    border-radius: 12px;
  }
}

/* --------------------------------------------------------------------------
   WIZARD STEPS HEADER
   -------------------------------------------------------------------------- */
.tt-steps-bar {
  display: flex;
  background: #f8fafc;
  border-radius: var(--tt-radius);
  overflow: hidden;
  border: 1px solid var(--tt-border-color);
  margin-bottom: 16px;
}

.tt-step-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #94a3b8;
  background: #f8fafc;
  text-align: center;
  border-right: 1px solid var(--tt-border-color);
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.tt-step-item:last-child {
  border-right: none;
}

.tt-step-item.active {
  background: #ffffff;
  color: var(--tt-primary);
  border-bottom: 3px solid var(--tt-secondary);
}

.tt-step-item.completed {
  color: #059669;
  background: #f0fdf4;
}

@media (max-width: 500px) {
  .tt-step-item {
    font-size: 10.5px;
    padding: 10px 4px;
  }
}

/* --------------------------------------------------------------------------
   PHONE CALLOUT BANNER
   -------------------------------------------------------------------------- */
.tt-phone-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tt-primary);
  margin-bottom: 18px;
}

.tt-phone-banner a {
  color: var(--tt-secondary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   FORM PANELS & INPUT STYLING
   -------------------------------------------------------------------------- */
.tt-panel {
  display: none;
}

.tt-panel.active {
  display: block;
}

.tt-field-group {
  margin-bottom: 16px;
  position: relative;
}

.tt-field-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tt-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}

.tt-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tt-input-wrap svg.tt-icon-left {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
}

.tt-input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--tt-border-color);
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tt-input:focus {
  border-color: var(--tt-secondary);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.tt-autodetect-btn {
  position: absolute;
  right: 8px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #93c5fd;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
}

.tt-autodetect-btn:hover {
  background: #dbeafe;
}

/* Location Suggestions Dropdown */
.tt-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--tt-border-color);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 4px;
  display: none;
}

.tt-suggestions.show {
  display: block;
}

.tt-suggestion-item {
  padding: 12px 14px;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.tt-suggestion-item:last-child {
  border-bottom: none;
}

.tt-suggestion-item:hover {
  background: #f8fafc;
  color: var(--tt-secondary);
}

/* Multi-column Grid */
.tt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .tt-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Options & Toggles */
.tt-toggle-row {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.tt-toggle-btn {
  flex: 1;
  min-width: 150px;
  padding: 14px;
  background: #f8fafc;
  border: 1.5px solid var(--tt-border-color);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  transition: all 0.2s ease;
}

.tt-toggle-btn.active {
  background: #eff6ff;
  border-color: var(--tt-secondary);
  color: var(--tt-secondary);
}

/* --------------------------------------------------------------------------
   VEHICLE SELECTION CARDS (TOUCH-OPTIMIZED FOR MOBILE)
   -------------------------------------------------------------------------- */
.tt-vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.tt-vehicle-card {
  background: var(--tt-card-bg);
  border: 1.5px solid var(--tt-border-color);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tt-vehicle-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.tt-vehicle-card.selected {
  border: 2.5px solid var(--tt-primary);
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.16);
  background: #ffffff;
}

.tt-vehicle-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tt-vehicle-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tt-vehicle-icon-img {
  width: 110px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

@media (max-width: 500px) {
  .tt-vehicle-icon-img {
    width: 80px;
    height: 48px;
  }
}

.tt-vehicle-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--tt-primary);
}

/* Capacity Icons Strip */
.tt-capacity-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  flex-wrap: wrap;
}

.tt-cap-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  padding: 3px 7px;
  border-radius: 6px;
}

.tt-cap-item svg {
  color: #475569;
}

/* Pricing Side (Right) */
.tt-vehicle-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.tt-price-stack {
  text-align: right;
}

.tt-sale-badge {
  font-size: 11px;
  font-weight: 900;
  color: var(--tt-sale-red);
  margin-right: 4px;
  letter-spacing: 0.5px;
}

.tt-original-price {
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

.tt-sale-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--tt-primary);
  line-height: 1.1;
  margin-top: 2px;
}

.tt-select-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tt-vehicle-card.selected .tt-select-circle {
  background: var(--tt-primary);
  border-color: var(--tt-primary);
  color: #ffffff;
}

.tt-select-circle svg {
  opacity: 0;
}

.tt-vehicle-card.selected .tt-select-circle svg {
  opacity: 1;
}

@media (max-width: 480px) {
  .tt-vehicle-card {
    padding: 14px;
  }
  .tt-vehicle-title {
    font-size: 15px;
  }
  .tt-sale-price {
    font-size: 20px;
  }
}

/* --------------------------------------------------------------------------
   PRIMARY ACTION BUTTONS & STICKY MOBILE ACTION BAR
   -------------------------------------------------------------------------- */
.tt-btn-primary {
  width: 100%;
  padding: 16px 20px;
  background: var(--tt-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.2);
  transition: background 0.2s ease;
}

.tt-btn-primary:hover {
  background: #0f3458;
}

.tt-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--tt-border-color);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tt-btn-secondary:hover {
  background: #e2e8f0;
}

/* --------------------------------------------------------------------------
   TICKTAXI FEATURE INCLUSIONS GRID (WHAT'S INCLUDED)
   -------------------------------------------------------------------------- */
.tt-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.tt-feature-card {
  background: #ffffff;
  border: 1px solid var(--tt-border-color);
  border-radius: 12px;
  padding: 20px;
}

.tt-feature-icon {
  width: 38px;
  height: 38px;
  background: #eff6ff;
  color: var(--tt-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tt-feature-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--tt-primary);
  margin-bottom: 6px;
}

.tt-feature-desc {
  font-size: 13.5px;
  color: var(--tt-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   GUEST BOOKING LOOKUP MODAL STYLING
   -------------------------------------------------------------------------- */
.tt-lookup-trigger-btn {
  background: #ffffff;
  color: var(--tt-primary);
  border: 1px solid var(--tt-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tt-lookup-trigger-btn:hover {
  background: var(--tt-primary);
  color: #ffffff;
}

.tt-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.tt-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalFadeIn 0.25s ease;
}

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

.tt-modal-header {
  background: var(--tt-primary);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tt-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.tt-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.tt-modal-body {
  padding: 20px;
}

/* Mobile Responsiveness Overhaul for bookings.html & index.html */
@media (max-width: 900px) {
  .main-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .left-side, .sidebar {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }
  .sidebar {
    margin-top: 30px !important;
  }
  .container {
    width: 100% !important;
    padding: 0 10px !important;
  }
  .menu-primary-wrapper {
    overflow-x: auto !important;
  }
}
