:root {
  --bg-deep: #0f1229;
  --bg1: #e8ecf9;
  --bg2: #f5f0e8;
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --text: #16182b;
  --muted: #5a6178;
  --border: rgba(22, 24, 43, 0.1);
  --input-bg: rgba(255, 255, 255, 0.85);
  --accent: #3d4f8f;
  --accent2: #7c5cbf;
  --accent-glow: rgba(61, 79, 143, 0.35);
  --success: #0d6b4a;
  --success-bg: #e6f5ef;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --radius: 16px;
  --radius-sm: 12px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --shadow: 0 4px 24px rgba(15, 18, 41, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 18, 41, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(165deg, var(--bg1) 0%, var(--bg2) 55%, #eef6ff 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(124, 92, 191, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 30%, rgba(61, 79, 143, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 200, 150, 0.15), transparent 45%);
  z-index: 0;
}

.staff-login-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.staff-login-btn:hover {
  background: rgba(61, 79, 143, 0.08);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.staff-login-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .staff-login-btn {
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.15rem 3.5rem;
}

/* —— Hero —— */
header.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 255, 0.98) 100%);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

header.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), #e8a87c);
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(61, 79, 143, 0.12), rgba(124, 92, 191, 0.1));
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

header.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero-sub {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.lead {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.lead strong {
  color: var(--accent);
  font-weight: 600;
}

.detail-grid {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-card-wide {
    grid-column: 1 / -1;
  }
}

.detail-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(61, 79, 143, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 79, 143, 0.08);
}

.detail-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, rgba(255, 255, 255, 0.7));
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(61, 79, 143, 0.1);
}

.detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.detail-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(22, 24, 43, 0.12);
}

.perk {
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.perk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5cb87a, #3d8f6a);
  flex-shrink: 0;
}

/* —— Notice —— */
.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #fff8e6 0%, #fff 100%);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(212, 165, 75, 0.35);
  box-shadow: var(--shadow);
}

.notice-ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4b942, #e09a1f);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notice strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.notice p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* —— Progress —— */
.progress-shell {
  position: sticky;
  top: 0.75rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 18, 41, 0.06);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.progress-step {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.progress-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(61, 79, 143, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: calc(100% / 6);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: transform 0.35s ease, width 0.35s ease;
  transform-origin: left center;
}

/* —— Sections —— */
section.block {
  background: var(--card);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.6rem;
  margin-bottom: 1.15rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-margin-top: 5.5rem;
}

section.block-waiver {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 252, 255, 0.98) 100%);
}

.block-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(22, 24, 43, 0.08);
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #2d3a6e);
  box-shadow: 0 6px 16px var(--accent-glow);
}

section.block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.block-lead {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.field {
  margin-bottom: 1.2rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

label.title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.req {
  color: var(--danger);
  font-weight: 700;
  margin-left: 2px;
}

.hint {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.media-consent-q {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

input[type='text'],
input[type='tel'],
input[type='date'],
textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(22, 24, 43, 0.12);
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8b92a8;
}

input:hover,
textarea:hover {
  border-color: rgba(61, 79, 143, 0.35);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* —— Choice cards (t-shirt, media) —— */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

@media (min-width: 420px) {
  .choice-grid:not(.choice-grid--two) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.choice-grid--two {
  grid-template-columns: 1fr 1fr;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(22, 24, 43, 0.1);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.choice-card:hover {
  border-color: rgba(61, 79, 143, 0.45);
  background: #fff;
}

.choice-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.choice-card input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.choice-card:has(input:checked),
.choice-card.is-selected {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(61, 79, 143, 0.1), rgba(124, 92, 191, 0.08));
  color: var(--accent);
}

.choice-card-large {
  min-height: 56px;
  font-size: 0.95rem;
}

/* —— Waiver —— */
.waiver {
  font-size: 0.88rem;
  color: var(--text);
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(61, 79, 143, 0.04);
  border: 1px solid rgba(22, 24, 43, 0.08);
  margin-bottom: 0.25rem;
}

.waiver h3 {
  margin: 1rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.waiver h3:first-child {
  margin-top: 0;
}

.waiver p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: var(--muted);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding: 1rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(13, 107, 74, 0.06);
  border: 1px solid rgba(13, 107, 74, 0.2);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* —— File upload —— */
.file-zone {
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(61, 79, 143, 0.28);
  background: rgba(61, 79, 143, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.file-zone-main {
  position: relative;
  min-height: 112px;
}

.file-zone:hover,
.file-zone:focus-within {
  border-color: var(--accent);
  background: rgba(61, 79, 143, 0.06);
}

.file-zone.drag {
  border-color: var(--accent2);
  background: rgba(124, 92, 191, 0.08);
  box-shadow: 0 0 0 4px rgba(124, 92, 191, 0.15);
}

.file-zone input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-zone-label {
  display: block;
  padding: 1.35rem 1.1rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.file-zone-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.file-zone-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.file-list {
  margin: 0;
  padding: 0.65rem 1rem 1rem;
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 600;
  text-align: center;
  border-top: 1px solid rgba(22, 24, 43, 0.08);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 0 calc(var(--radius-sm) - 2px) calc(var(--radius-sm) - 2px);
}

.file-list.is-empty {
  color: var(--muted);
  font-weight: 500;
}

/* —— Submit —— */
.submit-wrap {
  margin-top: 0.5rem;
}

button.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 1.25rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: calc(var(--radius-sm) + 2px);
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, #5a3d8f 50%, var(--accent2) 100%);
  background-size: 200% 200%;
  box-shadow: 0 8px 28px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(61, 79, 143, 0.4);
}

button.submit:active:not(:disabled) {
  transform: translateY(0);
}

button.submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

button.submit svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

button.submit:hover:not(:disabled) svg {
  transform: translateX(4px);
}

.submit-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

/* —— Banner —— */
.banner {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: var(--shadow);
}

.banner.show {
  display: block;
  animation: bannerIn 0.45s ease;
}

@keyframes bannerIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner.ok {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(13, 107, 74, 0.35);
}

.banner.err {
  background: var(--danger-bg);
  color: #8a1c15;
  border: 1px solid rgba(180, 35, 24, 0.35);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-foot {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-foot p {
  margin: 0;
}

/* :has() fallback for older browsers — radios still work via native behavior */
@supports not selector(:has(*)) {
  .choice-card input:focus + span {
    outline: 2px solid var(--accent);
  }
}
