:root {
  --navy: #062f5f;
  --navy-deep: #021f42;
  --blue: #147fb7;
  --sky: #b9e8f7;
  --gold: #ffc20f;
  --gold-soft: #ffe39a;
  --paper: #fbfaf6;
  --line: #d9e5ee;
  --muted: #566a7f;
  --ink: #05224a;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--paper), #ffffff 38%, #f5fbff);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
  overflow: hidden;
}

.event-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(820px, 100vh);
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(2, 31, 66, 0.2);
}

.image-panel {
  position: absolute;
  inset: 0;
}

.image-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 31, 66, 0.68), rgba(2, 31, 66, 0.3)),
    radial-gradient(circle at 50% 50%, rgba(255, 194, 15, 0.12), transparent 38%);
  pointer-events: none;
}

.image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blue-panel {
  position: relative;
  display: grid;
  z-index: 1;
  width: min(560px, calc(100% - 32px));
  padding: 0;
  color: var(--white);
}

.details-card {
  display: grid;
  gap: 13px;
  align-content: center;
  width: 100%;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 8px solid var(--gold);
  border-radius: 8px;
  background: rgba(2, 31, 66, 0.78);
  box-shadow: 0 28px 80px rgba(2, 31, 66, 0.36);
  backdrop-filter: blur(14px);
  color: var(--white);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-row img {
  display: block;
  width: min(82px, 28%);
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-row span {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
#event-title {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.intro {
  margin-bottom: 0;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

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

.quick-facts div {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.quick-facts span {
  display: block;
  margin-bottom: 4px;
  color: var(--sky);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quick-facts strong {
  color: var(--white);
  font-size: 1.08rem;
}

.event-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.event-details div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.event-details div:first-child {
  border-top: 0;
}

.event-details dt {
  margin-bottom: 3px;
  color: var(--sky);
  font-size: 0.7rem;
  font-weight: 800;
}

.event-details dd {
  margin: 0;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
}

.event-details a {
  text-decoration-color: rgba(255, 194, 15, 0.58);
  text-underline-offset: 4px;
}

.register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(255, 194, 15, 0.34);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.register-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 194, 15, 0.46);
}

.register-button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.form-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1120px);
  align-items: start;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px) clamp(12px, 4vw, 48px);
  scroll-margin-top: 18px;
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy) 62%, #073a76);
  color: var(--white);
}

.form-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 8% 10%, rgba(20, 127, 183, 0.34), transparent 24%),
    radial-gradient(circle at 95% 80%, rgba(255, 194, 15, 0.2), transparent 20%);
  pointer-events: none;
}

.form-heading,
.form-card {
  position: relative;
  z-index: 1;
}

.form-heading {
  display: grid;
  gap: 14px;
  max-width: 360px;
  padding: 24px;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(2, 31, 66, 0.22);
  backdrop-filter: blur(10px);
}

.form-heading h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.form-heading > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.registration-summary {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.registration-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.registration-summary span {
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.registration-summary strong {
  color: var(--white);
  font-size: 1rem;
}

.form-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.form-link:hover {
  border-color: rgba(255, 194, 15, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.form-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(2, 31, 66, 0.3);
  overflow: hidden;
}

.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--gold) 0 8px, transparent 8px),
    var(--white);
  color: var(--ink);
}

.form-card-header span,
.form-card-header strong {
  display: block;
}

.form-card-header span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-card-header strong {
  color: var(--navy);
  font-size: 1rem;
}

.form-frame {
  min-height: 820px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--white);
  overflow: hidden;
}

.form-frame iframe {
  display: block;
  width: 100%;
  min-height: 820px;
  border: 0;
}

.form-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 820px;
  padding: 28px;
  text-align: center;
}

.form-placeholder h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.25rem;
}

.form-placeholder p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
}

code {
  border-radius: 5px;
  background: #edf3f9;
  padding: 2px 5px;
  color: var(--navy);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .form-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .event-shell {
    min-height: 720px;
    padding: 28px 0;
  }

  .blue-panel {
    width: min(560px, calc(100% - 28px));
  }

  .details-card {
    margin: 0 auto;
  }

  .form-heading {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .event-shell {
    width: min(100% - 18px, 1440px);
    min-height: 760px;
    padding-top: 16px;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .brand-row img {
    width: 82px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .event-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .register-button {
    justify-self: stretch;
  }

  .registration-summary div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .form-link {
    width: 100%;
  }

  .form-frame,
  .form-frame iframe,
  .form-placeholder {
    min-height: 760px;
  }
}
