:root {
  --bg: #1d2433;
  --panel: #232c3d;
  --panel-border: #37445a;
  --text: #f4f5f8;
  --muted: #d3d8e1;
  --accent: #ff4242;
  --accent-strong: #ff3c3c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 66, 66, 0.08), transparent 32%),
    linear-gradient(180deg, #1c2230 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.sponsor-section {
  width: min(100%, 560px);
  padding: 18px 18px 20px;
}

.thank-you-section {
  width: min(100%, 560px);
}

.thank-you-card {
  padding: 34px 24px 30px;
  border: 3px solid #ff4a4a;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 40, 54, 0.98), rgba(24, 31, 43, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.thank-you-card h1,
.thank-you-message,
.thank-you-bank,
.thank-you-link {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-stretch: condensed;
  letter-spacing: 0.02em;
}

.thank-you-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 9vw, 4.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.thank-you-message {
  margin: 18px 0 0;
  color: #f4f5f8;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  line-height: 1.15;
}

.thank-you-bank {
  margin: 18px 0 0;
  color: #ff4a4a;
  font-size: clamp(1.3rem, 3.7vw, 1.55rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.thank-you-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 24px;
  padding: 10px 18px;
  border: 2px solid #ff4a4a;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.logo-wrap {
  display: flex;
  justify-content: center;
}

.event-logo {
  width: min(100%, 420px);
  display: block;
}

.section-rule {
  height: 4px;
  width: min(100%, 430px);
  margin: 10px auto 18px;
  background: var(--accent);
}

.intro-block,
.packages-block {
  text-align: center;
}

.price,
.extra-note {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.intro-block h1,
.highlight-card h2,
.packages-block h2,
.form-card h3 {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.intro-block h1 {
  font-size: clamp(2rem, 5vw, 2.45rem);
  line-height: 1;
}

.intro-block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.highlight-card {
  margin: 18px 0 14px;
  padding: 14px 18px 13px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff4545 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.highlight-card h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.2rem);
  line-height: 1;
}

.highlight-card p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #fff6f6;
}

.packages-block {
  text-align: left;
}

.packages-block h2 {
  font-size: clamp(1.85rem, 4vw, 2.15rem);
  line-height: 1;
}

.packages-copy {
  max-width: 400px;
  margin: 8px 0 14px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.15;
}

.package-list {
  display: grid;
  gap: 9px;
}

.package-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 9px 10px 9px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(38, 48, 66, 0.96), rgba(34, 44, 60, 0.96));
}

.price {
  color: var(--accent);
  font-size: clamp(2rem, 4.7vw, 2.35rem);
  line-height: 1;
}

.details {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.07;
}

.extra-note {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #fff;
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  line-height: 1;
}

.selection-form {
  margin-top: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-card,
.mailout-note,
.upload-note {
  background: #fff;
  color: #111;
  border: 3px solid #2b3444;
  border-radius: 12px;
}

.form-card {
  margin-top: 16px;
  padding: 12px 12px 14px;
}

.choice-pill,
.form-subnote,
.bank-details,
.line-field span,
.mailout-note {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-card h3 {
  margin: 0 0 12px;
  font-size: 1.9rem;
  line-height: 1;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.package-options {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.centered-row {
  justify-content: center;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.7rem;
  line-height: 1;
}

.choice-pill input[type="checkbox"],
.choice-pill input[type="radio"] {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: #2b3444;
}

.form-subnote,
.bank-details,
.formula-total {
  margin: 14px 0 0;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.05;
}

.formula-total {
  color: #ff4242;
}

.extra-persons-field {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.extra-persons-field input {
  width: 58px;
  border: 0;
  border-bottom: 3px solid #2b3444;
  background: transparent;
  color: #111;
  font-size: 1.2rem;
  text-align: center;
  padding: 2px 0 3px;
  outline: none;
}

.invoice-card {
  padding-bottom: 18px;
}

.invoice-choice {
  margin-bottom: 24px;
}

.field-lines {
  display: grid;
  gap: 12px;
}

.invoice-fields[hidden] {
  display: none;
}

.line-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 10px;
}

.line-field span {
  font-size: 1.5rem;
  line-height: 1;
}

.line-field input {
  width: 100%;
  border: 0;
  border-bottom: 3px solid #2b3444;
  background: transparent;
  color: #111;
  font-size: 1rem;
  padding: 2px 0 4px;
  outline: none;
}

.mailout-wrap {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 1fr);
  gap: 12px;
}

.mailout-note {
  margin-top: 0;
  padding: 10px 16px 12px;
  background: #1f2836;
  border-color: #ff4a4a;
  color: #fff;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.05;
}

.mailout-note strong {
  display: block;
  color: #ff4a4a;
  font-weight: 700;
}

.mailout-note a {
  color: #fff;
  text-decoration: none;
}

.upload-note {
  margin-top: 0;
  padding: 14px 12px;
  display: grid;
  place-items: center;
  gap: 10px;
  background: #fff;
  text-align: center;
}

.upload-copy {
  margin: 0;
  color: #2b3444;
  font-size: 0.95rem;
  line-height: 1.15;
}

.upload-button,
.upload-filename {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid #2b3444;
  border-radius: 10px;
  background: #ff4242;
  color: #fff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.upload-filename {
  margin: 0;
  color: #2b3444;
  font-size: 1rem;
  line-height: 1.1;
  word-break: break-word;
}

.submit-button {
  width: 100%;
  margin-top: 18px;
  min-height: 58px;
  border: 3px solid #ff4a4a;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff4a4a 0%, #de3232 100%);
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.65rem;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.submit-button:hover {
  filter: brightness(1.04);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .sponsor-section {
    padding: 10px 8px 14px;
  }

  .package-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
  }

  .price {
    font-size: 1.8rem;
  }

  .form-card h3 {
    font-size: 1.65rem;
  }

  .choice-pill {
    font-size: 1.35rem;
  }

  .line-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .line-field span,
  .form-subnote,
  .bank-details,
  .formula-total {
    font-size: 1.3rem;
  }

  .extra-persons-field {
    gap: 8px;
  }

  .extra-persons-field input {
    width: 52px;
  }

  .mailout-wrap {
    grid-template-columns: 1fr;
  }

  .mailout-note,
  .upload-note {
    margin-top: 0;
  }

  .upload-button {
    width: 100%;
  }

  .submit-button {
    font-size: 1.45rem;
  }
}
