:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #141414;
  background-color: #f4f3ef;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(31, 24, 18, 0.08);
  --line-strong: rgba(31, 24, 18, 0.16);
  --text-soft: #7a736b;
  --accent: #171412;
  --success: #21593a;
  --error: #8a3131;
  --champagne: rgba(198, 169, 120, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(180deg, #f8f7f3 0%, #ece9e2 100%);
}

.shell {
  width: min(430px, 100%);
}

.glass {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  padding: 2rem;
  box-shadow:
    0 24px 60px rgba(23, 20, 18, 0.08),
    0 4px 14px rgba(23, 20, 18, 0.03);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.glass > * {
  position: relative;
  z-index: 1;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-layer-back {
  z-index: 998;
}

.confetti-layer-front {
  z-index: 999;
}

.glass::before,
.glass::after {
  z-index: 2;
}

.confetti-piece {
  position: absolute;
  top: -12%;
  width: 12px;
  height: 20px;
  border-radius: 999px;
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: confetti-fall 5.2s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
  box-shadow: 0 8px 18px rgba(23, 20, 18, 0.1);
}

.confetti-piece-large {
  width: 16px;
  height: 26px;
  box-shadow: 0 10px 20px rgba(23, 20, 18, 0.14);
}

.confetti-layer-front .confetti-piece {
  filter: saturate(1.05);
}

.confetti-layer-back .confetti-piece {
  filter: blur(0.2px);
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -8px, 0) rotate(0deg) scale(0.9);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x), var(--fall-y), 0) rotate(var(--rotation)) scale(1);
  }
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.glass::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 31px;
  pointer-events: none;
  border: 1px solid rgba(198, 169, 120, 0.12);
  opacity: 0.8;
}

.brand {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8e857a;
  margin-bottom: 1.75rem;
}

.hero {
  position: relative;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 1.25rem;
  background: linear-gradient(90deg, rgba(198, 169, 120, 0.8), rgba(198, 169, 120, 0.12));
}

.steps {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.55rem;
}

.step {
  flex: 1;
  height: 3px;
  background: rgba(31, 24, 18, 0.06);
  border-radius: 999px;
}

.step-number {
  display: none;
}

.step.is-active,
.step.is-complete {
  background: linear-gradient(90deg, #2a241f 0%, #b89a6b 100%);
}

.event-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(31, 24, 18, 0.07);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 249, 245, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 26px rgba(23, 20, 18, 0.04);
}

.event-info > div {
  display: grid;
  gap: 0.28rem;
}

.event-label {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8378;
}

.event-title,
.event-date {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: #141414;
  line-height: 1.3;
}

.event-title {
  font-weight: 600;
}

.event-date {
  color: #2a241f;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.text-input input,
.file-picker,
button[type='submit'] {
  width: 100%;
  border-radius: 18px;
  font-size: 0.95rem;
}

.text-input input {
  border: 1px solid rgba(31, 24, 18, 0.08);
  padding: 1rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.text-input input:focus {
  outline: none;
  border-color: rgba(31, 24, 18, 0.16);
  box-shadow:
    0 0 0 4px rgba(198, 169, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.file-picker {
  display: block;
  border: 1px dashed rgba(31, 24, 18, 0.14);
  padding: 1rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.file-picker:hover,
.file-picker:focus-within {
  border-color: rgba(31, 24, 18, 0.24);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 24px rgba(23, 20, 18, 0.04);
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-picker-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.file-picker-hint {
  margin: 0;
  color: #171717;
}

.file-picker-cta {
  color: #8b7a63;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2a241f 0%, #b89a6b 100%);
  transition: width 0.2s ease;
}

button[type='submit'] {
  border: none;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #241f1b 0%, #12100e 100%);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.015em;
  cursor: pointer;
  box-shadow:
    0 16px 30px rgba(23, 20, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease,
    filter 0.18s ease;
}

button[type='submit']:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow:
    0 20px 36px rgba(23, 20, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  filter: saturate(1.05);
}

button[type='submit'][disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.status-panel {
  margin-top: 1rem;
  min-height: 1.25rem;
  font-size: 0.84rem;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  text-align: center;
}

.status-panel.success {
  color: var(--success);
}

.status-panel.error {
  color: var(--error);
}

.status-panel.info {
  color: var(--text-soft);
}

.hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .confetti-piece {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .glass {
    padding: 1.2rem;
    border-radius: 24px;
  }

  .event-info {
    gap: 0.8rem;
  }
}