/* ---------- Fonts ---------- */
@font-face {
  font-family: "Grab Community Solid";
  src: url("assets/fonts/GrabCommunitySolid-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Grab Community Solid";
  src: url("assets/fonts/GrabCommunitySolid-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Grab Community Solid";
  src: url("assets/fonts/GrabCommunitySolid-Extrabold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --green-950: #041b12;
  --green-900: #0a2e1e;
  --green-800: #0f3d27;
  --green-700: #16522f;
  --gold-300: #f6e3ab;
  --gold-400: #f2d078;
  --gold-500: #e8bd53;
  --gold-600: #caa23e;
  --cream: #fbf3d8;
  --white: #ffffff;
  --error: #ff8a80;
  --max-w: 640px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Grab Community Solid", "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(90% 70% at 85% 100%, rgba(255,255,255,0.05), transparent 55%),
    linear-gradient(160deg, #0d3722 0%, #0a2c1c 35%, #062315 65%, #041b11 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.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;
}

/* subtle gold diagonal lines, decorative */
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(115deg, transparent 46%, rgba(230,190,90,0.35) 47%, rgba(230,190,90,0.08) 48%, transparent 49%),
    linear-gradient(115deg, transparent 68%, rgba(230,190,90,0.18) 69%, transparent 70%);
  background-size: 100% 100%;
  opacity: 0.6;
}

/* ---------- Layout / screens ---------- */
.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.screen.is-active {
  display: flex;
}

.screen__inner {
  width: 100%;
  max-width: var(--max-w);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Badge / logo ---------- */
.badge {
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.45));
}
.badge--lg { width: 260px; margin-bottom: 40px; }
.badge--sm { width: 140px; margin-bottom: 16px; }
.badge--md { width: 170px; margin-bottom: 24px; }

/* ---------- Landing ---------- */
.prompt {
  font-size: 17px;
  color: var(--white);
  margin: 0 0 18px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 15px;
  border-radius: 8px;
  padding: 15px 40px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }

.btn--outline {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.15));
  border: 1.5px solid var(--gold-500);
  color: var(--white);
  min-width: 220px;
}

.btn--solid {
  background: linear-gradient(180deg, #1c5a35 0%, #0e3320 100%);
  border: 1.5px solid var(--gold-500);
  color: var(--white);
  width: 100%;
  margin-top: 8px;
}
.btn--solid:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Registration form ---------- */
.heading {
  font-weight: 800;
  font-size: 40px;
  color: var(--gold-400);
  letter-spacing: 0.03em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.subtext {
  font-size: 15px;
  line-height: 1.55;
  color: var(--white);
  max-width: 460px;
  margin: 0 0 30px;
  font-weight: 400;
}
.subtext strong {
  color: var(--gold-400);
  font-weight: 700;
}

#registration-form {
  width: 100%;
  text-align: left;
}

/* Honeypot anti-spam field: present in the DOM for bots, invisible to people. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 4px;
}

.field {
  display: flex;
  flex-direction: column;
}
.field--full {
  margin-top: 20px;
}

.field label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.field label .hint {
  text-transform: none;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: normal;
  color: var(--gold-300);
  opacity: 0.85;
}

.field input {
  font-family: inherit;
  font-size: 15px;
  color: #16321f;
  background: var(--white);
  border: 1.5px solid var(--gold-500);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
}
.field input::placeholder { color: #8a9a8f; }
.field input:focus {
  outline: none;
  border-color: var(--cream);
  box-shadow: 0 0 0 3px rgba(246,227,171,0.35);
}
.field input:invalid.touched {
  border-color: var(--error);
}

/* checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: var(--white);
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}
.checkbox__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold-500);
  border-radius: 5px;
  background: var(--white);
  position: relative;
  margin-top: 1px;
}
.checkbox input:checked + .checkbox__box {
  background: var(--gold-500);
}
.checkbox input:checked + .checkbox__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #0a2e1e;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.checkbox input:focus-visible + .checkbox__box {
  outline: 2px solid var(--gold-300);
  outline-offset: 2px;
}
.checkbox__label a {
  color: var(--gold-400);
  text-decoration: underline;
}

.form-error {
  color: var(--error);
  font-size: 13.5px;
  margin: 10px 0 0;
}

/* ---------- Confirmation ---------- */
.hello {
  font-weight: 800;
  font-size: 26px;
  color: var(--gold-400);
  margin: 0 0 10px;
}

.thanks-copy {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  margin: 0 0 22px;
}
.thanks-copy .accent {
  font-weight: 800;
  color: var(--gold-400);
  font-size: 24px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  color: var(--gold-500);
  margin-bottom: 30px;
}
.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
}
.divider i { font-style: normal; font-size: 12px; }

.event-card {
  width: 100%;
  border: 1.5px solid var(--gold-500);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.15));
  padding: 26px 30px;
}
.event-card__row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  text-align: left;
}
.event-card__icon {
  font-size: 20px;
  flex: 0 0 auto;
}
.event-card__sep {
  height: 1px;
  background: rgba(230,190,90,0.35);
  margin: 18px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .heading { font-size: 32px; }
  .field-grid { grid-template-columns: 1fr; gap: 18px; }
  .badge--lg { width: 200px; }
  .thanks-copy { font-size: 18px; }
  .thanks-copy .accent { font-size: 20px; }
  .btn--outline { width: 100%; }
}

@media (max-width: 380px) {
  .screen { padding: 36px 18px; }
}
