/**
 * tryouts.css - Tryouts youth trial-interest page.
 *
 * Ported from the approved standalone mockup (tryouts-mockup-v2.html).
 * Standalone-only bits dropped: html/body resets, ::selection, the global
 * :focus-visible rule, .site-header, .site-nav, .kit-theme-toggle,
 * .site-footer, .skip-link. Those all live in the theme's frontend.css.
 *
 * Token map: the page's --c-* palette is DEFINED below on .tryouts-page,
 * mapped onto the theme's --wp--preset--color--* variables (set in theme.json
 * for dark and flipped in frontend.css on html[data-theme="light"] body). This
 * makes the whole page (text, who-can-trial cards, form panel, custom
 * dropdown) follow the site's light/dark toggle. The gold accent + the V2
 * warmth tokens are held per theme because the theme preset accent is an
 * off-white placeholder in dark mode, while this design is gold in both.
 *
 * Everything is scoped under .tryouts-page. No :root block (a standalone :root
 * would make the page dark-only in light mode - a bug this project hit before).
 *
 * @package Kisasa_FC
 */

/* ============================================================
   THEME TOKENS - follow the site's light/dark toggle.
   Base --c-* mapped from theme presets (mirrors backroom.css),
   then V2 warmth tokens + radii layered on, dark + light values.
   ============================================================ */
.tryouts-page {
  --c-bg:        var(--wp--preset--color--base, #0f0f0e);
  --c-surface2:  var(--wp--preset--color--surface, #1a1a18);
  --c-border:    var(--wp--preset--color--border, #2a2a27);
  --c-text:      var(--wp--preset--color--contrast, #f5f4f0);
  --c-subtle:    var(--wp--preset--color--subtle, #7a7268);
  --c-alert:     var(--wp--preset--color--alert, #C3111B);
  --c-highlight: var(--wp--preset--color--highlight, #146F31);
  --c-accent:    #B7883E; /* Kisasa gold on dark surfaces */

  /* V2 warmth additions (dark) */
  --c-warm:      #16130f;   /* soft warm panel tint, a notch warmer + lifted vs surface */
  --c-warm-2:    #1d1813;   /* nested warm tint (icon chips, success block, dropdown) */
  --c-warm-line: #34302a;   /* warmer hairline used inside warm panels */
  --shadow-soft: 0 24px 60px -28px rgba(0, 0, 0, 0.65), 0 6px 18px -10px rgba(0, 0, 0, 0.5);

  /* Radii (V2: warmer, friendlier corners) */
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-pill: 999px;
}

html[data-theme="light"] .tryouts-page {
  --c-accent:    #9C722E; /* deeper gold for cream surfaces */

  /* V2 warmth additions (light) */
  --c-warm:      #FBF7F1;   /* warm cream panel, lifts gently off the cream page */
  --c-warm-2:    #F4ECE0;   /* nested warm chip tint */
  --c-warm-line: #E4D9C9;   /* warm hairline inside panels */
  --shadow-soft: 0 24px 56px -30px rgba(80, 56, 18, 0.30), 0 6px 16px -10px rgba(80, 56, 18, 0.16);
}

/* ============================================================
   LAYOUT - page wrappers
   ============================================================ */

.tryouts-page .page-wrap {
  max-width: var(--content-size, 680px);
  margin-inline: auto;
  padding-inline: var(--sp-40, 1.5rem);
}

.tryouts-page .page-wrap--wide {
  max-width: var(--wide-size, 1200px);
  margin-inline: auto;
  padding-inline: var(--sp-40, 1.5rem);
}

/* ============================================================
   HERO SECTION (V2: full-bleed sunlit match photo)

   Veil strategy: a flat dark base layer tames the bright sky
   across the whole frame, then a bottom-weighted dark gradient
   deepens the band where the text sits. Both layers are
   theme-independent (literal rgba, NOT --c-* tokens) so the
   white hero text stays readable in light AND dark mode - the
   photo never changes.
   ============================================================ */

.tryouts-hero {
  position: relative;
  min-height: clamp(18rem, 38vh, 26rem);
  display: flex;
  align-items: center;       /* photo removed: centre copy in the dark band */
  overflow: hidden;
  isolation: isolate;
  background-color: #14120E; /* dark editorial base now there's no photo */
}

.tryouts-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 38%;
  z-index: -2;
}

/* Layered dark veil, identical in both themes. */
.tryouts-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* warm gold breath, top-right, very subtle for atmosphere */
    radial-gradient(ellipse 60% 45% at 82% 8%, rgba(183, 136, 62, 0.20) 0%, transparent 60%),
    /* bottom-weighted deepening where the copy lives */
    linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0.10) 100%),
    /* flat base to tame the bright sky / clouds across the whole frame */
    rgba(0, 0, 0, 0.34);
}

.tryouts-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--wide-size, 1200px);
  margin-inline: auto;
  padding: var(--sp-60, 4rem) var(--sp-50, 2.5rem) var(--sp-70, 6rem);
}

.tryouts-hero__content {
  max-width: 38ch;
}

/* Eyebrow, white in hero for photo legibility */
.tryouts-hero .hero-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F2EDE7;
  margin-bottom: var(--sp-30, 1rem);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.tryouts-hero .hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  background-color: var(--c-accent);
  transform: rotate(45deg);
}

/* Display headline, white in hero (over photo) */
.tryouts-hero .hero-display {
  font-family: var(--ff-display);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: var(--sp-40, 1.5rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Gold italic emphasis on the key word (the .kit-display em device) */
.tryouts-hero .hero-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--c-accent);
  display: inline-block;
}

/* Hero lede paragraph, warm white */
.tryouts-hero .hero-lede {
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  line-height: 1.6;
  color: #F2EDE7;
  max-width: 50ch;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

/* Soft scroll cue at the foot of the hero */
.hero-cue {
  margin-top: var(--sp-40, 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F2EDE7;
  text-decoration: none;
  opacity: 0.92;
  transition: gap var(--dur-fast) var(--ease-out-quart), opacity var(--dur-fast) var(--ease-out-quart);
}
.hero-cue svg {
  width: 16px;
  height: 16px;
  color: var(--c-accent);
}
.hero-cue:hover {
  gap: 0.95rem;
  opacity: 1;
}
.hero-cue:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================================
   WHO CAN TRIAL  (V2: warm 3-up icon cards, not a hairline list)
   ============================================================ */

.who-section {
  padding-top: var(--sp-70, 6rem);
  padding-bottom: var(--sp-70, 6rem);
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, color-mix(in oklch, var(--c-highlight) 6%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, color-mix(in oklch, var(--c-accent) 7%, transparent) 0%, transparent 55%);
}

.tryouts-page .section-meta {
  display: flex;
  align-items: baseline;
  gap: var(--sp-40, 1.5rem);
  margin-bottom: var(--sp-50, 2.5rem);
  flex-wrap: wrap;
}

.tryouts-page .section-label {
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-subtle);
}

.tryouts-page .section-lead {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--c-text);
  margin-bottom: var(--sp-50, 2.5rem);
  max-width: 22ch;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-40, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* A friendly raised card. Warm tint + soft shadow, no side stripe. */
.who-card {
  background: var(--c-warm);
  border: 1px solid var(--c-warm-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-50, 2.5rem) var(--sp-40, 1.5rem) var(--sp-40, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-30, 1rem);
  transition:
    transform var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    box-shadow var(--dur-fast) var(--ease-out-quart);
}
.who-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--c-accent) 45%, var(--c-warm-line));
  box-shadow: var(--shadow-soft);
}

/* Round icon chip, gold by default, green accent for the location pin */
.who-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in oklch, var(--c-accent) 14%, transparent);
  color: var(--c-accent);
}
.who-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}
.who-card--place .who-icon {
  background: color-mix(in oklch, var(--c-highlight) 16%, transparent);
  color: var(--c-highlight);
}

.who-card__title {
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--c-text);
}

.who-card__body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--c-subtle);
}

/* Outside-intake warm note */
.who-note {
  margin-top: var(--sp-50, 2.5rem);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--c-subtle);
  max-width: 58ch;
}
.who-note strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ============================================================
   FORM SECTION (V2: lifted onto a warm raised panel)
   ============================================================ */

.tryouts-page .form-section {
  padding-top: var(--sp-60, 4rem);
  padding-bottom: var(--sp-80, 8rem);
  background: linear-gradient(180deg, color-mix(in oklch, var(--c-accent) 4%, transparent) 0%, transparent 22rem);
}

/* The friendly container. Warm surface, big radius, soft shadow.
   NOT a side-stripe box, NOT a stat box. */
.form-panel {
  background: var(--c-warm);
  border: 1px solid var(--c-warm-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(var(--sp-50, 2.5rem), 4vw, var(--sp-70, 6rem)) clamp(var(--sp-40, 1.5rem), 4vw, var(--sp-60, 4rem));
  max-width: var(--content-size, 680px);
  margin-inline: auto;
}

.tryouts-page .form-heading {
  font-family: var(--ff-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--c-text);
  margin-bottom: var(--sp-30, 1rem);
  text-wrap: balance;
}

.tryouts-page .form-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-subtle);
  margin-bottom: var(--sp-60, 4rem);
  max-width: 52ch;
}

/* Form layout */
.tryouts-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40, 1.5rem);
  max-width: 100%;
  position: relative;
}

/* Carry the fix: JS toggles the [hidden] attribute on the form. A flex
   display on .tryouts-form would otherwise defeat [hidden], so force it. */
.tryouts-form[hidden] {
  display: none;
}

.tryouts-page .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-40, 1.5rem);
}

.tryouts-page .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tryouts-page .form-field--full {
  grid-column: 1 / -1;
}

/* Labels */
.tryouts-page .form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-subtle);
}

/* Helper note below a field */
.tryouts-page .form-helper {
  font-size: 0.8125rem;
  color: var(--c-subtle);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Text / email / tel / date inputs, underline style */
.tryouts-form input[type="text"],
.tryouts-form input[type="email"],
.tryouts-form input[type="tel"],
.tryouts-form input[type="date"],
.tryouts-form textarea {
  background: transparent;
  color: var(--c-text);
  border: 0;
  border-bottom: 1px solid var(--c-warm-line);
  border-radius: 0;
  padding: 0.65rem 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  transition:
    border-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart);
  width: 100%;
}

.tryouts-form input[type="text"]:focus,
.tryouts-form input[type="email"]:focus,
.tryouts-form input[type="tel"]:focus,
.tryouts-form input[type="date"]:focus,
.tryouts-form textarea:focus {
  outline: none;
  border-bottom-color: var(--c-accent);
  border-bottom-width: 2px;
  padding-bottom: calc(0.65rem - 1px);
}

/* Invalid field: red underline (set by tryouts.js on validation failure) */
.tryouts-form input.is-invalid,
.tryouts-form textarea.is-invalid {
  border-bottom-color: var(--c-alert);
}

/* Placeholder text */
.tryouts-form input::placeholder,
.tryouts-form textarea::placeholder {
  color: var(--c-subtle);
  opacity: 0.6;
}

/* Date input: browser calendar icon inherits color-scheme from html,
   so dark/light OS picker follows automatically. */
.tryouts-form input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}
.tryouts-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ============================================================
   GUARDIAN DIVIDER
   A subheading row separating player fields from guardian fields.
   Not a box, not a bordered card, just a hairline + label.
   ============================================================ */

.form-divider {
  border: 0;
  border-top: 1px solid var(--c-warm-line);
  margin: 0;
  padding-top: var(--sp-40, 1.5rem);
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-divider-label {
  font-family: var(--ff-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-subtle);
}

/* ============================================================
   CHECKBOXES
   Native <input type="checkbox"> + accent-color for theme-aware
   gold tick. No opacity:0 or custom-box tricks.
   ============================================================ */

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  grid-column: 1 / -1;
}

.form-check input[type="checkbox"] {
  accent-color: var(--c-accent);
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.2em;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-text);
  cursor: pointer;
}

.form-check-label a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-check-label a:hover {
  color: var(--c-text);
}

/* Honeypot, off-screen, hidden from AT */
.kit-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   CUSTOM DROPDOWN  (school + position)
   Radii softened to match the V2 panel; behaviour and hidden-input
   wiring driven by assets/js/tryouts.js. .kit-* names kept.
   ============================================================ */

.kit-select-wrap {
  position: relative;
}

.kit-select-trigger {
  width: 100%;
  background: transparent;
  color: var(--c-text);
  border: 0;
  border-bottom: 1px solid var(--c-warm-line);
  border-radius: 0;
  padding: 0.65rem 2rem 0.65rem 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    border-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart);
  position: relative;
}

.kit-select-trigger:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.kit-select-trigger[aria-expanded="true"] {
  border-bottom-color: var(--c-accent);
  border-bottom-width: 2px;
  padding-bottom: calc(0.65rem - 1px);
}

/* Invalid dropdown: red underline (set on the wrap by tryouts.js) */
.kit-select-wrap.is-invalid .kit-select-trigger {
  border-bottom-color: var(--c-alert);
}

.kit-select-value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Placeholder state */
.kit-select-trigger[data-placeholder="true"] .kit-select-value {
  color: var(--c-subtle);
  opacity: 0.8;
}

/* Chevron icon */
.kit-select-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--c-subtle);
  transition: transform var(--dur-fast) var(--ease-out-quart);
  pointer-events: none;
  margin-left: 0.5rem;
}

.kit-select-trigger[aria-expanded="true"] .kit-select-chevron {
  transform: rotate(180deg);
  color: var(--c-accent);
}

/* Dropdown panel */
.kit-select-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--c-warm-2);
  border: 1px solid var(--c-warm-line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.45), 0 2px 8px -2px rgba(0, 0, 0, 0.25);
  padding: 0.375rem 0;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
  margin: 0;
  list-style: none;
}

html[data-theme="light"] .kit-select-panel {
  box-shadow: 0 8px 32px -8px rgba(21, 20, 15, 0.18), 0 2px 8px -2px rgba(21, 20, 15, 0.1);
}

.kit-select-panel[aria-hidden="false"],
.kit-select-panel.is-open {
  display: block;
}

/* Each option */
.kit-select-option {
  padding: 0.65rem var(--sp-40, 1.5rem);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--c-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-30, 1rem);
  transition:
    background-color var(--dur-instant) var(--ease-out-quart),
    color var(--dur-instant) var(--ease-out-quart);
  outline: none;
  user-select: none;
}

.kit-select-option[aria-selected="true"],
.kit-select-option.is-active {
  color: var(--c-accent);
  background-color: color-mix(in oklch, var(--c-accent) 9%, transparent);
}

.kit-select-option[data-selected="true"] {
  color: var(--c-accent);
  font-weight: 600;
}

/* Checkmark shown next to selected option */
.kit-select-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0;
  color: var(--c-accent);
}

.kit-select-option[data-selected="true"] .kit-select-check {
  opacity: 1;
}

/* ============================================================
   FORM ERROR MESSAGING  (per-field spans + page banner)
   Not present in the mockup; copied from the Backroom structure.
   ============================================================ */

.form-field-error {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--c-alert);
  min-height: 0;
}

.tryouts-form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: color-mix(in oklch, var(--c-alert) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--c-alert) 45%, transparent);
  border-radius: var(--radius-md);
  padding: var(--sp-30, 1rem) var(--sp-40, 1.5rem);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--c-text);
  margin-top: var(--sp-30, 1rem);
}

.tryouts-form-error[hidden] {
  display: none;
}

/* Warning icon via pseudo-element. Uses mask-image so the icon color
   inherits the alert token rather than being baked into the data URI.
   -webkit-mask- prefixes included for Safari and iOS support. */
.tryouts-form-error::before {
  content: '';
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.15em;
  background-color: var(--c-alert);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M8.485 2.495a1.75 1.75 0 0 1 3.03 0l6.5 11.25A1.75 1.75 0 0 1 16.5 16.5h-13a1.75 1.75 0 0 1-1.515-2.755l6.5-11.25ZM10 7a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 7Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z' clip-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M8.485 2.495a1.75 1.75 0 0 1 3.03 0l6.5 11.25A1.75 1.75 0 0 1 16.5 16.5h-13a1.75 1.75 0 0 1-1.515-2.755l6.5-11.25ZM10 7a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 7Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z' clip-rule='evenodd'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

/* ============================================================
   FORM FOOTER: button + reassurance copy
   ============================================================ */

.form-foot {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: var(--sp-30, 1rem);
  margin-top: var(--sp-40, 1.5rem);
}

/* Gold pill submit button */
.btn-offer {
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--c-accent);
  color: var(--c-bg);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 1rem 2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition:
    background-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart),
    transform var(--dur-fast) var(--ease-out-quart),
    box-shadow var(--dur-fast) var(--ease-out-quart);
}

.btn-offer svg {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-offer:hover {
  background: color-mix(in oklch, var(--c-accent) 85%, var(--c-text) 15%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in oklch, var(--c-accent) 35%, transparent);
}

.btn-offer:active {
  transform: translateY(0);
  transition-duration: var(--dur-instant);
}

.btn-offer:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-offer:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

.form-reassurance {
  font-size: 0.8125rem;
  color: var(--c-subtle);
  letter-spacing: 0.02em;
  line-height: 1.55;
}

/* ============================================================
   SUCCESS STATE (V2: warm confirmation block)
   Hidden via the [hidden] attribute; tryouts.js reveals it by
   clearing [hidden]. The class-level display:flex would defeat
   [hidden], so force [hidden] off explicitly.
   ============================================================ */

.tryouts-success {
  display: flex;
  background: var(--c-warm-2);
  border: 1px solid color-mix(in oklch, var(--c-highlight) 35%, var(--c-warm-line));
  border-radius: var(--radius-lg);
  padding: var(--sp-50, 2.5rem);
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-30, 1rem);
}

.tryouts-success[hidden] {
  display: none;
}

.tryouts-success__badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklch, var(--c-highlight) 18%, transparent);
  color: var(--c-highlight);
}
.tryouts-success__badge svg {
  width: 1.75rem;
  height: 1.75rem;
}

.tryouts-success__title {
  font-family: var(--ff-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.tryouts-success-msg {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-subtle);
  max-width: 42ch;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 781px) {
  .tryouts-hero {
    min-height: clamp(15rem, 40vh, 20rem);
  }

  .tryouts-hero__inner {
    padding: var(--sp-50, 2.5rem) var(--sp-40, 1.5rem) var(--sp-60, 4rem);
  }

  .who-section {
    padding-top: var(--sp-60, 4rem);
    padding-bottom: var(--sp-60, 4rem);
  }

  .tryouts-page .form-section {
    padding-top: var(--sp-50, 2.5rem);
    padding-bottom: var(--sp-60, 4rem);
  }

  .who-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-30, 1rem);
  }

  .tryouts-page .form-row {
    grid-template-columns: 1fr;
  }

  .tryouts-page .form-field--full {
    grid-column: 1;
  }

  .form-check {
    grid-column: 1;
  }

  .form-divider {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .tryouts-hero .hero-display {
    font-size: clamp(2.5rem, 13vw, 3.75rem);
    line-height: 1.02;
  }

  .tryouts-page .section-meta {
    flex-direction: column;
    gap: var(--sp-20, 0.5rem);
  }

  .form-panel {
    padding: var(--sp-50, 2.5rem) var(--sp-40, 1.5rem);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

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