:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f1ed;
  color: #20242a;
  --border: #d8cec0;
  --muted: #646f7d;
  --panel: #ffffff;
  --accent: #2f6f69;
  --accent-dark: #194d4a;
  --gold: #bb8d38;
  --danger: #a13b2b;
  --focus: #2e66c7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.mock-checkout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: #182322;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 28, 28, 0.92), rgba(15, 28, 28, 0.45) 62%, rgba(15, 28, 28, 0.18));
}

.hero-content,
.availability {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(680px, 100%);
  align-self: end;
  padding: 56px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

.hero #event-meta {
  max-width: 610px;
  margin-bottom: 28px;
  color: #ecf2f1;
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button-link,
.text-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border-radius: 6px;
  font-weight: 780;
  text-decoration: none;
}

.button-link {
  padding: 0 18px;
  background: #fff;
  color: var(--accent-dark);
}

.text-link {
  color: #fff;
}

.availability {
  position: absolute;
  right: 28px;
  bottom: 28px;
  min-width: 156px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.availability span {
  display: block;
}

#availability-count {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.details-band,
.intro-grid,
.registration {
  background: var(--panel);
  border: 1px solid var(--border);
}

.details-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 8px;
}

.details-band div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #fbfaf8;
}

.details-band span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  text-transform: uppercase;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 30px;
  margin-top: 18px;
  padding: 28px;
  border-radius: 8px;
}

.intro-grid p,
.proof-list li {
  color: #41505d;
  line-height: 1.7;
}

.proof-list {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbfa;
}

.proof-list ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.proof-list li + li {
  margin-top: 10px;
}

.registration {
  margin-top: 18px;
  border-radius: 8px;
}

.section {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: 0;
}

.section-heading,
.attendee-row-heading,
.order-section,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.attendees-heading {
  margin-bottom: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: #344256;
  font-size: 0.92rem;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #1c2430;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
button:focus {
  outline: 3px solid color-mix(in srgb, var(--focus) 28%, transparent);
  outline-offset: 2px;
}

[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.1rem;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
}

.form-alert {
  margin: 24px 24px 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 55%, #fff);
  border-radius: 6px;
  background: #fff7f4;
  color: var(--danger);
  font-weight: 700;
}

.attendee-list {
  display: grid;
  gap: 16px;
}

.attendee-row {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfaf8;
}

.toggle-line,
.terms {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-line input,
.terms input {
  width: 18px;
  min-height: 18px;
}

.total-box {
  min-width: 164px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: right;
}

.total-box span,
.total-box strong {
  display: block;
}

.total-box strong {
  margin-top: 4px;
  font-size: 1.4rem;
}

.actions {
  padding: 24px;
  border-top: 1px solid var(--border);
}

button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #185d50;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button.secondary {
  background: #eef7f5;
  color: #185d50;
}

button.ghost {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: #405064;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 720px) {
  main {
    width: min(100% - 20px, 1040px);
    padding-top: 10px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 28px 18px 144px;
  }

  .availability {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .details-band,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .attendee-row-heading,
  .order-section,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .availability,
  .total-box {
    width: 100%;
    text-align: left;
  }
}
