:root {
  --ink: #142033;
  --muted: #5b677a;
  --line: #d8dee8;
  --paper: #f4f6f9;
  --accent: #1e4d8c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9e6f7 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #f3e3d6 0%, transparent 45%),
    var(--paper);
  line-height: 1.45;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.hero {
  margin-bottom: 28px;
}

.hero-centered {
  text-align: center;
}

.hero-centered p {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.back-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.form-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 32, 51, 0.08);
  overflow: visible;
  padding: 8px;
}

.form-shell iframe {
  display: block;
  width: 100%;
  min-height: 2400px;
  height: 2400px;
  border: 0;
  background: #fff;
}

/* Register page: soft form chrome + shorter iframe */
.register-page .form-shell {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.register-page .form-shell iframe {
  min-height: 960px;
  height: 960px;
  background: transparent;
}

.register-page .form-shell.is-complete {
  overflow: hidden;
}

.register-page .form-shell.is-complete iframe {
  min-height: 0;
}

.register-page .post-submit-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 18px 0 0;
}

/* Keep hidden until JS removes [hidden] — author display:grid can otherwise override it */
.register-page .post-submit-actions[hidden] {
  display: none !important;
}

.register-page .post-submit-home,
.thank-you-page .post-submit-home {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 10px;
}

.register-page .post-submit-home:hover,
.thank-you-page .post-submit-home:hover {
  filter: brightness(1.05);
}

.event-summary {
  margin-top: 10px !important;
  color: var(--ink) !important;
  font-weight: 600;
}

/* Register + thank-you pages */
.register-page,
.thank-you-page {
  max-width: 760px;
}

.thank-you-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  margin: 0 0 18px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.07);
}

.thank-you-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.thank-you-card p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
}

.thank-you-page .post-submit-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 8px 0 0;
}

.register-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.register-top h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.register-top .back-link {
  margin-top: 0;
}

.event-ticket {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 18px;
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.07);
}

.ticket-date {
  background: #17365d;
  color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 12px 8px;
  min-height: 84px;
  display: grid;
  place-content: center;
  gap: 2px;
}

.ticket-date .dow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ticket-date .dom {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.ticket-date .mon {
  font-size: 12px;
  opacity: 0.9;
}

.ticket-copy h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.ticket-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ticket-place {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--ink);
}

.ticket-venue {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.ticket-address {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  white-space: pre-line;
}

@media (max-width: 640px) {
  .event-ticket {
    grid-template-columns: 72px 1fr;
  }
}

.form-note {
  margin: 24px 0 0;
  color: var(--muted);
}

.form-note a {
  color: var(--accent);
  font-weight: 600;
}

[hidden] {
  display: none !important;
}
