/* ==========================================================================
   TOLLTAX.IN - MODERN PREMIUM DESIGN SYSTEM & UI/UX STYLESHEET
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette - Vibrant Tech & High-Contrast */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #4338ca 100%);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --dark-bg: #0b0f19;
  --dark-surface: #111827;
  --dark-card: #1e293b;
  --dark-border: rgba(255, 255, 255, 0.08);

  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-card: #ffffff;
  --light-border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* Modern Sticky Header */
.modern-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-border);
  transition: all var(--transition-normal);
  padding: 0.75rem 0;
  z-index: 1040;
}

.modern-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-badge {
  background: var(--primary-gradient);
  color: white;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.brand-toll {
  color: #0f172a;
  font-weight: 800;
}

.brand-tax {
  color: #2563eb;
  font-weight: 800;
}

.brand-tld {
  color: #f59e0b;
  font-size: 1.2rem;
  font-weight: 700;
}

.modern-footer .brand-toll {
  color: #ffffff;
}

.nav-link-custom {
  font-weight: 600;
  color: var(--text-main) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.08);
}

/* Hero Section & Console */
.hero-wrapper {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
              var(--light-bg);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
}

/* Interactive Calculator Glassmorphic Card */
.calc-card {
  background: var(--light-surface);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  padding: 2rem;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

@media (max-width: 768px) {
  .calc-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }
}

.calc-card:hover {
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.12);
}

/* Custom Input Fields & Autocomplete */
.input-field-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.input-field-wrap .field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.custom-input {
  width: 100%;
  height: 52px;
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  background: #f1f5f9;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.custom-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.custom-input:focus + .field-icon {
  color: var(--primary);
}

/* Autocomplete list styling */
.autocomplete-items {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1050;
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-items div {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition-fast);
}

.autocomplete-items div:hover,
.autocomplete-active {
  background-color: #eff6ff !important;
  color: var(--primary) !important;
  font-weight: 600;
}

/* Vehicle Selector Pills */
.vehicle-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.vehicle-pill {
  border: 1.5px solid var(--light-border);
  background: #f8fafc;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.vehicle-pill input[type="radio"] {
  display: none;
}

.vehicle-pill .v-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  display: block;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.vehicle-pill .v-title {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

.vehicle-pill:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.vehicle-pill.active,
.vehicle-pill:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.vehicle-pill.active .v-icon,
.vehicle-pill:has(input[type="radio"]:checked) .v-icon {
  color: var(--primary);
}

/* Trip Type Switcher */
.trip-type-switch {
  display: inline-flex;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: var(--radius-md);
  gap: 0.25rem;
}

.trip-type-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.trip-type-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Fuel & Mileage Calculator Controls */
.fuel-config-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.fuel-type-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.fuel-pill-btn {
  border: 1px solid #cbd5e1;
  background: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fuel-pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.fuel-pill-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-live-fuel {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-live-fuel:hover {
  background: #fde68a;
  color: #78350f;
  transform: translateY(-1px);
}

.fuel-city-badge {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
}

/* Main Action Buttons */
.btn-calculate {
  background: var(--primary-gradient);
  color: white !important;
  border: none;
  height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-calculate:active {
  transform: translateY(0);
}

/* Summary Dashboard Cards */
.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--light-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-icon.blue { background: #eff6ff; color: var(--primary); }
.stat-icon.green { background: #ecfdf5; color: var(--accent-emerald); }
.stat-icon.amber { background: #fffbeb; color: var(--accent-amber); }
.stat-icon.purple { background: #faf5ff; color: #9333ea; }

.stat-meta .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.stat-meta .stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-meta .stat-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 0.35rem;
  display: inline-block;
  vertical-align: baseline;
}

/* Toll Gate Interactive List */
.toll-plaza-card {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.toll-plaza-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.toll-badge-nhai {
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* Sister Portals Promotion Grid - 3+3 in 2 Rows */
.portal-section {
  padding: 5rem 0;
  background: #ffffff;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (max-width: 992px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

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

.portal-card {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
  color: inherit;
}

.portal-card:hover::before {
  opacity: 1;
}

.portal-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1.15rem;
  background: #f1f5f9;
}

.portal-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portal-card:hover .portal-thumb {
  transform: scale(1.05);
}

.portal-icon-float {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.portal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.portal-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  margin-top: auto;
}

.portal-card:hover .portal-link-arrow i {
  transform: translateX(4px);
  transition: transform var(--transition-fast);
}

/* Feature & FAQ Cards */
.feature-box {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: all var(--transition-fast);
}

.feature-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.faq-accordion .accordion-item {
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: #f8fafc;
}

.faq-accordion .accordion-body {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
  padding: 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--light-border);
}

/* Modern Footer */
.modern-footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
}

.modern-footer h5 {
  color: #f8fafc;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: block;
  margin-bottom: 0.65rem;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* Utility Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 576px) {
  .hero-wrapper {
    padding: 2rem 0 3rem;
  }
  .vehicle-selector-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .vehicle-pill {
    padding: 0.5rem 0.25rem;
  }
  .vehicle-pill .v-icon {
    font-size: 1.05rem;
  }
  .vehicle-pill .v-title {
    font-size: 0.72rem;
  }
}
