/* shanghai-expatriate.com — Neighborhood Quiz UI */

.se-intro {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
}
.se-intro h1 { margin-top: 0; }
.se-intro p:last-child { margin-bottom: 0; }

.se-form {
  background: #fdf6e3;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
}

.se-field { margin-bottom: 1.1rem; }
.se-field:last-child { margin-bottom: 0; }

.se-label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  color: #2c3e50;
}
.se-hint {
  display: block;
  font-size: .82rem;
  color: #666;
  font-weight: 400;
  margin-top: .1rem;
}

.se-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.se-chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem .8rem;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: .9rem;
  user-select: none;
  transition: background .12s, border-color .12s;
}
.se-chip:hover { background: #f0f4ff; border-color: #c0392b; }
.se-chip.on {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.se-budget,
.se-stay {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
}
.se-budget button,
.se-stay button {
  padding: .55rem .4rem;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: .88rem;
  font-family: inherit;
}
.se-budget button:hover,
.se-stay button:hover { background: #f0f4ff; border-color: #c0392b; }
.se-budget button.on,
.se-stay button.on {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}
@media (max-width: 640px) {
  .se-budget,
  .se-stay { grid-template-columns: repeat(2, 1fr); }
}

.se-go {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  padding: .85rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.se-go:hover { background: #a02f24; }

.se-meta {
  margin: 1rem 0 .5rem;
  font-size: .9rem;
  color: #555;
}
.se-meta strong { color: #2c3e50; }

.se-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 800px) {
  .se-results { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}
.se-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.se-card-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}
.se-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #c0392b;
}
.se-card .rank {
  font-size: .8rem;
  color: #666;
  background: #f4e8d6;
  border-radius: 999px;
  padding: .15rem .55rem;
  white-space: nowrap;
}
.se-card .why {
  font-size: .92rem;
  color: #333;
  line-height: 1.45;
}
.se-card .rent,
.se-card .tradeoff {
  font-size: .85rem;
  color: #555;
  border-top: 1px dashed #ddd;
  padding-top: .45rem;
}
.se-card .rent strong,
.se-card .tradeoff strong { color: #2c3e50; font-weight: 600; }

.se-disclaimer {
  background: #fff7e0;
  border: 1px solid #e0d090;
  border-radius: 8px;
  padding: .85rem 1.1rem;
  margin: 1rem 0 1.5rem;
  font-size: .88rem;
  color: #6b5a1a;
}

.se-howto {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.4rem;
  margin-top: 1.5rem;
}
.se-howto h2 { margin-top: 0; }
.se-howto ul { padding-left: 1.4rem; }
.se-howto li { margin: .35rem 0; line-height: 1.45; }
