/* ================== STEP1: СТЕППЕР ================== */

.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-divider {
  flex: 1;
  height: 1px;
  border-top: 1px dashed #d1d5db;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  color: #6b7280;
  font-weight: 700;
  font-size: 14px;
}

.step-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

.step--active .step-badge {
  border-color: #0f766e;
  color: #0f766e;
}

.step--active .step-label {
  color: #0f766e;
}

.step--done .step-badge {
  border-color: #9ca3af;
  color: #9ca3af;
}

.step--done .step-label {
  color: #9ca3af;
}

/* Темная тема для степпера */
html.dark .step-divider {
  border-color: #4b5563;
}

html.dark .step-badge {
  border-color: #4b5563;
  color: #9ca3af;
}

html.dark .step-label {
  color: #9ca3af;
}

html.dark .step--active .step-badge {
  border-color: #2dd4bf;
  color: #2dd4bf;
}

html.dark .step--active .step-label {
  color: #2dd4bf;
}

html.dark .step--done .step-badge {
  border-color: #6b7280;
  color: #6b7280;
}

html.dark .step--done .step-label {
  color: #6b7280;
}

/* ================== STEP2: КАРТА, МОБИЛЬНАЯ ВЁРСТКА ================== */

#mapContainer {
  position: relative;
  margin-bottom: 80px;
}

#yandexMap,
.ymaps-2-1-79-map,
.ymaps-2-1-79-map-bg {
  background: #fff !important;
  transition: opacity 0.4s ease;
}

#mapOverlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
  transition: opacity 0.3s ease;
}

#mapOverlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 1025px) {
  #mapOverlay {
    display: none;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }
}

#mapWrap {
  position: relative;
  height: 100%;
}

@media (max-width: 1023px) {
  #mapWrap {
    min-height: 420px;
  }
}

@media (min-width: 1024px) {
  #schoolList {
    min-height: 560px;
  }

  #mapWrap {
    min-height: 560px;
  }
}

/* ================== STEP1: КАРТОЧКИ ВУС ================== */

.vus-card {
  transition: box-shadow 0.2s, transform 0.05s;
  background: 
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 55%),
    #ffffff !important;
  border: 1px solid rgba(15, 118, 110, 0.15) !important;
}

.vus-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.vus-card[data-active="true"] {
  outline: 2px solid rgb(13, 148, 136);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.3) !important;
}

.vus-card .bg-teal-50 {
  background: rgba(15, 118, 110, 0.1) !important;
  border-color: rgba(15, 118, 110, 0.2) !important;
}

.vus-card .bg-slate-50 {
  background: rgba(100, 116, 139, 0.1) !important;
  border-color: rgba(100, 116, 139, 0.2) !important;
}

/* Специальные стили для десантной карточки (837д) */
.vus-card[data-vus="837д"] {
  background: 
    radial-gradient(circle at top left, rgba(129, 140, 248, 0.08), transparent 55%),
    #ffffff !important;
  border: 1px solid rgba(129, 140, 248, 0.15) !important;
}

/* ================== ТЕМНАЯ ТЕМА ================== */

html.dark body {
  background-color: #0f172a;
  color: #e2e8f0;
}

html.dark .bg-white {
  background-color: #1e293b !important;
}

html.dark .text-gray-800,
html.dark .text-gray-700,
html.dark .text-gray-600,
html.dark .text-gray-500 {
  color: #cbd5e1 !important;
}

html.dark .text-teal-800,
html.dark .text-teal-900 {
  color: #99f6e4 !important;
}

html.dark .border-gray-100 {
  border-color: #334155 !important;
}

/* Поля ввода */
html.dark input,
html.dark select,
html.dark textarea {
  background-color: #1e293b !important;
  color: #f9fafb !important;
  border-color: #475569 !important;
}

html.dark input::placeholder {
  color: #9ca3af !important;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: #0d9488 !important;
  background-color: #1e293b !important;
  color: #f9fafb !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

/* Чекбоксы */
html.dark input[type="checkbox"] {
  background-color: #334155;
  border-color: #64748b;
}

html.dark input[type="checkbox"]:checked {
  background-color: #0d9488;
  border-color: #0d9488;
}

/* Карточки ВУС */
html.dark .vus-card {
  background: 
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.16), transparent 55%),
    #02091f !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
}

html.dark .vus-card h5 {
  color: #a5f3fc !important;
}

html.dark .vus-card p {
  color: #cbd5e1 !important;
}

html.dark .vus-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

html.dark .vus-card[data-active="true"] {
  outline: 2px solid #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.3) !important;
}

html.dark .vus-card .bg-teal-50 {
  background: rgba(45, 212, 191, 0.15) !important;
  border-color: rgba(45, 212, 191, 0.3) !important;
}

html.dark .vus-card .bg-slate-50 {
  background: rgba(148, 163, 184, 0.15) !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Десантная карточка */
html.dark .vus-card[data-vus="837д"] {
  background: 
    radial-gradient(circle at top left, rgba(129, 140, 248, 0.25), transparent 55%),
    #02091f !important;
  border-color: rgba(129, 140, 248, 0.7) !important;
}

html.dark .vus-card[data-vus="837д"] h5 {
  color: #c4b5fd !important;
}

/* Кнопки */
html.dark .border-teal-600 {
  border-color: #0d9488 !important;
}

html.dark .text-teal-700 {
  color: #2dd4bf !important;
}

html.dark .bg-teal-600 {
  background-color: #0d9488 !important;
}

html.dark .hover\:bg-teal-50:hover {
  background-color: #134e4a !important;
}

html.dark .hover\:bg-teal-600:hover {
  background-color: #0f766e !important;
}

/* Алерты */
html.dark .bg-green-50 {
  background-color: #052e16 !important;
  border-color: #166534 !important;
}

html.dark .text-green-800 {
  color: #86efac !important;
}

html.dark .bg-red-50 {
  background-color: #450a0a !important;
  border-color: #dc2626 !important;
}

html.dark .text-red-800 {
  color: #fca5a5 !important;
}

html.dark .bg-amber-100 {
  background-color: #451a03 !important;
  border-color: #92400e !important;
}

html.dark .text-amber-800 {
  color: #fde68a !important;
}

/* Карта */
html.dark #yandexMap,
html.dark .ymaps-2-1-79-map,
html.dark .ymaps-2-1-79-map-bg {
  background: #1e293b !important;
  filter: invert(0.9) hue-rotate(180deg) saturate(1.1);
}

/* Карточки автошкол */
html.dark .school-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

html.dark .school-card h4 {
  color: #99f6e4 !important;
}

html.dark .school-card p {
  color: #cbd5e1 !important;
}

html.dark .bg-amber-50 {
  background-color: #451a03 !important;
}

html.dark .ring-teal-500 {
  --tw-ring-color: #0d9488;
}

/* ================== КАРТОЧКИ АВТОШКОЛ ================== */

.school-category {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.school-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.school-duration {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

.driving-school-card.selected {
  border-color: #007bff;
  border-width: 2px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}
/* Стили для полей ввода - светлая тема */
input, textarea, select {
  color: #1f2937 !important;
}

/* Стили для полей ввода - темная тема */
html.dark input,
html.dark textarea,
html.dark select {
  background-color: #1e293b !important;
  color: #f9fafb !important;
  border-color: #475569 !important;
}

html.dark input::placeholder {
  color: #9ca3af !important;
}

/* Убираем белый фон для заполненных полей в темной теме */
html.dark input:not(:placeholder-shown),
html.dark textarea:not(:placeholder-shown),
html.dark select:not(:placeholder-shown) {
  background-color: #1e293b !important;
  color: #f9fafb !important;
}

/* Фокус состояния */
html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
  border-color: #0d9488 !important;
  background-color: #1e293b !important;
  color: #f9fafb !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

/* Стили для автозаполнения в темной теме */
html.dark input:-webkit-autofill,
html.dark input:-webkit-autofill:hover,
html.dark input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f9fafb !important;
  -webkit-box-shadow: 0 0 0px 1000px #1e293b inset !important;
  border-color: #475569 !important;
}

/* Стили для выпадающих списков */
html.dark select option {
  background-color: #1e293b;
  color: #f9fafb;
}
@media (max-width: 1024px) {
  #schoolList {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
  }
  
  .school-card {
    min-height: 80px;
  }
}/* Стили для мобильной инструкции */
.mobile-only .fa-map-pin {
  color: #0d9488;
}

@media (min-width: 1025px) {
  .mobile-only {
    display: none !important;
  }
}