/* kartingnear.me — Light consumer theme, mobile-first */

:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --primary: #e63e12;
  --primary-light: #ff5c33;
  --primary-dark: #c43410;
  --primary-bg: #fef2f0;

  --green: #059669;
  --green-bg: #ecfdf5;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --yellow: #d97706;
  --yellow-bg: #fffbeb;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============ HEADER / NAV ============ */

.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray-700);
}

/* ============ HERO ============ */

.hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 50%, var(--gray-900) 100%);
  color: white;
  padding: 80px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(230, 62, 18, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(230, 62, 18, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

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

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ============ SEARCH BAR ============ */

.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-bar input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  font-size: 16px;
  font-family: var(--font);
  color: var(--gray-800);
  outline: none;
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--gray-400);
}

.search-bar button {
  padding: 18px 28px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

.search-hint {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.search-hint button {
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font);
  text-decoration: underline;
  padding: 0;
}

.search-hint button:hover {
  color: white;
}

/* ============ FILTERS ============ */

.filters-section {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 20px;
}

.filters-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  background: var(--white);
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.results-count {
  margin-left: auto;
  font-size: 14px;
  color: var(--gray-500);
  white-space: nowrap;
}

/* ============ MAIN CONTENT ============ */

.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  min-height: 60vh;
}

/* ============ TRACK CARDS ============ */

.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.track-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.track-image {
  width: 160px;
  height: 120px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 32px;
  overflow: hidden;
}

.track-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.track-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.track-type {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.track-type.indoor {
  background: var(--blue-bg);
  color: var(--blue);
}

.track-type.outdoor {
  background: var(--green-bg);
  color: var(--green);
}

.track-type.both {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.track-location {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.track-location svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

.track-description {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.track-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
}

.track-rating svg {
  width: 16px;
  height: 16px;
}

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

.feature-tag {
  padding: 2px 8px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--gray-600);
  white-space: nowrap;
}

.track-distance {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* ============ MAP PANEL ============ */

.map-panel {
  position: sticky;
  top: 88px;
  height: calc(100vh - 112px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}

#map {
  width: 100%;
  height: 100%;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
}

.map-placeholder p {
  font-size: 14px;
}

/* ============ MAP MARKERS ============ */

.track-marker {
  background: none;
  border: none;
}

.track-marker .marker-dot {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}

.track-marker:hover .marker-dot {
  transform: scale(1.3);
}

.track-marker.indoor .marker-dot {
  background: var(--blue);
}

.track-marker.outdoor .marker-dot {
  background: var(--green);
}

.user-marker {
  background: none;
  border: none;
}

.user-dot {
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: relative;
}

.user-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ============ MAP POPUPS ============ */

.track-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0;
}

.track-popup .leaflet-popup-content {
  margin: 0;
  font-family: var(--font);
}

.track-popup .leaflet-popup-tip {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.popup-inner {
  padding: 14px 16px;
  max-width: 280px;
}

.popup-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.3;
}

.popup-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.popup-type.indoor {
  background: var(--blue-bg);
  color: var(--blue);
}

.popup-type.outdoor {
  background: var(--green-bg);
  color: var(--green);
}

.popup-type.both {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.popup-location {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.popup-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 8px;
}

.popup-rating {
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 4px;
}

.popup-distance {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.popup-link {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.popup-link:hover {
  text-decoration: underline;
}

.popup-phone {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  margin-top: 4px;
}

.popup-phone:hover {
  color: var(--primary);
}

/* ============ ACTIVE TRACK CARD ============ */

.track-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

/* ============ LOADING STATE ============ */

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--gray-500);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ EMPTY STATE ============ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--gray-300);
}

.empty-state h3 {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
}

/* ============ STATS BAR ============ */

.stats-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 20px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.footer-brand .logo-text {
  color: white;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: relative;
    top: 0;
    height: 300px;
    order: -1;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .track-card {
    flex-direction: column;
  }

  .track-image {
    width: 100%;
    height: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stats-inner {
    gap: 24px;
  }

  .stat-number {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 56px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 16px;
  }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .search-bar input {
    padding: 16px 20px;
  }

  .search-bar button {
    padding: 16px 20px;
    border-radius: 0;
  }

  .filters-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .results-count {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .track-meta {
    gap: 8px;
  }

  .track-distance {
    margin-left: 0;
  }
}

/* ============ CITY PAGE ============ */

.city-hero {
  padding: 48px 20px 56px;
}

.city-hero h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.city-hero p {
  font-size: 16px;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 13px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: white;
}

/* Nearby cities section */
.nearby-cities {
  padding: 48px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.nearby-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.nearby-inner h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.city-card {
  display: block;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.city-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.city-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.city-meta {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ============ CITIES INDEX PAGE ============ */

.cities-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.cities-page-inner {
  max-width: 800px;
  margin: 0 auto;
}

.cities-search {
  margin-bottom: 32px;
}

.cities-search input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font);
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.15s;
}

.cities-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 62, 18, 0.1);
}

.state-group {
  margin-bottom: 32px;
}

.state-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.state-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.city-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}

.city-link:hover {
  background: var(--primary-bg);
}

.city-link-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}

.city-link-count {
  font-size: 12px;
  color: var(--gray-500);
}

@media (max-width: 640px) {
  .city-hero h1 {
    font-size: 26px;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }

  .state-cities {
    grid-template-columns: 1fr;
  }
}


/* ============ ABOUT PAGE ============ */

.about-page { max-width: var(--max-w); margin: 0 auto; }
.about-inner { max-width: 800px; margin: 0 auto; padding: 48px 20px 60px; }
.about-section { margin-bottom: 48px; }
.about-section h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
.about-section p { font-size: 16px; color: var(--gray-600); line-height: 1.7; margin-bottom: 12px; }
.about-section a { color: var(--primary); font-weight: 600; }
.about-list { list-style: none; padding: 0; }
.about-list li { padding: 8px 0; font-size: 16px; color: var(--gray-600); line-height: 1.6; }
.about-list li strong { color: var(--gray-800); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.about-card { background: var(--gray-50); border-radius: var(--radius); padding: 20px; text-align: center; }
.about-card-icon { margin-bottom: 8px; }
.about-card h3 { font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.about-card strong { font-size: 15px; color: var(--gray-900); display: block; margin-bottom: 4px; }
.about-card p { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin: 0; }
.about-stats { display: flex; justify-content: center; gap: 48px; padding: 32px; background: var(--gray-50); border-radius: var(--radius-lg); }
.about-stat-number { font-size: 28px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.about-stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.about-cta { text-align: center; padding: 48px 20px; background: var(--gray-50); border-radius: var(--radius-lg); margin-top: 16px; }
.about-cta h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.about-cta p { font-size: 16px; color: var(--gray-600); margin-bottom: 20px; }
.btn { display: inline-block; padding: 14px 32px; background: var(--primary); color: white; border-radius: var(--radius-full); text-decoration: none; font-weight: 600; font-size: 16px; transition: background 0.15s; }
.btn:hover { background: var(--primary-dark); }

/* ============ SUBMIT PAGE ============ */

.submit-page { max-width: var(--max-w); margin: 0 auto; }
.submit-inner { max-width: 600px; margin: 0 auto; padding: 48px 20px 60px; }
.submit-form { }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group .req { color: var(--primary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 15px; font-family: var(--font); color: var(--gray-800); outline: none; transition: border-color 0.15s; background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--focus-rgb, 0,0,0), 0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #dc2626; }
.submit-btn { width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: background 0.15s; margin-top: 8px; }
.submit-btn:hover { background: var(--primary-dark); }
.submit-success { text-align: center; padding: 60px 20px; display: none; }
.submit-success.show { display: block; }
.submit-success svg { width: 64px; height: 64px; color: var(--green, #059669); margin-bottom: 16px; }
.submit-success h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.submit-success p { font-size: 16px; color: var(--gray-600); margin-bottom: 24px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 24px; align-items: center; }
  .about-grid { grid-template-columns: 1fr 1fr; }
}

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


/* ============ ARTICLE / SPOTLIGHT PAGES ============ */

.article-page { max-width: var(--max-w); margin: 0 auto; }
.article-inner { max-width: 1100px; margin: 0 auto; padding: 48px 20px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.article-content h2 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin: 32px 0 12px; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-size: 18px; font-weight: 600; color: var(--gray-800); margin: 24px 0 8px; }
.article-content p { font-size: 16px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.article-content strong { color: var(--gray-800); }
.article-content a { color: var(--primary); font-weight: 500; }

.track-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-card h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
.sidebar-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row strong { color: var(--gray-600); font-weight: 500; }
.sidebar-row span { color: var(--gray-900); font-weight: 600; text-align: right; max-width: 60%; word-break: break-word; }
.sidebar-row .stars { color: var(--primary); }
.sidebar-row a { color: var(--primary); text-decoration: none; }
.sidebar-row a:hover { text-decoration: underline; }

.features-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tag { display: inline-block; padding: 4px 10px; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-full); font-size: 12px; color: var(--gray-700); font-weight: 500; }

.sidebar-cta { text-align: center; }
.sidebar-cta p { font-size: 14px; color: var(--gray-500); line-height: 1.5; margin-bottom: 12px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.guide-tracks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.guide-track-card { display: block; background: var(--gray-50); border-radius: var(--radius-lg); padding: 20px; text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; }
.guide-track-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.guide-track-card h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.guide-track-card p { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin: 0; }
.guide-track-type { display: inline-block; font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }

@media (max-width: 768px) {
  .article-inner { grid-template-columns: 1fr; gap: 24px; }
  .track-sidebar { order: -1; }
}
