/* Cùng bộ màu, font, bo góc với math_template / verify_template */
:root {
  --bg-page: #f6f8fa;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --pink-light: #fdf2f8;
  --border: #f1f5f9;
}

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

[hidden] { display: none !important; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.card {
  width: 100%;
  max-width: 390px;
  padding: 36px 24px 28px;
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.03),
    0 12px 28px -4px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  user-select: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.06);
}

.badge-icon svg { width: 30px; height: 30px; }

.card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 22px;
}

/* ---------- Hai nút chọn giới tính ---------- */
.choices {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 0;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}

.choice:active { transform: scale(0.97); }
.choice:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.4); outline-offset: 2px; }

.choice--nam {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.45);
}
.choice--nu {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  box-shadow: 0 10px 20px -5px rgba(236, 72, 153, 0.45);
}
.choice:hover { filter: brightness(1.05); }

.choice-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}
.choice-icon svg { width: 26px; height: 26px; }

.choice-label {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.caption {
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 380px) {
  .card { padding: 30px 18px 24px; }
  .card-title { font-size: 18px; }
}
