* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: #102027;
  background:
    radial-gradient(circle at top right, rgba(255, 180, 0, 0.18), transparent 28%),
    radial-gradient(circle at 15% 20%, rgba(228, 59, 0, 0.24), transparent 34%),
    linear-gradient(135deg, #2a0500 0%, #530d00 35%, #230300 100%);
  min-height: 100vh;
}

a {
  color: #a61c00;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.hero-panel {
  padding: 48px 34px;
  color: #fff5ec;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45)),
    u/rl("/images/background.png") center/cover no-repeat;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-badge {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: "Teko", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel h1 {
  margin: 18px 0 10px;
  font-family: "Teko", sans-serif;
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-dates,
.hero-venue,
.hero-copy {
  margin: 0 0 10px;
  max-width: 24rem;
  line-height: 1.5;
}

.content-panel {
  padding: 32px;
  background: linear-gradient(180deg, #fff7f0 0%, #ffffff 100%);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #e8d8cb;
  background: #ffffff;
  color: #5a1200;
  text-decoration: none;
  font-weight: 600;
}

.nav-link.active {
  background: #5a1200;
  color: #ffffff;
  border-color: #5a1200;
}

.card {
  background: #ffffff;
  border: 1px solid #eadbcf;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(62, 28, 15, 0.08);
}

.card + .card {
  margin-top: 20px;
}

.section-title {
  margin: 0 0 18px;
  font-family: "Teko", sans-serif;
  font-size: 2.2rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: #5a1200;
}

.muted {
  color: #59666c;
}

.alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 500;
}

.alert-error {
  background: #fff0ed;
  color: #8a1f00;
  border: 1px solid #f3c0b0;
}

.alert-success {
  background: #eef8f0;
  color: #1f6a32;
  border: 1px solid #c2e2ca;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #344148;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7c9be;
  background: #fffdfb;
  font: inherit;
  color: #102027;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.button-primary,
button {
  background: linear-gradient(135deg, #c93600, #8b1a00);
  color: #ffffff;
}

.button-secondary {
  background: #fff7f2;
  color: #7a1d00;
  border: 1px solid #ebd1c3;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.summary-item {
  padding: 14px;
  border-radius: 16px;
  background: #fff7f2;
  border: 1px solid #ecd9ce;
}

.summary-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a5d4d;
}

.summary-value {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.division-section + .division-section {
  margin-top: 22px;
}

.division-section h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #5a1200;
}

.division-list {
  display: grid;
  gap: 10px;
}

.division-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ebddd2;
  border-radius: 16px;
  background: #fffdfa;
}

.division-option input {
  width: auto;
  margin: 0;
}

.division-code {
  font-weight: 800;
  color: #7a1d00;
}

.division-meta {
  font-size: 0.9rem;
  color: #617077;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 8px;
  border-bottom: 1px solid #efdfd2;
  text-align: left;
  vertical-align: top;
}

.table th:last-child,
.table td:last-child {
  text-align: right;
}

.totals {
  margin-left: auto;
  width: min(100%, 320px);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0e2d7;
}

.totals-row.total {
  font-weight: 800;
  font-size: 1.08rem;
  color: #5a1200;
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-line input {
  width: auto;
  margin-top: 3px;
}

.site-footer {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #64747b;
}

.simple-error {
  max-width: 720px;
  margin: 80px auto;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.paypal-note {
  padding: 16px;
  border-radius: 18px;
  background: #fff7e7;
  border: 1px solid #f0d9a6;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 240px;
  }

  .content-panel {
    padding: 20px;
  }

  .grid,
  .summary-grid,
  .inline-grid {
    grid-template-columns: 1fr;
  }

  .division-option {
    grid-template-columns: auto 1fr;
  }

  .division-option > :last-child {
    grid-column: 2;
  }
}
