:root {
  --ink: #17353a;
  --muted: #62777a;
  --teal: #104b5b;
  --teal-soft: #dff3f0;
  --aqua: #ade8f4;
  --orange: #f47a0b;
  --paper: #fbfcfb;
  --sand: #f7f2e8;
  --white: #fff;
  --line: #d9e3e2;
  --success: #14785b;
  --danger: #b33d32;
  --shadow: 0 18px 55px rgba(16, 75, 91, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.55 "DM Sans", system-ui, sans-serif;
  background: var(--paper);
}

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

button,
a {
  touch-action: manipulation;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 10px;
  z-index: 99;
  background: var(--white);
  padding: 10px;
}

.site-header {
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 800 24px/1 Manrope, sans-serif;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #158c8b);
  color: var(--white);
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding: clamp(48px, 7vw, 92px) clamp(20px, 7vw, 110px);
  background:
    radial-gradient(circle at 88% 16%, rgba(173, 232, 244, 0.75) 0, transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(244, 122, 11, 0.16) 0, transparent 28%),
    linear-gradient(135deg, #f7f2e8, #eff8f6);
  overflow: hidden;
}

.hero-copy-block {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0 0 22px;
  font: 800 clamp(38px, 5.8vw, 76px)/1.04 Manrope, sans-serif;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--teal);
}

.hero-copy,
.page-subtitle {
  max-width: 720px;
  color: #465f62;
  font-size: clamp(18px, 2vw, 22px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.center-actions {
  justify-content: center;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-large {
  min-width: min(100%, 280px);
  min-height: 58px;
  font-size: 17px;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding-inline: 8px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.hero-card,
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 227, 226, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(24px, 4vw, 38px);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -88px;
  bottom: -112px;
  border: 24px solid rgba(173, 232, 244, 0.7);
  border-radius: 50%;
}

.date-block,
.fact {
  display: flex;
  align-items: center;
  gap: 18px;
}

.date-block {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.date-day {
  color: var(--teal);
  font: 800 58px/1 Manrope, sans-serif;
}

.event-facts {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.fact-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

.connection {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.connection.online {
  background: #ddf6e9;
  color: var(--success);
}

.connection.offline,
.connection.checking {
  background: #fff4e7;
  color: #985400;
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 70px) 20px 90px;
}

.page-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.page-title {
  font-size: clamp(34px, 5vw, 60px);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 28px 0 34px;
}

.step {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.step::before {
  content: "";
  display: block;
  height: 6px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: var(--line);
}

.step.active,
.step.done {
  color: var(--teal);
  font-weight: 800;
}

.step.active::before,
.step.done::before {
  background: var(--teal);
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.card {
  padding: clamp(22px, 4vw, 38px);
}

.card h2,
.card h3 {
  margin-top: 0;
  font-family: Manrope, sans-serif;
}

.side-card {
  position: sticky;
  top: 104px;
  background: var(--sand);
}

.side-card ol {
  padding-left: 20px;
}

.side-card li + li {
  margin-top: 10px;
}

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

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

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

.field label,
.legend {
  color: var(--ink);
  font-weight: 800;
}

.required {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b9cac8;
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(173, 232, 244, 0.95);
  outline-offset: 2px;
}

.checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.checkbox input {
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
}

.commitment {
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 98% 18%, rgba(244, 122, 11, 0.18), transparent 30%),
    linear-gradient(135deg, var(--teal), #0f6574);
  color: var(--white);
}

.commitment .eyebrow,
.commitment .hint {
  color: rgba(255, 255, 255, 0.84);
}

.commitment h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 38px);
}

.guest-commitment {
  background:
    radial-gradient(circle at 96% 15%, rgba(173, 232, 244, 0.28), transparent 32%),
    linear-gradient(135deg, var(--teal), #0d3946);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.success-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.success-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #dff5e9;
  color: var(--success);
  font-size: 34px;
  font-weight: 800;
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  text-align: left;
}

.summary div {
  min-width: 0;
  background: var(--white);
  padding: 16px;
}

.summary small {
  display: block;
  color: var(--muted);
}

.summary strong {
  overflow-wrap: anywhere;
}

.next-step-card {
  margin: 24px auto 0;
  padding: 24px;
  border-radius: 22px;
  background: var(--teal-soft);
  text-align: center;
}

.next-step-card.important {
  background:
    radial-gradient(circle at 100% 0, rgba(244, 122, 11, 0.18), transparent 36%),
    linear-gradient(135deg, #e8f7f4, #fff8ef);
  border: 1px solid rgba(244, 122, 11, 0.3);
}

.next-step-card .btn {
  margin-top: 8px;
}

.qr-preview {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin: 18px auto 8px;
  border-radius: 18px;
  background: var(--white);
  padding: 12px;
}

.registration-status-card {
  max-width: 900px;
}

.loading-card {
  max-width: 820px;
  margin: 0 auto;
}

.lookup {
  max-width: 700px;
  margin: 0 auto;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 7vw, 110px);
  background: #102f33;
  color: var(--white);
}

footer p {
  margin: 5px 0;
  color: #bcd0ce;
}

footer div:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

footer a {
  color: var(--white);
}

#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 40px));
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

#toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    max-width: 680px;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-header {
    align-items: center;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: 12px 20px 20px;
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 42px 18px 50px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-height: 54px;
    white-space: normal;
    text-align: center;
  }

  .form-grid,
  .summary {
    grid-template-columns: 1fr;
  }

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

  .stepper {
    grid-template-columns: repeat(4, minmax(42px, 1fr));
  }

  .step span {
    display: none;
  }

  footer {
    flex-direction: column;
  }
}


.brand-logo {
  display: block;
  width: min(220px, 48vw);
  height: auto;
}

.site-header nav a.registration-entry {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(244, 122, 11, 0.25);
}

.site-header nav a.registration-entry:hover {
  color: var(--white);
  background: #d96a00;
}

@media (max-width: 820px) {
  .brand-logo {
    width: min(190px, 58vw);
  }

  .site-header nav a.registration-entry {
    width: 100%;
  }
}
