*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAF7F5;
  --navy: #1A1F36;
  --muted: #9498A8;
  --accent-a: #4B6EE4;
  --accent-b: #A855F7;
  --border: #E2E4EB;
  --error: #EF4444;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--navy);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-blob {
  position: fixed;
  top: -160px;
  right: -160px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #F2D8D4 0%, #E8D4EF 40%, #D8DCEF 65%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

/* ---- Logo ---- */

.header {
  margin-bottom: 52px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 47px;
  width: auto;
}

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

.hero {
  margin-bottom: 40px;
}

.tagline {
  font-size: 17px;
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 6px;
}

.event-title {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.title-summer {
  font-size: clamp(68px, 16vw, 96px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.025em;
}

.title-party {
  font-size: clamp(68px, 16vw, 96px);
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(130deg, #E8806C 0%, #9A6EC5 55%, #4F66E0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Event Meta ---- */

.event-meta {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
}

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

.meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.meta-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}

.meta-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---- Blurb ---- */

.blurb {
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blurb p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

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

.form-wrap {
  margin-bottom: 52px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.req { color: var(--accent-b); }

.opt {
  font-weight: 400;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.field input::placeholder { color: #C4C6D0; }

.field input:focus {
  border-color: var(--accent-a);
  box-shadow: 0 0 0 3px rgba(75, 110, 228, 0.12);
}

.field input.error { border-color: var(--error); }

.field input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-err {
  font-size: 12px;
  color: var(--error);
  min-height: 16px;
  line-height: 1;
}

.submit-error {
  font-size: 13px;
  color: var(--error);
  margin-bottom: 16px;
  line-height: 1.5;
}

#submit-btn {
  width: 100%;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.1s;
}

#submit-btn:hover:not(:disabled) { opacity: 0.85; }
#submit-btn:active:not(:disabled) { transform: scale(0.98); }
#submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Success ---- */

.success {
  text-align: center;
  padding: 48px 16px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.success p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: center;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
}

/* ---- Mobile ---- */

@media (max-width: 480px) {
  .page { padding: 28px 20px 52px; }

  .event-meta {
    flex-direction: column;
    gap: 24px;
  }

  .bg-blob {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
  }
}
