:root {
  color-scheme: light;
  font-family: "Inter", system-ui, sans-serif;
  color: #171c36;
  background: #eef2f8;
  line-height: 1.5;
  --accent: #34328d;
  --muted: #596177;
  --border: #ccd4e1;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.layout {
  width: min(1160px, calc(100% - 3rem));
  margin: clamp(1.5rem, 6vw, 5rem) auto;
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  gap: 1.25rem;
  align-items: start;
}

.intro, .card { border-radius: 1.5rem; overflow: hidden; }
.intro { background: #fcfcfc; box-shadow: 0 8px 28px #1f35550e; }
.brand { display: flex; align-items: center; padding: 1.3rem 2rem; }
.brand img { display: block; width: 202px; height: auto; max-width: 100%; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  padding: clamp(1.5rem, 3.75vw, 3rem);
  background: radial-gradient(ellipse at 100% 100%, #302d72, #171a3e 68%);
  color: white;
}
.event {
  margin: 0 0 1.2rem;
  color: #94e5f8;
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: .15em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.1vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.055em;
}
.summary { max-width: 30ch; color: #e0e7f7; margin-bottom: 0; }
.brand-art {
  position: absolute;
  z-index: -1;
  inset: auto -2.5rem -3.5rem auto;
  width: 16rem;
  aspect-ratio: 1;
  background: url("/mark.webp") center / contain no-repeat;
  filter: invert(1) grayscale(1);
  mix-blend-mode: screen;
  opacity: .17;
  pointer-events: none;
}
.card {
  background: #fff;
  border: 1px solid #e1e6ee;
  box-shadow: 0 8px 28px #1f35550e;
  padding: clamp(1.25rem, 3.4vw, 2.6rem);
}
.card h2 { margin: 0 0 .3rem; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.045em; }
.card-header p, .hint, .privacy { color: var(--muted); }
.card-header p { margin-bottom: 1.5rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label, legend { font-size: .93rem; font-weight: 650; }
.optional { margin-inline-start: .25rem; font-size: .875rem; font-weight: 400; color: var(--muted); }
input:not([type=checkbox]), select, textarea {
  display: block;
  width: 100%;
  min-height: 2.85rem;
  margin-top: .35rem;
  padding: .6rem .7rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: #fbfcfe;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}
select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, #596177 50%), linear-gradient(135deg, #596177 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 1.45rem 0 0; }
legend { padding: 0; }
.hint { margin: .15rem 0 .65rem; font-size: .9rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .4rem .7rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  cursor: pointer;
}
.choices label:has(:checked) { background: #efeffc; border-color: var(--accent); color: #2d297c; }
.choices input { margin: 0; width: 1rem; height: 1rem; accent-color: var(--accent); }
.details {
  display: grid;
  gap: .75rem;
  padding: .9rem;
  margin-top: .8rem;
  border: 1px solid #e3e7f2;
  border-radius: .75rem;
  background: #f5f7fc;
}
.details h3 { margin: 0; font-size: 1rem; }
.privacy { font-size: .9rem; margin: 1.4rem 0 .9rem; }
button {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .9rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  border-radius: .7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #28266e; }
button:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 3px solid #3b77c0; outline-offset: 3px; }
.error { color: #991b1b; margin: .8rem 0 0; }
.secondary { width: auto; }
@media (max-width: 800px) {
  .layout { width: min(610px, calc(100% - 2rem)); grid-template-columns: 1fr; gap: .85rem; }
  .hero { min-height: 0; padding-bottom: 1.8rem; }
  .brand { padding: .85rem 1.35rem; }
  .brand img { width: 160px; }
  .brand-art { width: 12rem; }
  .desktop-break { display: none; }
}
@media (max-width: 480px) {
  .fields { grid-template-columns: 1fr; }
  .layout { margin-block: 1rem; }
  .intro, .card { border-radius: 1rem; }
}
