:root {
  --bg: #f1f3f6;
  --card: #fff;
  --ink: #111827;
  --muted: #6b7280;
  --blue: #1d4ed8;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }

.search-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  padding-bottom: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}
h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.sub { margin: 0 0 24px; color: var(--muted); }

#search-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.field label { display: flex;
  align-items: center; margin-bottom: 6px; font-size: .7rem; font-weight: 700; color: var(--blue); text-transform: uppercase; gap: 6px; padding-left: 10px; }
.field select, .field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  /* font: inherit; */
  font-weight: 600;
  color: var(--ink);
}
.field input { font-weight: 400; }
.field select:focus, .field input:focus {
  outline: 3px solid rgba(29, 78, 216, .25);
  border-color: var(--blue);
}
.field select:disabled { background: #f9fafb; color: #9ca3af; cursor: not-allowed; }

.actions { grid-column: 1 / -1; display: flex; gap: 12px; }
.btn-search, .btn-reset { height: 48px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.btn-search {
  flex: 1;
  align-items: center; justify-content: center; display: flex; gap: 8px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  box-shadow: 0 6px 16px rgba(234, 88, 12, .3);
}
.btn-reset { padding: 0 24px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-search:focus-visible, .btn-reset:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.count { margin: 24px 4px 12px; font-weight: 700; color: var(--muted); }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.tutor {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.tutor-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #ffedd5; color: var(--orange-dark);
  font-weight: 800; font-size: 1.1rem;
}
.tutor h2 { margin: 0; font-size: 1.05rem; }
.tutor .qual { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.tutor dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 6px 8px; font-size: .9rem; }
.tutor dt { color: var(--muted); }
.tutor dd { margin: 0; font-weight: 600; }
.bio { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

.empty {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  background: var(--card);
  border-radius: 14px;
  color: var(--muted);
}

@media (max-width: 900px) { #search-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { #search-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  #search-form { grid-template-columns: 1fr; }
  .search-card { padding: 20px; }
}