.page {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 28px 20px 36px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.55;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 4, 8, 0.55) 0%, rgba(10, 4, 8, 0.75) 55%, var(--bg) 100%);
}

.hero__logo {
  width: min(78%, 320px);
  margin: 4px auto 18px;
}

.hero__eyebrow {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 4px;
  text-transform: uppercase;
}

.hero__title {
  text-align: center;
  font-size: clamp(2.1rem, 9vw, 2.8rem);
  background: linear-gradient(135deg, #fff, var(--pink-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.hero__sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 380px;
  margin: 0 auto;
}

.event-card {
  background: rgba(29, 14, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-card__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.event-card__icon {
  font-size: 1.1rem;
  line-height: 1.3;
}

/* ---------------- Form ---------------- */

.form-section {
  padding: 32px 20px 12px;
}

.form-section__title {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.form-section__sub {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 0 0 24px;
}

.req {
  color: var(--pink-light);
}

.opt {
  color: var(--text-faint);
  font-weight: 400;
  text-transform: none;
  font-size: 0.8rem;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><path d='M1 1l6 6 6-6' stroke='%23ff6bab' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 135, 0.18);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.field__error {
  color: var(--error);
  font-size: 0.82rem;
  margin: 6px 0 0;
  min-height: 0;
  display: none;
}

.field.has-error .field__error {
  display: block;
}

.field__hint {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin: 6px 0 0;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  width: fit-content;
}

.stepper__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper__btn:hover {
  border-color: var(--pink);
  color: var(--pink-light);
}

.stepper input {
  width: 42px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0;
}

.form-error {
  background: rgba(255, 92, 108, 0.12);
  border: 1px solid rgba(255, 92, 108, 0.4);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  margin: 0 0 18px;
}

/* ---------------- Terms & conditions ---------------- */

.terms {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.terms__summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  list-style: none;
}

.terms__summary::-webkit-details-marker {
  display: none;
}

.terms__summary::before {
  content: "▸";
  color: var(--pink-light);
  margin-right: 8px;
  display: inline-block;
}

.terms[open] .terms__summary::before {
  content: "▾";
}

.terms__body {
  padding: 0 16px 16px;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.6;
}

.terms__body p {
  margin: 0 0 10px;
}

.terms__body ul {
  margin: 0;
  padding-left: 20px;
}

.terms__body li {
  margin-bottom: 8px;
}

.field--checkbox {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--pink);
}

.field--checkbox.has-error .checkbox-label {
  color: var(--error);
}

/* ---------------- Thanks ---------------- */

.thanks {
  padding: 60px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.thanks[hidden] {
  display: none;
}

.thanks__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  box-shadow: var(--shadow-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
}

.thanks__title {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.thanks__sub {
  color: var(--text-dim);
  margin: 0 0 28px;
}

.thanks .event-card {
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}

.thanks__contact {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 6px;
}

.thanks__contact span {
  color: var(--pink-light);
  font-weight: 700;
}

.thanks__note {
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: 340px;
}

/* ---------------- Footer ---------------- */

.page-footer {
  margin-top: auto;
  padding: 32px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.page-footer__logo {
  height: 22px;
  margin: 0 auto 10px;
  opacity: 0.8;
}

.page-footer p {
  color: var(--text-faint);
  font-size: 0.78rem;
  margin: 0;
}

@media (min-width: 640px) {
  .hero {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}
