:root {
  color-scheme: light;
  --ink: #101010;
  --muted: #686868;
  --line: #ded8ca;
  --paper: #f7f4ec;
  --panel: #fffaf0;
  --black: #000000;
  --surface: #0c0c0c;
  --gold: #d4af37;
  --gold-hover: #e5c04a;
  --red: #c41e3a;
  --green: #1f4f3f;
  --blue: #1f405d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.78) 100%),
    url("images/cc-banner.webp")
      center / cover fixed,
    var(--black);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(420px, 0.74fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.brand-panel {
  min-height: 520px;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  padding: 30px 0;
  color: #fff;
}

.club-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.club-topline {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.club-bullet {
  width: clamp(118px, 15vw, 190px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
}

.club-text {
  display: block;
  width: clamp(270px, 28vw, 430px);
  max-width: 100%;
  height: auto;
  margin-top: 14px;
  filter: drop-shadow(0 9px 28px rgba(0, 0, 0, 0.6));
}

.eyebrow {
  margin: 0 0 8px;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  width: max-content;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(4.7rem, 6.9vw, 7.6rem);
  font-weight: 400;
  line-height: 0.76;
  text-transform: uppercase;
  text-shadow: 0 9px 28px rgba(0, 0, 0, 0.6);
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: 1.65rem;
  line-height: 1.15;
}

.flow-panel,
.pass-panel {
  width: 100%;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.flow-panel {
  padding: 24px;
}

.panel-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading .eyebrow {
  color: var(--red);
}

.guest-form {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

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

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 111, 143, 0.16);
}

.checkbox-row {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.checkbox-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.checkbox-row span {
  font-size: 0.82rem;
  line-height: 1.35;
}

.primary-action,
.secondary-action,
.text-action {
  min-height: 50px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  color: #141414;
  background: var(--gold);
}

.primary-action:hover {
  background: var(--gold-hover);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-action {
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
}

.text-action {
  padding: 0 14px;
  color: var(--gold);
  background: transparent;
}

.form-error {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: var(--red);
  background: rgba(164, 61, 53, 0.08);
  font-weight: 700;
}

.form-error.limit-reached {
  display: grid;
  gap: 10px;
  padding: 16px;
  color: var(--ink);
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.form-error.limit-reached strong {
  display: block;
  color: var(--red);
  font-size: 1.02rem;
  line-height: 1.25;
}

.form-error.limit-reached span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.limit-membership-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 0 16px;
  border-radius: 4px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.limit-membership-link:hover {
  background: var(--blue);
}

.pass-panel {
  padding: 18px;
}

.pass-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.pass-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  color: #fff;
  background: var(--surface);
}

.pass-mark {
  width: 64px;
  height: auto;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.pass-guest {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.pass-guest span,
.pass-details span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pass-guest strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
}

.pass-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.pass-details div {
  min-height: 84px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pass-details div:nth-child(2n) {
  border-right: 0;
}

.pass-details div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.pass-details strong {
  display: block;
  font-size: 1rem;
}

.pass-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
}

.membership-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(212, 175, 55, 0.68);
  border-radius: 4px;
  color: #fff;
  background: rgba(12, 12, 12, 0.72);
  font-weight: 800;
  text-decoration: none;
}

.membership-link:hover {
  color: #141414;
  background: var(--gold);
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  body {
    background-attachment: scroll;
  }

  .app-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px;
    gap: 10px;
  }

  .brand-panel {
    min-height: 250px;
    padding: 18px 8px 4px;
    justify-content: center;
    align-items: flex-end;
  }

  .club-lockup {
    align-items: center;
    width: 100%;
  }

  .club-bullet {
    width: 92px;
  }

  .club-topline {
    justify-content: center;
    gap: 14px;
  }

  .club-text {
    width: min(260px, 62vw);
    margin-top: 10px;
  }

  h1 {
    font-size: clamp(3.45rem, 15vw, 5rem);
  }

  .flow-panel,
  .pass-panel {
    padding: 18px;
  }

  body.showing-pass .app-shell {
    min-height: 100svh;
    align-content: center;
  }

  body.showing-pass .brand-panel {
    display: none;
  }
}

@media (max-width: 520px) {
  .field-grid,
  .pass-details {
    grid-template-columns: 1fr;
  }

  .pass-details div,
  .pass-details div:nth-child(2n),
  .pass-details div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pass-details div:last-child {
    border-bottom: 0;
  }

  .pass-panel {
    padding: 12px;
  }

  body.showing-pass .app-shell {
    padding: 12px;
  }

  .pass-topline {
    gap: 12px;
    padding: 16px;
  }

  .pass-topline h2 {
    font-size: 1.28rem;
  }

  .pass-mark {
    width: 50px;
  }

  .pass-guest {
    padding: 16px;
  }

  .pass-guest strong {
    font-size: 1.65rem;
  }

  .pass-details div {
    min-height: 66px;
    padding: 13px 16px;
  }

  .pass-details span {
    margin-bottom: 3px;
    font-size: 0.7rem;
  }

  .pass-actions {
    padding-top: 10px;
  }

  .secondary-action {
    min-height: 46px;
    width: 100%;
  }

  .membership-link {
    min-height: 46px;
    width: 100%;
  }

  .limit-membership-link {
    width: 100%;
  }
}
