:root {
  --paper: #f4ede2;
  --paper-light: #fffaf2;
  --ink: #111111;
  --navy: #0f2e67;
  --navy-deep: #091a3d;
  --orange: #f1ad00;
  --orange-bright: #ffc329;
  --success: #b9f2cf;
  --error: #ffd0c9;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: "Public Sans", sans-serif;
  background:
    radial-gradient(circle at 8% 5%, rgba(241, 173, 0, 0.28), transparent 28rem),
    linear-gradient(135deg, var(--paper-light), var(--paper));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 46, 103, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 46, 103, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: rgba(255, 250, 242, 0.93);
}

@media (min-width: 861px) {
  .registration-layout {
    width: min(100%, 1200px);
    margin-inline: auto;
  }
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(3rem, 6vw, 7rem);
  padding-inline: clamp(2rem, 3.25vw, 3.5rem);
  overflow: hidden;
}

.eyebrow,
.form-kicker {
  margin: 0;
  color: var(--navy);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workshop-tag {
  align-self: flex-start;
  margin: 1.5rem 0 1rem;
  padding: 0.45rem 0.75rem;
  color: var(--navy-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--orange);
  transform: rotate(-1deg);
}

h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 {
  max-width: none;
  color: var(--navy);
  font-size: clamp(4.4rem, 5.85vw, 5.25rem);
  letter-spacing: -0.02em;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
}

.hero-points {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  font-size: 0.98rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.45;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--orange);
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(3rem, 5vw, 6rem);
  padding-inline: clamp(2rem, 3.5vw, 4rem);
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 38%),
    var(--navy-deep);
}

.form-heading {
  margin-bottom: 1.25rem;
}

.form-heading .form-kicker {
  margin-bottom: 0.35rem;
  color: var(--orange-bright);
}

.registration-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.field {
  display: grid;
  align-content: end;
  gap: 0.35rem;
  min-width: 0;
}

.field > span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
  font-size: 0.9rem;
}

input {
  min-height: 42px;
  padding: 0.65rem 0.75rem;
}

textarea {
  min-height: 58px;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
.submit-button:focus-visible {
  outline: 3px solid rgba(255, 195, 41, 0.75);
  outline-offset: 2px;
}

.submit-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--navy-deep);
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--orange-bright);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  min-height: 1.2rem;
  margin: -0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--error);
}

.form-status:empty {
  display: none;
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .registration-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .form-panel {
    min-height: auto;
    padding: clamp(3rem, 9vw, 5rem);
  }

  h1 {
    font-size: clamp(3rem, 8vw, 4rem);
  }

}

@media (max-width: 680px) {
  .hero-copy,
  .form-panel {
    padding: 2.5rem 1.35rem;
  }

  .workshop-tag {
    margin-top: 1rem;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 4rem);
  }

  .hero-lead {
    margin-top: 1rem;
  }

  .hero-points {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

}

@media (max-height: 820px) and (min-width: 861px) {
  .hero-copy,
  .form-panel {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .workshop-tag {
    margin-top: 0.8rem;
  }

  .hero-lead,
  .hero-points {
    margin-top: 0.9rem;
  }

  .hero-points {
    gap: 0.4rem;
  }

  .form-heading {
    margin-bottom: 0.75rem;
  }

  .registration-form {
    gap: 0.45rem;
  }

  textarea {
    min-height: 42px;
  }

  input {
    min-height: 36px;
    padding-block: 0.45rem;
  }

  .submit-button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .submit-button {
    transition: none;
  }
}

/* The assessment page shares the workshop palette, with its own headline rhythm. */
.assessment-page h1 { font-size: clamp(3rem, 6.5vw, 5.4rem); line-height: 0.95; }
.assessment-page .time-waster { white-space: nowrap; }
.simpler-way { margin: 1.3rem 0 0; color: var(--navy); font-size: 1.35rem; font-weight: 700; }
.hero-description { max-width: 34rem; margin: 0.8rem 0 0; font-size: 1rem; line-height: 1.65; }
.form-intro { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); }
.optional { font-weight: 400; }
.assessment-page .registration-form { gap: 1rem; }
.assessment-page .submit-button { margin-top: 0.4rem; }
@media (max-width: 860px) {
  .assessment-page h1 { font-size: clamp(2.8rem, 10vw, 5rem); }
}
