:root {
  color-scheme: dark;
  --night: #102820;
  --panel: rgba(241, 245, 236, 0.97);
  --ink: #26342f;
  --muted: #66736c;
  --gold: #d8a43c;
  --gold-dark: #8d651f;
  --line-light: rgba(231, 194, 112, 0.28);
  --line-dark: rgba(45, 69, 58, 0.19);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  width: 100%;
  overflow-x: hidden;
  background: var(--night);
}

body {
  min-width: 320px;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #edf2eb;
  background:
    radial-gradient(circle at 50% -8rem, rgba(214, 159, 49, 0.13), transparent 29rem),
    linear-gradient(180deg, #18382e 0, var(--night) 30rem, #0d211b 100%);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  color: #111;
  background: var(--gold);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-header {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3rem;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.page-header > * {
  max-width: 100%;
}

.compass-rings {
  position: absolute;
  z-index: -1;
  top: -17rem;
  left: 50%;
  width: 39rem;
  height: 39rem;
  border: 1px solid rgba(216, 164, 60, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 4.25rem rgba(216, 164, 60, 0.018),
    0 0 0 8.5rem rgba(216, 164, 60, 0.012);
  transform: translateX(-50%);
}

.brand {
  display: block;
  width: 100%;
  max-width: 19rem;
  margin-bottom: 2.1rem;
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0.6rem 1.1rem rgba(0, 0, 0, 0.24));
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: #e3b556;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Cinzel", Georgia, serif;
}

h1 {
  max-width: 48rem;
  margin: 0.7rem 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4.1rem);
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.intro {
  max-width: 44rem;
  margin: 0;
  color: rgba(237, 242, 235, 0.78);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.75;
}

.header-links {
  display: flex;
  margin-top: 1.45rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-links span {
  padding: 0.52rem 0.75rem;
  border: 1px solid rgba(216, 164, 60, 0.35);
  border-radius: 999px;
  color: #f0cb7f;
}

.header-links a {
  color: rgba(237, 242, 235, 0.72);
  text-underline-offset: 0.25em;
}

.registration-shell {
  display: grid;
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  align-items: start;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.72fr);
}

.form-card,
.preview-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(216, 164, 60, 0.24);
  border-radius: 1.15rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
}

.form-card {
  padding: clamp(1.25rem, 4vw, 2.35rem);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 38%),
    var(--panel);
}

.preview-card {
  position: sticky;
  top: 1rem;
  padding: clamp(1.25rem, 3.2vw, 1.75rem);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), transparent 40%),
    #17342b;
}

.section-heading {
  display: flex;
  margin-bottom: 1.75rem;
  align-items: center;
  gap: 1rem;
}

.section-heading.compact {
  margin-bottom: 1.3rem;
}

.step-number {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  border: 1px solid rgba(141, 101, 31, 0.35);
  border-radius: 50%;
  place-items: center;
  color: var(--gold-dark);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.preview-card .step-number {
  border-color: rgba(216, 164, 60, 0.38);
  color: #e3b556;
}

.section-kicker {
  margin-bottom: 0.35rem;
  color: var(--gold-dark);
  letter-spacing: 0.15em;
}

.preview-card .section-kicker {
  color: #ddb15b;
}

.section-heading h2 {
  margin: 0;
  color: #20302a;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.preview-card .section-heading h2 {
  color: #f6f7f2;
}

.field-grid {
  display: grid;
  gap: 1.05rem;
}

.prototype-note {
  margin: 0 0 1.15rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(141, 101, 31, 0.25);
  border-radius: 0.65rem;
  color: #71531f;
  background: #f7edcf;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-name {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}

.field-wide {
  margin-top: 1.05rem;
}

.choice-field {
  min-width: 0;
  align-self: start;
}

.choice-help:not(:empty) {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line-dark);
  border-left: 3px solid #44816c;
  border-radius: 0.65rem;
  color: #2c4036;
  background: #e5ece2;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.choice-help h3 {
  margin: 0 0 0.4rem;
  color: #1d4637;
  font-size: 1.05rem;
  line-height: 1.3;
}

.choice-help p {
  margin: 0;
}

.choice-help ul {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
}

.choice-help li + li {
  margin-top: 0.35rem;
}

.choice-help .choice-note {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

.choice-context {
  margin: 0.85rem 0 0;
  color: #526158;
  font-size: 0.875rem;
  line-height: 1.55;
}

.field > span {
  color: #2c3a34;
  font-size: 1rem;
  font-weight: 800;
}

.field b {
  color: var(--gold-dark);
}

.field small {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.identity-field {
  margin-top: 1.4rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-dark);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.consent-field {
  display: flex;
  margin-top: 1.15rem;
  align-items: flex-start;
  gap: 0.7rem;
  color: #46564e;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.consent-field input {
  width: 1.05rem;
  min-width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0.12rem 0 0;
  accent-color: var(--gold-dark);
}

.consent-field b {
  color: var(--gold-dark);
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(55, 78, 67, 0.25);
  border-radius: 0.7rem;
  outline: none;
  color: #18251f;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

input,
select {
  min-height: 3rem;
  padding: 0 0.85rem;
}

textarea {
  min-height: 6.6rem;
  padding: 0.75rem 0.85rem;
  line-height: 1.55;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7b8881;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(170, 124, 39, 0.14);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #9e4e3e;
}

.privacy-note {
  display: flex;
  margin: 1.15rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 0.7rem;
  align-items: center;
  gap: 0.65rem;
  color: #526059;
  background: rgba(220, 230, 217, 0.55);
  font-size: 0.875rem;
  line-height: 1.45;
}

.privacy-note span {
  color: var(--gold-dark);
  font-size: 1rem;
}

.form-actions {
  display: flex;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  padding: 0.76rem 1.1rem;
  border: 0;
  border-radius: 0.72rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.button:disabled {
  cursor: wait;
  filter: grayscale(0.35);
  opacity: 0.72;
  transform: none;
}

.button:focus-visible {
  outline: 3px solid rgba(216, 164, 60, 0.45);
  outline-offset: 3px;
}

.button-primary {
  flex: 1 1 13rem;
  color: #13251e;
  background: linear-gradient(135deg, #e5bb62, #ca8e25);
  box-shadow: 0 0.75rem 1.5rem rgba(129, 84, 17, 0.22);
}

.button-quiet {
  color: #415149;
  background: #dce6d9;
}

.comment-preview {
  padding: 1.1rem;
  border: 1px solid var(--line-light);
  border-radius: 0.85rem;
  background: rgba(7, 25, 20, 0.48);
}

.comment-label {
  display: block;
  margin-bottom: 0.85rem;
  color: #dfb45c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.comment-preview pre {
  max-width: 100%;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: rgba(245, 248, 242, 0.9);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
}

.status-message {
  min-height: 2.5rem;
  margin: 0.85rem 0;
  color: rgba(237, 242, 235, 0.66);
  font-size: 0.875rem;
  line-height: 1.55;
}

.status-message.success {
  color: #f0cb7f;
  font-weight: 700;
}

.status-message.error {
  color: #f0a999;
  font-weight: 700;
}

.success-card {
  margin: 0.9rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(216, 164, 60, 0.38);
  border-radius: 0.85rem;
  color: #eef4eb;
  background: rgba(7, 25, 20, 0.48);
}

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

.success-card span {
  display: block;
  color: #dfb45c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.success-card strong {
  display: block;
  margin-top: 0.55rem;
  color: #fff;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.success-card p {
  margin: 0.5rem 0 0;
  color: rgba(237, 242, 235, 0.68);
  font-size: 0.875rem;
  line-height: 1.55;
}

.button-facebook {
  width: 100%;
  color: #fff;
  background: #2767b2;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.18);
}

.final-note {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(233, 202, 134, 0.18);
  color: rgba(237, 242, 235, 0.65);
  font-size: 0.875rem;
  line-height: 1.55;
}

.final-note strong {
  color: rgba(246, 248, 242, 0.88);
}

.final-note p {
  margin: 0.35rem 0 0;
}

.page-footer {
  display: flex;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  align-items: center;
  flex-direction: column;
  gap: 0.65rem;
  color: rgba(237, 242, 235, 0.54);
  font-size: 0.8rem;
  text-align: center;
}

.page-footer span {
  color: #d4a244;
}

.page-footer p {
  margin: 0;
}

.page-footer a {
  color: #dcba76;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

@media (max-width: 820px) {
  .registration-shell {
    max-width: 42rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-card {
    position: static;
  }
}

@media (max-width: 540px) {
  .page-header {
    max-width: 36rem;
    padding: 1.15rem 1.5rem 2.2rem;
  }

  .brand {
    width: 88%;
    max-width: 14rem;
    margin-bottom: 1.25rem;
  }

  h1 {
    font-size: clamp(1.85rem, 9.5vw, 2.45rem);
  }

  .eyebrow {
    line-height: 1.65;
  }

  .header-links {
    flex-direction: column;
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-card,
  .preview-card {
    border-radius: 0.9rem;
  }

  .form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .button {
    width: 100%;
  }
}

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