/* ==========================================================================
   60KMPH ROUTE COST CALCULATOR & CAB BOOKING WIDGET (WTicabs Style)
   ========================================================================== */

:root {
  --calc-navy: #1b3882;
  --calc-navy-dark: #0f255c;
  --calc-accent-blue: #2563eb;
  --calc-accent-hover: #1d4ed8;
  --calc-gold: #f59e0b;
  --calc-bg-light: #f8fafc;
  --calc-border: #e2e8f0;
  --calc-text-dark: #0f172a;
  --calc-text-muted: #64748b;
  --calc-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

.sixty-calc-wrapper {
  position: relative;
  z-index: 99;
  background: linear-gradient(135deg, rgba(15, 37, 92, 0.95) 0%, rgba(27, 56, 130, 0.92) 100%);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 24px;
  margin: 20px auto;
  box-shadow: var(--calc-shadow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --- Trip Type Tabs --- */
.sixty-calc-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sixty-calc-tab-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sixty-calc-tab-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.sixty-calc-tab-btn.active {
  background: #ffffff;
  color: var(--calc-navy);
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 700;
}

/* --- Calculator Inputs Bar --- */
.sixty-calc-inputs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr 150px 130px 140px;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sixty-calc-input-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sixty-calc-input-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--calc-text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.sixty-calc-input-group input,
.sixty-calc-input-group select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px 10px 34px;
  font-size: 14px;
  color: var(--calc-text-dark);
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
  background-color: #f8fafc;
}

.sixty-calc-input-group input:focus,
.sixty-calc-input-group select:focus {
  border-color: var(--calc-accent-blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sixty-calc-input-group .icon {
  position: absolute;
  left: 10px;
  top: 28px;
  color: var(--calc-accent-blue);
  font-size: 16px;
  pointer-events: none;
}

.sixty-calc-swap-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--calc-navy);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 14px;
}

.sixty-calc-swap-btn:hover {
  background: var(--calc-accent-blue);
  color: #ffffff;
  border-color: var(--calc-accent-blue);
  transform: rotate(180deg);
}

.sixty-calc-submit-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sixty-calc-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

/* --- Autocomplete Dropdown --- */
.sixty-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.sixty-autocomplete-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--calc-text-dark);
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sixty-autocomplete-item:hover {
  background: #eff6ff;
  color: var(--calc-accent-blue);
  font-weight: 600;
}

/* --- Trust Badges Footer --- */
.sixty-calc-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.sixty-calc-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sixty-calc-badge-item i {
  color: var(--calc-gold);
}

/* --- RESULTS MODAL & FARE ESTIMATES --- */
.sixty-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sixty-modal-container {
  background: #f8fafc;
  border-radius: 16px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.sixty-modal-header {
  background: var(--calc-navy);
  color: #ffffff;
  padding: 18px 24px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sixty-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.sixty-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sixty-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sixty-modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.sixty-route-info-bar {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--calc-accent-blue);
}

.sixty-route-details h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: var(--calc-navy);
  font-weight: 700;
}

.sixty-route-details p {
  margin: 0;
  font-size: 13px;
  color: var(--calc-text-muted);
}

.sixty-distance-badge {
  background: #eff6ff;
  color: var(--calc-accent-blue);
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

/* Vehicle List Cards */
.sixty-vehicle-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.sixty-vehicle-card:hover {
  border-color: var(--calc-accent-blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.sixty-vehicle-img img {
  width: 100%;
  height: 80px;
  object-fit: contain;
}

.sixty-vehicle-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--calc-navy);
  margin: 0 0 6px 0;
}

.sixty-vehicle-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--calc-text-muted);
  margin-bottom: 8px;
}

.sixty-vehicle-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sixty-vehicle-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sixty-feature-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.sixty-vehicle-price {
  text-align: right;
}

.sixty-price-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--calc-navy);
}

.sixty-price-sub {
  font-size: 11px;
  color: var(--calc-text-muted);
  margin-bottom: 10px;
}

.sixty-book-btn {
  background: var(--calc-accent-blue);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sixty-book-btn:hover {
  background: var(--calc-navy);
}

/* Map Preview Side Box */
.sixty-map-preview-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sixty-map-container {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  background: #e2e8f0;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.sixty-map-container iframe,
.sixty-map-container div {
  width: 100%;
  height: 100%;
}

/* Booking Form Step inside Modal */
.sixty-booking-form-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sixty-form-field {
  margin-bottom: 14px;
}

.sixty-form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--calc-text-dark);
  margin-bottom: 4px;
}

.sixty-form-field input,
.sixty-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .sixty-calc-inputs-row {
    grid-template-columns: 1fr 1fr;
  }
  .sixty-calc-swap-btn {
    display: none;
  }
  .sixty-modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sixty-calc-inputs-row {
    grid-template-columns: 1fr;
  }
  .sixty-vehicle-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sixty-vehicle-price {
    text-align: center;
  }
}
