:root {
  --bg-deep: #101820;
  --bg-surface: rgba(10, 22, 31, 0.78);
  --bg-soft: #f4f7f8;
  --text-light: #f7fbff;
  --text-dark: #10222d;
  --text-muted: #5f7888;
  --accent: #f6b24d;
  --accent-strong: #ed9c22;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(16, 34, 45, 0.2);
  --danger: #d94a55;
  --success: #2f8f68;
  --radius-lg: 1.1rem;
  --radius-md: 0.75rem;
  --shadow: 0 18px 45px rgba(8, 18, 26, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text-light);
  background: radial-gradient(circle at 15% 10%, #20465a 0%, #101820 45%, #0b1119 100%);
  min-height: 100vh;
  line-height: 1.45;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 88% 15%, rgba(246, 178, 77, 0.22) 0%, rgba(246, 178, 77, 0) 25%),
    radial-gradient(circle at 5% 90%, rgba(66, 154, 194, 0.24) 0%, rgba(66, 154, 194, 0) 24%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, 92%);
  margin: 2.25rem auto 3rem;
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  padding: 1.6rem clamp(1rem, 2.4vw, 2rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a6d2e7;
}

.hero h1 {
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  margin: 0.4rem 0 0.65rem;
  line-height: 1.1;
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: #dcebf4;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.meta-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.8rem;
}

.meta-chip span {
  display: block;
  font-size: 0.74rem;
  color: #b9d3e2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-chip strong {
  font-size: 0.98rem;
}

.form-card {
  padding: 1.3rem clamp(1rem, 2.4vw, 2rem) 1.5rem;
}

.form-head h2 {
  margin: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.form-head p {
  margin: 0.35rem 0 0;
  color: #d4e6f1;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin: 1rem 0 0;
  padding: 0.85rem;
}

.form-section legend {
  padding: 0 0.45rem;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.two-col {
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-weight: 500;
  font-size: 0.95rem;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.11);
  color: var(--text-light);
  border-radius: 0.62rem;
  padding: 0.65rem 0.72rem;
  font: inherit;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

input::placeholder {
  color: #bdd2de;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.17);
  transform: translateY(-1px);
}

.terms-box {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  max-height: 220px;
  overflow: auto;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: #dfedf5;
}

.terms-box p {
  margin: 0 0 0.75rem;
}

.terms-box p:last-child {
  margin-bottom: 0;
}

.agree-wrap {
  margin-top: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.agree-wrap input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--accent-strong);
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.payment-note {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.payment-note .label {
  font-size: 0.82rem;
  color: #c7dbe8;
}

.submit-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.18rem;
  min-width: 240px;
  font: 700 0.95rem "Barlow", "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  color: #132634;
  background: linear-gradient(130deg, #ffd087, #f6b24d 52%, #ed9c22);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 20px rgba(246, 178, 77, 0.32);
}

.submit-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
}

.submit-btn:active {
  transform: translateY(0);
}

.error {
  min-height: 1.1em;
  color: #ffbdc2;
  font-size: 0.78rem;
}

.input-error {
  border-color: var(--danger) !important;
  background: rgba(217, 74, 85, 0.2);
}

.form-status {
  min-height: 1.3em;
  margin: 0.95rem 0 0;
  font-weight: 500;
}

.form-status.success {
  color: #9ef0c8;
}

.form-status.error {
  color: #ffbdc2;
}

.paypal-section {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.paypal-note {
  margin: 0 0 0.7rem;
  color: #dcebf4;
  font-weight: 500;
}

.paypal-button-host {
  min-height: 46px;
}

.success-shell {
  min-height: 100vh;
  align-content: center;
}

.success-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 3vw, 2.25rem);
}

.success-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(47, 143, 104, 0.28), rgba(246, 178, 77, 0.08) 52%, transparent);
  pointer-events: none;
}

.success-card > * {
  position: relative;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(158, 240, 200, 0.42);
  border-radius: 50%;
  background: rgba(47, 143, 104, 0.24);
  box-shadow: 0 16px 32px rgba(47, 143, 104, 0.2);
}

.success-mark span {
  width: 1.8rem;
  height: 1rem;
  border-left: 0.26rem solid #9ef0c8;
  border-bottom: 0.26rem solid #9ef0c8;
  transform: rotate(-45deg) translate(0.08rem, -0.08rem);
}

.success-meta {
  margin-bottom: 1.15rem;
}

.success-message {
  max-width: 68ch;
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}

.success-message h2 {
  margin: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.success-message p {
  margin: 0.35rem 0 0;
  color: #dcebf4;
}

.success-home-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin-top: 1rem;
  text-decoration: none;
}

.enter-up {
  animation: enterUp 620ms ease both;
}

.form-card.enter-up {
  animation-delay: 110ms;
}

@keyframes enterUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(1080px, 95%);
  }

  .submit-btn {
    width: 100%;
    min-width: 0;
  }

  .form-actions {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
