:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #102c3d;
  background: #eff5f6;
  line-height: 1.45;
}

* { box-sizing: border-box; }

body { margin: 0; }

[hidden] { display: none !important; }

.brand,
main {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-block: .68rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.03em;
}

.brand img { display: block; }

main { padding-bottom: 2rem; }

.event {
  padding: clamp(1rem, 4vw, 2rem);
  line-height: 1.35;
  border-radius: 1rem;
  background: #0c3144;
  color: #fff;
}

h1, h2, p { margin: 0; }

h1 {
  font-size: clamp(1.65rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.event-subtitle {
  margin-top: .55rem;
  font-size: clamp(1.12rem, 3vw, 1.45rem);
  font-weight: 650;
}

.event-audience {
  margin-top: .3rem;
  color: #d2e5eb;
}

.event-details {
  margin-block: .7rem;
  padding: .55rem .85rem;
  border-inline-start: .2rem solid #76d9c1;
  border-radius: .28rem;
  background: #174459;
}

.event-details p + p { margin-top: .12rem; }

.event-inclusions { font-weight: 600; }

.availability {
  margin-top: .36rem;
  color: #a7f0d8;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .05em;
}

.registration {
  margin-top: .8rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #d9e5e7;
  border-radius: 1rem;
  background: #fff;
}

h2 {
  margin-bottom: .85rem;
  font-size: 1.4rem;
  letter-spacing: -.025em;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fields {
  display: grid;
  gap: .75rem 1rem;
}

label {
  display: grid;
  gap: .25rem;
  font-size: .94rem;
  font-weight: 650;
}

input, select, button { font: inherit; }

input, select {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  padding: .5rem .65rem;
  border: 1px solid #829ba3;
  border-radius: .5rem;
  background: #fff;
  color: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 3px solid #0875a0;
  outline-offset: 3px;
}

.notice {
  margin-block: .9rem .65rem;
  color: #3d5663;
  font-size: .875rem;
}

.notice a { color: #006249; }

button {
  width: 100%;
  min-height: 3.1rem;
  padding: .65rem;
  border: 0;
  border-radius: .55rem;
  background: #087349;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

button:hover { background: #075d3c; }
button:disabled { opacity: .7; cursor: wait; }

.status:not(:empty) { margin-top: .75rem; }
.status[data-state="error"] { color: #972628; }

.status[data-state="confirmed"] {
  margin-top: 0;
  color: #076448;
  font-weight: 750;
}

.reference {
  margin-top: .25rem;
  font-size: .92rem;
  overflow-wrap: anywhere;
}

@media (min-width: 38rem) {
  .fields { grid-template-columns: 1fr 1fr; }
}
