/* ======================================================
   LEGACY UI — UPDATED TO V2 DESIGN TOKENS
   (STRUCTURE UNCHANGED, VARIABLES MAPPED)
====================================================== */

/* ----------------- GLOBAL ----------------- */
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ----------------- SELECTOR ----------------- */
.selector {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
}

.step {
  margin-bottom: 40px;
  transition: all var(--transition-slow);
}

.step h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--accent-main);
}

/* ----------------- GRID & CARDS ----------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    background var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-strong);
}

.card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: transform var(--transition-slow);
}

.card:hover img {
  transform: scale(1.05);
}

.card span {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.card:hover span {
  color: var(--accent-main);
}

/* ----------------- HIDDEN ----------------- */
.hidden {
  display: none;
}

/* ----------------- BENEFITS ----------------- */
.benefits {
  background: var(--bg-elevated);
  padding: 60px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.benefits ul {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

.benefits li {
  background: var(--bg-soft);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow);
}

.benefits li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* ----------------- FOOTER ----------------- */
footer {
  text-align: center;
  padding: 40px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ----------------- RESPONSIVE FIXES ----------------- */
@media (max-width: 500px) {
  .card img {
    height: 90px;
  }
  .step h2 {
    font-size: 20px;
  }
}

/* ----------------- CITY CARDS ----------------- */
.city-card.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow);
  overflow: hidden;
}

.city-card.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-strong);
}

.city-card.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: transform var(--transition-slow);
}

.city-card.card:hover img {
  transform: scale(1.05);
}

.city-card.card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  transition: color var(--transition-fast);
}

.city-card.card:hover h3 {
  color: var(--accent-main);
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 500px) {
  .city-card.card img {
    height: 90px;
  }
  .city-card.card h3 {
    font-size: 14px;
  }
}

/* ----------------- HERO ----------------- */
.hero {
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 10px;
}

.hero p {
  max-width: 620px;
  margin: auto;
  font-size: 18px;
  color: var(--text-muted);
}

/* ----------------- COUNTRY ITEMS ----------------- */
.country-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}

.country-item .flag-icon {
  width: 24px;
  height: 16px;
  margin-right: 10px;
  display: inline-block;
}

.country-item span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.country-item:hover span {
  color: var(--accent-main);
}
