:root {
  --cream: #fff9f3;
  --blush: #f7eee7;
  --rose: #b86b75;
  --rose-dark: #914e58;
  --ink: #2c2220;
  --muted: #756763;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(82, 52, 41, 0.18);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 107, 117, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(227, 178, 151, 0.35), transparent 30rem),
    linear-gradient(135deg, var(--cream), var(--blush));
}

.page-shell {
  width: min(100%, 980px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
}

.hero { width: min(100%, 720px); text-align: center; }
.date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(145, 78, 88, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--rose-dark);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow { margin: 26px 0 8px; color: var(--muted); font-weight: 600; }
h1 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.6rem, 17vw, 9rem);
  line-height: 0.86;
  margin: 0;
  font-weight: 400;
  color: var(--rose-dark);
  text-shadow: 0 10px 24px rgba(145, 78, 88, 0.12);
}
h1 span { color: var(--rose); }
.intro {
  max-width: 620px;
  margin: 24px auto 28px;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  line-height: 1.65;
  color: var(--muted);
}

.upload-card {
  text-align: left;
  background: var(--card);
  border: 1px solid rgba(145, 78, 88, 0.12);
  border-radius: 32px;
  padding: clamp(20px, 5vw, 34px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--rose-dark);
}
input, textarea {
  width: 100%;
  border: 1px solid rgba(145, 78, 88, 0.2);
  border-radius: 18px;
  padding: 15px 16px;
  margin-bottom: 18px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(184, 107, 117, 0.13); }
textarea { resize: vertical; }

.upload-button, .submit-button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}
.upload-button {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 16px 34px rgba(145, 78, 88, 0.28);
}
.button-icon { font-size: 1.45rem; line-height: 1; }
.submit-button {
  margin-top: 16px;
  color: white;
  background: #2f2826;
}
.submit-button:disabled { opacity: 0.42; cursor: not-allowed; }

.selected-files { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }
.file-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 5px 5px 0 0;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(145, 78, 88, 0.09);
  color: var(--rose-dark);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-wrap { margin-top: 18px; }
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(145, 78, 88, 0.12);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--rose-dark));
  transition: width 0.2s ease;
}
#statusText { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 0.94rem; }
.footer-note { margin: 22px auto 0; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 520px) {
  .page-shell { padding-left: 14px; padding-right: 14px; }
  .upload-card { border-radius: 26px; }
  .upload-button, .submit-button { min-height: 58px; }
}
