/* ===================================================================
   ZYGO CABS - Modern Taxi Booking Platform Stylesheet
   Brand Colors: Teal #1FB6A6 | Deep Blue #0E5CAD | Taxi Gold #F4C430
   =================================================================== */

:root {
  --primary: #1FB6A6;
  --primary-hover: #179b8d;
  --primary-light: #e6f8f6;
  --primary-dark: #0E5CAD;
  --accent: #F4C430;
  --accent-hover: #e0b020;
  --bg-main: #F6FAF9;
  --card-bg: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --danger: #EF4444;
  --success: #10B981;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(31, 182, 166, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER & NAVBAR ================= */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-fallback-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.brand-fallback-text span {
  color: var(--primary);
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 182, 166, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-accent {
  background-color: var(--accent);
  color: #111827;
  font-weight: 700;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-admin {
  background: linear-gradient(135deg, #0E5CAD, #1FB6A6);
  color: #fff;
  border: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F9F8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-tag span {
  color: var(--primary);
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #0F172A;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 540px;
}

/* Booking Card */
.booking-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(31, 182, 166, 0.15);
}

.ride-tabs {
  display: flex;
  background: #F3F4F6;
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.ride-tab {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #4B5563;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ride-tab.active {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

/* Form Inputs */
.form-group {
  margin-bottom: 16px;
  position: relative;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--primary);
  font-size: 18px;
  pointer-events: none;
}

.icon-pickup {
  color: #10B981;
}

.icon-drop {
  color: #EF4444;
}

.form-control {
  width: 100%;
  padding: 14px 44px 14px 42px;
  font-size: 15px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #FAFAFA;
  transition: var(--transition);
  color: var(--text-main);
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 182, 166, 0.15);
}

.locate-me-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.locate-me-btn:hover {
  text-decoration: underline;
}

.popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #F3F4F6;
  color: #4B5563;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.chip:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: rgba(31, 182, 166, 0.3);
}

/* Fleet Selector */
.fleet-selection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 10px;
}

.fleet-selection-heading h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.fleet-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.fleet-item {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #FAFAFA;
  position: relative;
}

.fleet-item:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
}

.fleet-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(31, 182, 166, 0.15);
}

.fleet-item .badge-fastest {
  position: absolute;
  top: -8px;
  right: 6px;
  background: var(--accent);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.fleet-thumb {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 6px;
}

.fleet-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.fleet-eta {
  font-size: 11px;
  color: var(--text-muted);
}

.fleet-fare {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 4px;
}

/* Coupon & Fare Summary */
.fare-estimate-box {
  background: #F9FAFB;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  border: 1px dashed #D1D5DB;
}

.fare-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.fare-row.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

.fare-row.total span:last-child {
  color: var(--primary);
  font-size: 20px;
}

.coupon-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-transform: uppercase;
}

.coupon-btn {
  padding: 8px 14px;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Payment Mode Select */
.payment-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.payment-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-book-ride {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #0E5CAD 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 182, 166, 0.35);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-book-ride:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 182, 166, 0.45);
}

/* Map Preview Card */
.map-preview-container {
  height: 100%;
  min-height: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  background: #E5E7EB;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 580px;
  z-index: 1;
}

.map-overlay-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ================= SECTION COMMON ================= */
.section-pad {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* ================= FLEET SHOWCASE ================= */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.fleet-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.fleet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.fleet-card-img {
  height: 85px;
  width: auto;
  object-fit: contain;
  margin: 10px auto 20px;
  display: block;
}

.fleet-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.fleet-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.fleet-specs {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: #4B5563;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.fleet-price-tag {
  font-size: 14px;
  color: var(--text-muted);
}

.fleet-price-tag strong {
  font-size: 20px;
  color: var(--primary);
}

/* ================= WHY CHOOSE ZYGO ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-box {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.feature-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= DRIVER PARTNER BANNER ================= */
.driver-partner-banner {
  background: linear-gradient(135deg, #0E5CAD 0%, #1FB6A6 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.driver-banner-content h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
}

.driver-banner-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.6;
}

.driver-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.driver-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.driver-perk-item i {
  color: var(--accent);
}

.driver-signup-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  color: var(--text-main);
  box-shadow: var(--shadow-xl);
}

.driver-signup-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0F172A;
}

.driver-signup-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ================= APP DOWNLOAD CTA ================= */
.app-download-section {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.app-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.app-cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
}

.app-cta-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.store-btn:hover {
  background: #1F2937;
  transform: translateY(-2px);
}

.store-btn i {
  font-size: 28px;
}

.store-btn-text span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.8;
}

.store-btn-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.app-mockup-wrapper {
  text-align: center;
  position: relative;
}

.app-phone-img {
  max-height: 440px;
  width: auto;
  object-fit: contain;
}

/* ================= FOOTER ================= */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  display: inline-block;
}

.footer-logo span {
  color: var(--primary);
}

.footer-about {
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ================= MODAL & POPUP STYLES ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #F3F4F6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #4B5563;
  transition: var(--transition);
}

.modal-close:hover {
  background: #E5E7EB;
  color: #111827;
}

/* Live Ride Tracking View */
.tracking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.ride-otp-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 182, 166, 0.3);
}

.ride-status-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 20px 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 12px;
}

.status-step.completed .step-circle {
  background: var(--success);
}

.status-step.active .step-circle {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 182, 166, 0.2);
}

.driver-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.driver-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.driver-meta h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}

.driver-meta p {
  font-size: 13px;
  color: var(--text-muted);
}

.tracking-actions {
  display: flex;
  gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .driver-partner-banner {
    grid-template-columns: 1fr;
  }
  .app-cta-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 32px;
  }
  .fleet-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

