:root {
  --tf-mint: #0fd4b2;
  --tf-mint-deep: #0b8b76;
  --tf-blue: #1f7ae0;
  --tf-blue-soft: #eaf3ff;
  --tf-orange: #ea9800;
  --tf-orange-soft: #fff4df;
  --ink-strong: #0f1722;
  --ink-main: #202938;
  --ink-soft: #5f6c7b;
  --ink-faint: #8a95a4;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --surface-muted: #f6f8fb;
  --surface-elevated: rgba(255, 255, 255, 0.92);
  --line-soft: rgba(15, 23, 34, 0.08);
  --line-strong: rgba(15, 23, 34, 0.16);
  --danger: #cf3d2e;
  --shadow-lg: 0 28px 70px rgba(10, 29, 52, 0.12);
  --shadow-md: 0 16px 38px rgba(10, 29, 52, 0.1);
  --shadow-sm: 0 8px 22px rgba(10, 29, 52, 0.07);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-main);
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at top left, rgba(15, 212, 178, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(31, 122, 224, 0.12), transparent 24rem),
    linear-gradient(180deg, #f4fbf8 0%, #f8fbff 42%, #ffffff 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.page {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 88px;
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(56px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.page-glow-left {
  top: -7rem;
  left: -8rem;
  background: rgba(15, 212, 178, 0.2);
}

.page-glow-right {
  top: 12rem;
  right: -9rem;
  background: rgba(31, 122, 224, 0.12);
}

.panel {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.hero {
  padding: 30px 24px 32px;
  text-align: center;
  overflow: hidden;
  border-color: rgba(15, 212, 178, 0.2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(15, 212, 178, 0.22), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(540px, 72%);
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(15, 212, 178, 0), var(--tf-mint), var(--tf-mint-deep), rgba(15, 212, 178, 0));
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 14px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 34, 0.08);
  color: var(--tf-mint-deep);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-logo {
  width: min(420px, 78%);
  margin: 0 auto 18px;
}

.hero h1 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-lead {
  width: min(720px, 100%);
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 600;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.steps span {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.steps span:nth-child(1) {
  background: rgba(15, 212, 178, 0.14);
  border: 1px solid rgba(15, 212, 178, 0.36);
  color: var(--tf-mint-deep);
}

.steps span:nth-child(2) {
  background: var(--tf-blue-soft);
  border: 1px solid rgba(31, 122, 224, 0.24);
  color: #1653a2;
}

.steps span:nth-child(3) {
  background: var(--tf-orange-soft);
  border: 1px solid rgba(234, 152, 0, 0.28);
  color: #a86400;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(780px, 100%);
  margin: 16px auto 0;
}

.hero-proof span {
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(15, 23, 34, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-main);
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(10, 29, 52, 0.06);
}

.form-shell {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.form-section {
  padding: 26px 22px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.96rem;
  font-weight: 560;
}

.field-stack {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
  display: grid;
  gap: 9px;
}

.preference-items-group {
  margin-bottom: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(15, 23, 34, 0.05);
}

label {
  display: block;
  color: var(--ink-strong);
  font-size: 0.98rem;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.required {
  color: var(--danger);
}

input,
select {
  width: 100%;
  min-height: 58px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-strong);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

input::placeholder {
  color: var(--ink-faint);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(15, 212, 178, 0.84);
  box-shadow: 0 0 0 4px rgba(15, 212, 178, 0.14);
  transform: translateY(-1px);
}

.hint,
.age-preview {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 580;
}

.item-row,
.area-grid,
.skeleton-grid,
.result-grid {
  display: grid;
  gap: 12px;
}

.item-row,
.area-grid,
.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-card,
.compact-option {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 90px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 820;
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.item-card:has(input:checked) {
  border-color: rgba(15, 212, 178, 0.6);
  box-shadow: 0 0 0 4px rgba(15, 212, 178, 0.12);
}

.item-card input {
  --control-color: var(--tf-mint-deep);
}

.item-card small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.4;
}

.item-bike {
  border-left: 7px solid var(--tf-blue);
  background: linear-gradient(180deg, rgba(234, 243, 255, 0.92), rgba(255, 255, 255, 0.94));
}

.item-athletics {
  border-left: 7px solid var(--tf-orange);
  background: linear-gradient(180deg, rgba(255, 244, 223, 0.92), rgba(255, 255, 255, 0.94));
}

.item-bike input {
  --control-color: var(--tf-blue);
}

.item-athletics input {
  --control-color: var(--tf-orange);
}

.area-box {
  padding: 18px 16px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.area-box h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bike-area-box h3 {
  color: #1653a2;
}

.athletics-area-box h3 {
  color: #a86400;
}

.disabled-box {
  opacity: 0.42;
  pointer-events: none;
  background: rgba(244, 246, 249, 0.9);
}

.compact-options {
  display: grid;
  gap: 6px;
}

.compact-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 0.93rem;
  font-weight: 700;
  color: #66717f;
}

.compact-option:has(input:checked) {
  background: rgba(15, 212, 178, 0.09);
  color: var(--ink-strong);
}

.compact-option input {
  --control-color: var(--tf-mint-deep);
}

.equipment-row .item-card {
  min-height: 78px;
}

.submit-section {
  padding-top: 22px;
}

.submit-btn,
.whatsapp-btn,
.secondary-btn {
  width: 100%;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.submit-btn,
.whatsapp-btn {
  min-height: 64px;
  padding: 18px;
  border: 0;
  background: linear-gradient(135deg, #09111c 0%, #1f2937 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 30px rgba(9, 17, 28, 0.18);
}

.submit-btn:hover,
.whatsapp-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.submit-btn:hover,
.whatsapp-btn:hover {
  box-shadow: 0 22px 34px rgba(9, 17, 28, 0.22);
}

.submit-btn:disabled,
.whatsapp-btn:disabled {
  background: #c7ced8;
  color: #5c6673;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn {
  min-height: 58px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-strong);
  font-weight: 800;
}

.secondary-btn:hover {
  background: #f8fafc;
}

.loading {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 212, 178, 0.22);
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fffc 0%, #ffffff 100%);
  box-shadow: var(--shadow-sm);
}

.loading-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink-main);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
}

.loading-dots {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--tf-mint);
  animation: dotPulse 900ms ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.loading-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.skeleton-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skeleton-card,
.class-card,
.fallback,
.empty-state-card {
  border-radius: 22px;
}

.skeleton-card {
  padding: 14px;
  border: 1px solid #e7edf3;
  background: #ffffff;
}

.skeleton-line {
  display: block;
  height: 13px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf1f4 0%, #f9fbfc 50%, #edf1f4 100%);
  background-size: 220% 100%;
  animation: shimmer 1250ms linear infinite;
}

.skeleton-line.short {
  width: 36%;
  margin-top: 0;
}

.skeleton-line.medium {
  width: 68%;
}

.privacy-note {
  margin: 18px 0 0;
  color: #6d7784;
  font-size: 0.82rem;
  line-height: 1.6;
  font-weight: 560;
}

.error {
  min-height: 1.45em;
  margin-top: 16px;
  color: var(--danger);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 850;
}

.results {
  margin-top: 20px;
  padding-bottom: 20px;
}

.results h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.3rem);
  line-height: 1.05;
}

.results-shell {
  padding: 24px 20px;
}

.results-summary {
  margin: 10px 0 0;
}

.result-col-title {
  margin: 0 0 10px;
  padding: 11px 14px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
}

.bike-title {
  background: var(--tf-blue-soft);
  color: #1653a2;
}

.athletics-title {
  background: var(--tf-orange-soft);
  color: #a86400;
}

.class-card {
  padding: 16px;
  margin: 10px 0;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.selectable-card {
  cursor: pointer;
}

.selectable-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bike-card {
  border-left: 6px solid var(--tf-blue);
}

.athletics-card {
  border-left: 6px solid var(--tf-orange);
}

.bike-card.selected-card {
  border-color: var(--tf-blue);
  background: #f4f9ff;
  box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.12);
}

.athletics-card.selected-card {
  border-color: var(--tf-orange);
  background: #fff9ef;
  box-shadow: 0 0 0 4px rgba(234, 152, 0, 0.12);
}

.full-card {
  opacity: 0.54;
  background: #f6f7f9;
}

.card-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.class-select {
  --control-color: var(--tf-mint-deep);
}

.bike-card .class-select {
  --control-color: var(--tf-blue);
}

.athletics-card .class-select {
  --control-color: var(--tf-orange);
}

.item-card input,
.compact-option input,
.class-select {
  -webkit-appearance: none;
  appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  border: 2px solid #c7cfda;
  border-radius: 0.42rem;
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(15, 23, 34, 0.04);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.item-card input::before,
.compact-option input::before,
.class-select::before {
  content: "";
  width: 0.36rem;
  height: 0.7rem;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.item-card input:checked,
.compact-option input:checked,
.class-select:checked {
  border-color: var(--control-color);
  background: var(--control-color);
  box-shadow: 0 0 0 3px rgba(15, 212, 178, 0.16);
}

.item-card input:checked::before,
.compact-option input:checked::before,
.class-select:checked::before {
  transform: rotate(45deg) scale(1);
}

.item-card input[type="radio"],
.compact-option input[type="radio"],
.class-select[type="radio"] {
  border-radius: 999px;
}

.item-card input[type="radio"]::before,
.compact-option input[type="radio"]::before,
.class-select[type="radio"]::before {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  transform: scale(0);
}

.item-card input[type="radio"]:checked::before,
.compact-option input[type="radio"]:checked::before,
.class-select[type="radio"]:checked::before {
  transform: scale(1);
}

.badge {
  display: inline-block;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.bike-badge {
  background: #e8f0fe;
  color: #1653a2;
}

.athletics-badge {
  background: var(--tf-orange-soft);
  color: #a86400;
}

.badge.full {
  background: #eceff3;
  color: #6d7784;
}

.class-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.class-quick-facts {
  margin: 0 0 8px;
}

.class-quick-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.56rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 900;
}

.class-quick-facts span {
  background: rgba(15, 212, 178, 0.1);
  color: var(--tf-mint-deep);
}

.bike-card .class-quick-facts span:first-child {
  background: var(--tf-blue-soft);
  color: #1653a2;
}

.athletics-card .class-quick-facts span:first-child {
  background: var(--tf-orange-soft);
  color: #a86400;
}

.trial-date-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 10px;
}

.class-card:not(.selected-card) .trial-date-picker,
.class-card:not(.selected-card) .trial-date-assist {
  display: none;
}

.trial-date-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  padding: 0.48rem 0.68rem;
  border: 1px solid rgba(15, 23, 34, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-main);
  font-size: 0.82rem;
  line-height: 1.15;
  font-weight: 850;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.trial-date-pill:has(.trial-date-input:checked) {
  border-color: rgba(15, 212, 178, 0.58);
  background: rgba(15, 212, 178, 0.1);
  color: var(--tf-mint-deep);
  box-shadow: 0 0 0 3px rgba(15, 212, 178, 0.11);
}

.bike-card .trial-date-pill:has(.trial-date-input:checked) {
  border-color: rgba(31, 122, 224, 0.5);
  background: var(--tf-blue-soft);
  color: #1653a2;
}

.athletics-card .trial-date-pill:has(.trial-date-input:checked) {
  border-color: rgba(234, 152, 0, 0.42);
  background: var(--tf-orange-soft);
  color: #a86400;
}

.trial-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.trial-date-assist {
  margin: 10px 0 10px;
  padding: 0.62rem 0.74rem;
  border: 1px solid rgba(15, 23, 34, 0.09);
  border-radius: 14px;
  background: rgba(246, 248, 251, 0.92);
  color: #66717f;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 760;
}

.class-title {
  margin: 0 0 6px;
  color: var(--ink-strong);
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1.24;
}

.location-note {
  margin: -2px 0 8px;
  color: #768191;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.class-time {
  margin-bottom: 6px;
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.class-meta {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
  font-weight: 560;
}

.class-warnings,
.result-notices {
  display: grid;
  gap: 8px;
}

.class-warnings {
  margin-top: 12px;
}

.result-notices {
  margin-top: 14px;
}

.class-warning,
.result-notice {
  padding: 0.62rem 0.74rem;
  border: 1px solid rgba(234, 152, 0, 0.32);
  border-radius: 14px;
  background: rgba(255, 244, 223, 0.88);
  color: #8a5600;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 820;
}

.fallback,
.empty-state-card {
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.96);
}

.fallback-copy,
.empty-state-copy {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}

.no-match-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 14px;
}

.no-match-preferences label {
  font-size: 0.86rem;
}

.no-match-field {
  display: grid;
  gap: 8px;
}

.no-match-preferences select {
  min-height: 50px;
  border-radius: 14px;
}

.results-actions {
  margin-top: 22px;
}

.results-primary-action {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(260px, 1.25fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(9, 17, 28, 0.12);
}

.results-selected-count {
  color: var(--ink-strong);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 850;
  text-align: center;
}

.whatsapp-send-note {
  margin: 10px 4px 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.no-match-toggle-btn {
  color: var(--ink-strong);
}

.no-match-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 212, 178, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(233, 255, 250, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 30px rgba(9, 17, 28, 0.1);
}

.no-match-panel[hidden] {
  display: none;
}

.no-match-panel-heading h3 {
  margin: 8px 0 0;
  color: var(--ink-strong);
  font-size: 1.08rem;
}

.no-match-panel-heading p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.no-match-step-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 212, 178, 0.14);
  color: #087f70;
  font-size: 0.78rem;
  font-weight: 850;
}

.no-match-preference-error {
  min-height: 22px;
  margin-top: 8px;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
}

.no-match-whatsapp-btn {
  min-height: 58px;
  padding: 15px 18px;
  border: 1px solid #62ffe3;
  outline: 2px solid rgba(15, 212, 178, 0.52);
  outline-offset: 3px;
  animation: whatsappNeonPulse 2.6s ease-in-out infinite;
}

.mobile-sticky-whatsapp {
  display: none;
}

.item-card span,
.equipment-card div {
  display: block;
  line-height: 1.25;
}

.item-card > span:first-of-type,
.equipment-card div {
  letter-spacing: -0.02em;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes whatsappNeonPulse {
  0%,
  100% {
    outline-color: rgba(15, 212, 178, 0.52);
    box-shadow:
      0 0 8px rgba(15, 212, 178, 0.42),
      0 0 20px rgba(15, 212, 178, 0.2),
      0 12px 22px rgba(9, 17, 28, 0.18);
  }

  50% {
    outline-color: rgba(98, 255, 227, 0.92);
    box-shadow:
      0 0 12px rgba(15, 212, 178, 0.72),
      0 0 28px rgba(15, 212, 178, 0.34),
      0 12px 22px rgba(9, 17, 28, 0.2);
  }
}

.results-primary-action .submit-btn {
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid #62ffe3;
  border-radius: 15px;
  outline: 2px solid rgba(15, 212, 178, 0.52);
  outline-offset: 3px;
  animation: whatsappNeonPulse 2.6s ease-in-out infinite;
}

.results-primary-action .submit-btn:disabled {
  border-color: transparent;
  outline-color: transparent;
  animation: none;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

@media (min-width: 641px) {
  body.mobile-sticky-active .page {
    padding-bottom: 156px;
  }

  .mobile-sticky-whatsapp:not([hidden]) {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(170px, 0.75fr) minmax(280px, 1.25fr);
    align-items: center;
    gap: 12px;
    width: min(760px, calc(100% - 32px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 48px rgba(9, 17, 28, 0.24);
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .mobile-sticky-whatsapp-count {
    color: var(--ink-strong);
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 850;
    text-align: center;
  }

  .mobile-sticky-whatsapp-btn {
    min-height: 54px;
    padding: 13px 18px;
    border: 1px solid #62ffe3;
    border-radius: 15px;
    outline: 2px solid rgba(15, 212, 178, 0.52);
    outline-offset: 3px;
    font-size: 0.98rem;
    animation: whatsappNeonPulse 2.6s ease-in-out infinite;
  }
}

@media (min-width: 900px) {
  .page {
    padding-top: 30px;
  }

  .hero,
  .form-section,
  .results-shell {
    padding-left: 30px;
    padding-right: 30px;
  }

  .field-stack {
    align-items: start;
  }

  .field-stack .field-group:first-child:nth-last-child(3),
  .field-stack .field-group:first-child:nth-last-child(3) ~ .field-group {
    grid-column: span 1;
  }
}

@media (max-width: 820px) {
  .skeleton-grid,
  .field-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .basic-info-grid {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .item-row,
  .area-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding-top: 14px;
    padding-bottom: 54px;
  }

  .panel {
    border-radius: 24px;
  }

  .hero,
  .form-section,
  .results-shell {
    padding: 20px 16px;
  }

  .hero-logo {
    width: min(320px, 78%);
  }

  .field-stack,
  .item-row,
  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .results-primary-action {
    grid-template-columns: minmax(0, 0.8fr) minmax(176px, 1.2fr);
    gap: 10px;
  }

  .results-selected-count {
    font-size: 0.88rem;
  }

  #resultsWhatsappButton {
    font-size: 0.94rem;
  }

  .no-match-panel {
    padding: 16px 14px;
  }

  body.mobile-sticky-active .page {
    padding-bottom: 142px;
  }

  .mobile-sticky-whatsapp:not([hidden]) {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(176px, 1.2fr);
    align-items: center;
    gap: 10px;
    width: min(620px, calc(100% - 20px));
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(9, 17, 28, 0.24);
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .mobile-sticky-whatsapp-count {
    color: var(--ink-strong);
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 850;
    text-align: center;
  }

  .mobile-sticky-whatsapp-btn {
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #62ffe3;
    border-radius: 14px;
    outline: 2px solid rgba(15, 212, 178, 0.52);
    outline-offset: 3px;
    font-size: 0.94rem;
    animation: whatsappNeonPulse 2.6s ease-in-out infinite;
  }

  .basic-info-grid {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .item-card {
    min-height: 82px;
    padding: 14px 14px;
    border-radius: 18px;
    font-size: 0.92rem;
    gap: 10px;
  }

  .item-card input {
    width: 1.22rem;
    height: 1.22rem;
  }

  .item-card small {
    font-size: 0.75rem;
  }

  .compact-option {
    min-height: 42px;
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  .compact-option input {
    width: 1.12rem;
    height: 1.12rem;
  }

  .area-box {
    padding: 14px 12px 12px;
  }

  .area-box h3 {
    font-size: 0.92rem;
  }

  .result-col-title {
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .class-card {
    padding: 14px 12px;
  }

  .class-title {
    font-size: 1rem;
  }

  .class-time {
    font-size: 0.95rem;
  }

  .class-meta,
  .fallback-copy,
  .empty-state-copy {
    font-size: 0.86rem;
  }

  .no-match-preferences {
    grid-template-columns: 1fr;
  }

  .hint,
  .age-preview,
  .section-copy {
    font-size: 0.84rem;
  }

  .area-box,
  .class-card,
  .fallback,
  .empty-state-card,
  .loading {
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  .page {
    width: min(100% - 16px, 1120px);
  }

  .hero,
  .form-section,
  .results-shell {
    padding: 18px 12px;
  }

  .field-stack,
  .item-row,
  .area-grid,
  .result-grid {
    gap: 8px;
  }

  .basic-info-grid {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .item-card,
  .class-card,
  .area-box {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
