: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;
}

.connection-error-card {
  padding: 18px;
  border: 1px solid rgba(214, 62, 48, 0.24);
  border-radius: 18px;
  background: rgba(255, 248, 247, 0.98);
  box-shadow: 0 12px 28px rgba(120, 34, 26, 0.08);
}

.connection-error-card strong {
  display: block;
  color: #b42318;
  font-size: 1rem;
}

.connection-error-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-weight: 650;
}

.connection-error-card small {
  display: block;
  margin-top: 8px;
  color: #7d594f;
  font-size: 0.75rem;
  font-weight: 650;
}

.connection-error-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.connection-retry-btn,
.connection-whatsapp-btn {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.connection-retry-btn {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-strong);
}

.connection-whatsapp-btn {
  border: 1px solid #0a8f79;
  background: #0a8f79;
  color: #ffffff;
}

@media (max-width: 560px) {
  .connection-error-actions {
    grid-template-columns: 1fr;
  }
}

.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;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.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;
}

.status-card {
  margin-top: 12px;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 122, 224, 0.28);
  background: rgba(232, 244, 255, 0.9);
  color: #163a5f;
}

.status-card strong {
  display: block;
  font-size: 0.86rem;
}

.status-card p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 560;
}

.assessment-card .status-card {
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(255, 247, 237, 0.95);
  color: #7c2d12;
}

.near-threshold-card .badge {
  background: rgba(234, 179, 8, 0.18);
  color: #854d0e;
}

.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;
  }
}
/* Campaign content is populated only after the server confirms it is active. */
.campaign-panel {
  padding: 26px 24px 22px;
  border: 1px solid rgba(15, 212, 178, 0.38);
  box-shadow: 0 22px 48px rgba(11, 139, 118, 0.14);
}

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

.campaign-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: start;
}

/* The offer is a ticket: price on top, the four credits it buys below the tear line. */
.campaign-offer {
  padding: 22px 22px 20px;
  border: 1px solid rgba(15, 212, 178, 0.32);
  border-radius: 22px;
  background: linear-gradient(168deg, #ffffff 0%, rgba(233, 253, 249, 0.95) 46%, rgba(15, 212, 178, 0.14) 100%);
}

.campaign-eyebrow {
  margin: 0;
  color: var(--tf-mint-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.campaign-title {
  margin: 8px 0 0;
  color: var(--ink-strong);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.campaign-amount {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 16px 0 8px;
}

.campaign-amount > span {
  position: relative;
}

.campaign-currency {
  color: #05b795;
  font-size: 1.45rem;
  font-weight: 800;
}

.campaign-total {
  color: #05b795;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(15, 212, 178, 0.5), 0 0 34px rgba(15, 212, 178, 0.28);
}

.campaign-unit {
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 800;
}

.campaign-compare {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.86rem;
  font-weight: 700;
}

.campaign-save {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--tf-orange-soft);
  color: #8a5a00;
  font-size: 0.78rem;
  font-weight: 800;
}

.campaign-punch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(11, 139, 118, 0.38);
}

.campaign-punch-discs {
  display: flex;
  gap: 6px;
}

.campaign-punch-disc {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px dashed rgba(11, 139, 118, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--tf-mint-deep);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.campaign-punch-note {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.campaign-conditions {
  margin-top: 18px;
}

.campaign-conditions-label {
  margin: 0 0 7px;
  color: var(--ink-faint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.campaign-condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campaign-condition-list li {
  padding: 5px 11px 5px 24px;
  position: relative;
  border: 1px solid rgba(11, 139, 118, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #00584f;
  font-size: 0.84rem;
  font-weight: 800;
}

.campaign-condition-list li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  color: var(--tf-mint-deep);
  font-size: 0.74rem;
}

.campaign-cta {
  display: block;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #09111c 0%, #1f2937 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(9, 17, 28, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.campaign-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(9, 17, 28, 0.22);
}

.campaign-cta:focus-visible {
  outline: 3px solid var(--tf-mint-deep);
  outline-offset: 3px;
}

.campaign-schedule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.campaign-schedule-head h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 800;
}

.campaign-schedule-count {
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 700;
}

.campaign-classes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.campaign-classes th:not(:last-child),
.campaign-classes td:not(:last-child) {
  width: 1%;
}

.campaign-classes th,
.campaign-classes td {
  padding: 6px 18px 6px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.campaign-classes thead th {
  padding-top: 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.campaign-classes tbody tr:last-child th,
.campaign-classes tbody tr:last-child td {
  border-bottom: 0;
}

.campaign-venue {
  color: #00584f;
  font-weight: 800;
}

.campaign-class-time {
  color: var(--ink-strong);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Times are chips that wrap; a long weekday (six times) must never widen the panel. */
.campaign-classes td.campaign-class-time {
  white-space: normal;
}

.campaign-class-time,
.campaign-time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.campaign-classes td.campaign-class-time { display: table-cell; }
.campaign-classes td.campaign-class-time .campaign-time-chip { margin: 0 5px 5px 0; }

.campaign-time-chip {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid rgba(11, 139, 118, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-strong);
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.campaign-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.campaign-offer { min-width: 0; }

.campaign-venue-cards { display: none; }

.campaign-venue-card {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--tf-mint-deep);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.campaign-venue-card.is-athletics { border-left-color: #d9b642; }

.campaign-venue-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.campaign-venue-card-name {
  color: #00584f;
  font-weight: 800;
}

.campaign-sport-tag {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(15, 212, 178, 0.14);
  color: var(--tf-mint-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.campaign-venue-card.is-athletics .campaign-sport-tag {
  background: var(--tf-orange-soft);
  color: #8a5a00;
}

.campaign-venue-card-day {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}

.campaign-venue-card-day + .campaign-venue-card-day { border-top: 1px dashed var(--line-soft); }

.campaign-venue-card-weekday {
  flex: none;
  min-width: 3.2em;
  padding-top: 3px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.campaign-terms {
  margin: 16px 0 0;
  padding: 14px 0 0 1.15rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.campaign-terms li + li { margin-top: 3px; }

.campaign-card-note { font-size: .9rem; line-height: 1.6; color: #003f3a; }

@media (max-width: 720px) {
  .campaign-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 599px) {
  .campaign-classes { display: none; }
  .campaign-venue-cards { display: grid; gap: 8px; }

  /* Visual pass (2026-10-21): bigger price, tidy condition pills, thumb-sized button. */
  .campaign-offer { padding: 22px 18px 18px; text-align: center; }
  .campaign-amount { justify-content: center; margin: 14px 0 6px; }
  .campaign-total { font-size: 3.6rem; }
  .campaign-compare { justify-content: center; flex-wrap: wrap; font-size: 0.8rem; }
  .campaign-save { font-size: 0.86rem; padding: 3px 11px; }
  .campaign-punch { justify-content: center; }
  .campaign-condition-list { display: grid; gap: 6px; text-align: left; }
  .campaign-condition-list li { border-radius: 12px; padding: 8px 12px 8px 30px; font-size: 0.9rem; }
  .campaign-condition-list li::before { left: 12px; top: 8px; }
  .campaign-cta { padding: 17px 18px; font-size: 1.05rem; border-radius: 18px; }
  .campaign-schedule-head { margin: 4px 0 10px; }
  .campaign-schedule-head h3 { font-size: 1.08rem; }
  .campaign-schedule-count {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(15, 212, 178, 0.14);
    color: var(--tf-mint-deep);
    font-weight: 800;
  }
  .campaign-venue-card { box-shadow: 0 8px 18px rgba(11, 139, 118, 0.08); }
}

@media (max-width: 480px) {
  .campaign-panel { padding: 22px 16px 18px; }
  .campaign-total { font-size: 3.1rem; }
  .campaign-classes { font-size: 0.92rem; }
}

.class-card.promotion-card {
  border-color: #e7d89b;
  border-left-color: #d9b642;
  background: #fffcf0;
}

.promotion-badge {
  padding: 0.42rem 0.7rem;
  border: 1px solid #edc34b;
  border-radius: 999px;
  background-color: #f2c94c;
  background-image: linear-gradient(135deg, #ffe89a, #f7d45c 55%, #efbd34);
  color: #514014;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 2px rgba(255, 222, 108, 0.4),
    0 0 12px 4px rgba(255, 201, 61, 0.48),
    0 0 24px 7px rgba(255, 208, 79, 0.22);
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 900;
}

.promotion-card .class-quick-facts span:first-child {
  background: #f8eab6;
  color: #514014;
}

.promotion-card .campaign-card-note {
  color: #64542e;
}

.promotion-card .class-select {
  --control-color: #8d711a;
}

.class-card.promotion-card.selected-card {
  border-color: #b2942a;
  background: #fff4cc;
  box-shadow: 0 0 0 4px rgba(178, 148, 42, 0.18);
}
