@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/merriweather-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #17183e;
  --text: #252631;
  --muted: #62636d;
  --gold: #d0a844;
  --gold-dark: #a67f23;
  --gold-soft: #f6eccd;
  --blue: #9fb8cf;
  --blue-soft: #edf3f8;
  --red: #c8102e;
  --success: #166534;
  --success-soft: #edf8f0;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --warning: #8a5a00;
  --warning-soft: #fff7df;
  --white: #ffffff;
  --surface: #faf9f6;
  --cream: #fbf7ee;
  --border: #ded7c8;
  --border-cool: #d8dee6;
  --shadow: 0 22px 60px rgba(23, 24, 62, 0.12);
  --shadow-soft: 0 12px 30px rgba(23, 24, 62, 0.08);
  --radius-lg: 18px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --content: 1180px;
  --form-width: 920px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: relative;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 24, 62, 0.08);
}

.top-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--ink) 0 58%, var(--gold) 58% 86%, var(--red) 86% 100%);
}

.site-header__inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 106px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}

.brand__logo {
  width: 104px;
  height: 78px;
  object-fit: contain;
}

.brand__copy {
  display: grid;
  gap: 1px;
}

.brand__copy strong {
  font-family: "Merriweather", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.brand__copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.foundation-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.foundation-link:hover,
.foundation-link:focus-visible {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid rgba(23, 24, 62, 0.08);
  background:
    linear-gradient(90deg, rgba(159, 184, 207, 0.95), rgba(159, 184, 207, 0.86)),
    linear-gradient(135deg, var(--blue), #cbd9e5);
}

.hero__inner {
  position: relative;
  width: min(calc(100% - 40px), var(--content));
  min-height: 340px;
  margin: 0 auto;
  padding: 66px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 80px;
}

.hero__inner::before,
.hero__inner::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero__inner::before {
  top: -180px;
  right: 60px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.hero__inner::after {
  top: 42px;
  right: 228px;
  width: 1px;
  height: 220px;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(35deg);
}

.hero__copy,
.hero__note {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero__copy > p:last-child {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(23, 24, 62, 0.88);
  font-size: 18px;
  line-height: 1.65;
}

.hero__note {
  padding: 24px 0 22px 24px;
  border-left: 4px solid var(--gold);
  display: grid;
  align-content: end;
  color: var(--ink);
}

.hero__note-number {
  font-family: "Merriweather", Georgia, serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
}

.hero__note > span:not(.hero__note-number) {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__note small {
  margin-top: 14px;
  color: rgba(23, 24, 62, 0.72);
  font-size: 13px;
}

.form-shell {
  position: relative;
  padding: 82px 0 100px;
  background:
    radial-gradient(circle at 10% 14%, rgba(208, 168, 68, 0.1), transparent 24%),
    var(--surface);
}

.form-shell__inner {
  width: min(calc(100% - 40px), var(--form-width));
  margin: 0 auto;
}

.form-heading {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.form-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
}

.form-heading > p:last-child {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.form-progress {
  margin-bottom: 22px;
  padding: 24px 30px 20px;
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.form-progress ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.form-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #858690;
  font-size: 13px;
  font-weight: 700;
}

.form-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 18px;
  height: 1px;
  background: var(--border-cool);
}

.form-progress li.is-current,
.form-progress li.is-complete {
  color: var(--ink);
}

.form-progress__number {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-cool);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--white);
  line-height: 1;
}

.form-progress li.is-current .form-progress__number {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 5px rgba(208, 168, 68, 0.16);
}

.form-progress li.is-complete .form-progress__number {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.form-progress__track {
  height: 3px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebedf1;
}

.form-progress__track span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #e4c967);
  transition: width 0.35s ease;
}

#progress-bar.step-1 { width: 25%; }
#progress-bar.step-2 { width: 50%; }
#progress-bar.step-3 { width: 75%; }
#progress-bar.step-4 { width: 100%; }

.event-registration-form {
  scroll-margin-top: 20px;
}

.form-step {
  position: relative;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--border);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-step::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-top: 1px solid rgba(208, 168, 68, 0.5);
  border-right: 1px solid rgba(208, 168, 68, 0.5);
}

.form-step__header {
  max-width: 700px;
  margin-bottom: 32px;
}

.form-step__index {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.form-step h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}

.form-step h3::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--gold);
}

.form-step__header p {
  margin: 15px 0 0;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.field {
  position: relative;
  margin-bottom: 22px;
}

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

.field label,
.choice-group legend,
.country-panel h4 {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.field label span,
.choice-group legend span,
.country-panel h4 span {
  color: var(--red);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.country-panel input[type="search"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfd2d8;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.country-panel input::placeholder {
  color: #8a8b94;
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.country-panel input[type="search"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(208, 168, 68, 0.18);
}

.field select:disabled {
  background: #f1f2f4;
  color: #7a7b84;
  cursor: not-allowed;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.choice-group.has-error,
.country-panel.has-error,
.consent.has-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12);
}

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

.character-count {
  display: block;
  margin-top: 5px;
  color: #858690;
  font-size: 12px;
  text-align: right;
}

.choice-group {
  margin: 4px 0 26px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
}

.choice-group.has-error {
  padding: 14px;
  background: var(--danger-soft);
}

.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-pills label {
  cursor: pointer;
}

.choice-pills input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.choice-pills span {
  min-width: 90px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  background: var(--cream);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.choice-pills input:checked + span {
  border-color: var(--gold);
  background: #fff8e6;
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(208, 168, 68, 0.17);
}

.choice-pills input:focus-visible + span {
  outline: 3px solid rgba(23, 24, 62, 0.25);
  outline-offset: 2px;
}

.country-panel {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.country-panel__heading {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.country-panel h4 {
  margin-bottom: 2px;
}

.country-panel__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.selection-count {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.country-options {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  background: var(--white);
  scrollbar-color: var(--gold) var(--cream);
}

.country-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
}

.country-option:hover {
  background: var(--blue-soft);
}

.country-option input,
.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--gold-dark);
}

.country-options__empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.consent-group {
  margin-top: 6px;
  display: grid;
  gap: 13px;
}

.consent {
  padding: 15px 16px;
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #fcfcfd;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.55;
}

.consent a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.consent a:hover {
  color: var(--ink);
}

.antispam-panel {
  margin-top: 22px;
  padding: 17px 18px;
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: var(--blue-soft);
}

.antispam-panel__copy {
  display: grid;
  gap: 2px;
}

.antispam-panel__copy strong {
  color: var(--ink);
  font-size: 14px;
}

.antispam-panel__copy span,
.turnstile-message {
  color: var(--muted);
  font-size: 12px;
}

.turnstile-message {
  grid-column: 1 / -1;
  margin: 0;
}

.turnstile-message.is-error {
  color: var(--danger);
}

.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.form-status[data-state="success"] {
  border-color: #9bd2aa;
  background: var(--success-soft);
  color: var(--success);
}

.form-status[data-state="error"] {
  border-color: #f0a7a0;
  background: var(--danger-soft);
  color: var(--danger);
}

.form-actions {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #ece9e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form-actions--end {
  justify-content: flex-end;
}

.button {
  min-width: 160px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(23, 24, 62, 0.25);
  outline-offset: 2px;
}

.button--primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(23, 24, 62, 0.2);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(208, 168, 68, 0.3);
}

.button--secondary {
  border-color: var(--border);
  background: var(--cream);
  color: var(--ink);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
}

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

.button.is-submitted:disabled {
  cursor: default;
  opacity: 1;
  background: #247a46;
}

.button__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.button.is-loading .button__spinner {
  display: block;
}

.site-footer {
  padding: 42px 0;
  border-top: 6px solid var(--gold);
  background: var(--ink);
  color: var(--white);
}

.site-footer__inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.site-footer strong {
  font-family: "Merriweather", Georgia, serif;
  font-size: 20px;
}

.site-footer p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--gold);
}

.form-trap {
  position: fixed !important;
  top: -10000px !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 420px;
  padding: 16px;
  border: 1px solid #f0a7a0;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: var(--shadow);
  font-weight: 700;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 40px;
  }

  .form-progress__label {
    display: none;
  }

  .form-progress li {
    justify-content: center;
  }

  .form-progress li:not(:last-child)::after {
    right: -10px;
    width: 20px;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    min-height: 90px;
  }

  .brand__logo {
    width: 82px;
    height: 62px;
  }

  .brand__copy strong {
    font-size: 16px;
  }

  .brand__copy span {
    font-size: 10px;
  }

  .foundation-link {
    padding: 9px 10px;
    font-size: 0;
  }

  .foundation-link span {
    font-size: 18px;
  }

  .hero__inner {
    min-height: auto;
    padding: 52px 0 58px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__note {
    max-width: 240px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero__note-number {
    font-size: 42px;
  }

  .form-shell {
    padding: 58px 0 70px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

  .country-options {
    grid-template-columns: 1fr;
  }

  .antispam-panel {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header__inner,
  .hero__inner,
  .form-shell__inner,
  .site-footer__inner {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand {
    gap: 9px;
  }

  .brand__logo {
    width: 68px;
    height: 51px;
  }

  .form-progress {
    padding: 19px 18px 17px;
  }

  .form-progress__number {
    width: 31px;
    height: 31px;
  }

  .form-step {
    padding: 24px 19px;
    border-radius: 14px;
  }

  .form-step::before {
    display: none;
  }

  .country-panel {
    padding: 17px;
  }

  .country-panel__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .form-actions {
    align-items: stretch;
  }

  .button {
    min-width: 0;
    flex: 1 1 0;
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
