/* Your Free Masterclass — application page
   White canvas, Arial, single green accent. */

:root {
  --ink: #111111;
  --ink-soft: #555555;
  --rule: #e2e2e2;
  --rule-soft: #f0f0f0;
  --green: #0f7a46;
  --green-tint: #e9f4ee;
  --white: #ffffff;
  --error: #b42318;
  --radius: 10px;
  --max: 640px;
}

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

html { background: var(--white); }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header + progress ring ---------- */

.header {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wordmark .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 13px;
}

.ring {
  --p: 0;              /* progress 0–1, set by script */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    conic-gradient(var(--green) calc(var(--p) * 360deg), var(--rule-soft) 0);
  transition: background 0.4s ease;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--white);
}

.ring span {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Stage ---------- */

.stage {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.panel { animation: rise 0.3s ease both; }

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

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(26px, 4.6vw, 36px);
  line-height: 1.18;
  font-weight: 700;
  margin-bottom: 10px;
}

.lede {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ---------- Contact form ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field label small {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

.field .error {
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.field.invalid input { border-color: var(--error); }
.field.invalid .error { display: block; }

/* ---------- Answer options ---------- */

.options {
  display: grid;
  gap: 10px;
  list-style: none;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 14px 16px 14px 0;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.option .rail {
  flex: none;
  align-self: stretch;
  width: 6px;
  margin: -14px 0;
  background: var(--rule-soft);
  transition: background 0.15s;
}

.option .idx {
  flex: none;
  width: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.option:hover,
.option:focus-visible {
  border-color: var(--green);
  background: var(--green-tint);
  outline: none;
}

.option:hover .rail,
.option:focus-visible .rail { background: var(--green); }

.option.selected {
  border-color: var(--green);
  background: var(--green-tint);
}

.option.selected .rail { background: var(--green); }
.option.selected .idx { color: var(--green); }

/* ---------- Buttons + nav ---------- */

.button {
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
}

.button:hover { background: #0b5f36; }
.button:focus-visible { outline: 3px solid var(--green-tint); outline-offset: 2px; }

.nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-button {
  font: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover { color: var(--ink); }

.hint {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Completion ---------- */

.complete { text-align: center; }

.complete .seal {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
  animation: pop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.complete .seal svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.complete h1 { margin-bottom: 12px; }
.complete .lede { margin-bottom: 28px; }

.registration {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.registration .wj-embed-wrapper { width: 100%; }

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 26px 20px 30px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.footer nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer nav a + a::before {
  content: "|";
  color: var(--rule);
  margin: 0 9px;
}

.footer p {
  margin-top: 8px;
  font-size: 12px;
}

/* ---------- Responsive + motion ---------- */

@media (max-width: 520px) {
  .header { padding: 18px 16px 0; }
  .stage { padding: 28px 16px 44px; }
  .grid-2 { grid-template-columns: 1fr; }
  .option { font-size: 16px; }
  .button { width: 100%; }
  .footer { padding: 22px 16px 26px; font-size: 12px; }
  .footer nav a + a::before { margin: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .complete .seal { animation: none; }
  .ring { transition: none; }
}
