:root {
  --rose: #e91e63;
  --rose-deep: #c2185b;
  --rose-soft: #ffb3c8;
  --candy: #fff0f5;
  --cream: #fffafc;
  --ink: #3a2330;
  --muted: #9a6b7e;
}

* { box-sizing: border-box; }

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

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, #ffe3ec 0%, transparent 60%),
    radial-gradient(1000px 600px at 0% 110%, #ffe6ef 0%, transparent 55%),
    linear-gradient(160deg, #fff0f5 0%, #ffdeea 45%, #ffd4e2 100%);
  background-attachment: fixed;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  overflow-x: hidden;
}

/* floating hearts background */
.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hearts::before,
.hearts::after {
  content: '♥';
  position: absolute;
  color: rgba(233, 30, 99, 0.10);
  animation: float 16s linear infinite;
}
.hearts::before { font-size: 120px; top: 10%; left: 8%; }
.hearts::after  { font-size: 180px; bottom: 8%; right: 10%; animation-delay: -8s; }

@keyframes float {
  0%   { transform: translateY(40vh) rotate(-12deg); opacity: 0; }
  15%  { opacity: .55; }
  50%  { opacity: .25; }
  100% { transform: translateY(-60vh) rotate(10deg); opacity: 0; }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  min-height: 560px;
  background: var(--cream);
  border: 1px solid #ffe0ec;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(194, 24, 91, 0.18);
  padding: 34px 32px 22px;
  display: flex;
  flex-direction: column;
}

/* ---------- steps ---------- */
.step {
  display: none;
  opacity: 0;
  transform: translateY(24px);
}
.step.is-active {
  display: block;
  animation: stepIn .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.step-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin: 4px 0 22px;
  color: var(--rose-deep);
}

/* ---------- hero / intro ---------- */
.hero-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.ring {
  width: 88px; height: 88px;
  margin: 44px auto 20px;
  display: grid; place-items: center;
  font-size: 44px;
  background: linear-gradient(140deg, #ffe0ec, #ffc0d4);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px #fff, 0 10px 24px rgba(194,24,91,.20);
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.08); }
  20% { transform: scale(1); }
  30% { transform: scale(1.06); }
  40% { transform: scale(1); }
}

.hero { text-align: center; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  margin: 10px 0 6px;
  letter-spacing: .3px;
  background: linear-gradient(120deg, var(--rose), var(--rose-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { color: var(--muted); font-size: 15px; margin: 0 0 26px; }

.intro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 24px;
}

/* ---------- buttons ---------- */
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 20px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, opacity .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

.btn.primary {
  color: #fff;
  background: linear-gradient(120deg, var(--rose), var(--rose-deep));
  box-shadow: 0 10px 22px rgba(233, 30, 99, 0.30);
}
.btn.primary:hover { box-shadow: 0 12px 26px rgba(233, 30, 99, 0.38); }

.btn.big { font-size: 17px; padding: 16px 30px; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 10px 22px rgba(233,30,99,.30); transform: scale(1); }
  50%     { box-shadow: 0 14px 30px rgba(233,30,99,.45); transform: scale(1.04); }
}

.btn.secondary {
  color: var(--rose-deep);
  background: #fff;
  border: 1.5px solid var(--rose-soft);
}
.btn.secondary:hover { border-color: var(--rose); }

.btn.ghost {
  background: #fff;
  color: var(--rose-deep);
  border: 1.5px solid #ffd2e1;
  padding: 13px 22px;
}
.btn.ghost:hover { border-color: var(--rose); background: var(--candy); }
.btn.small { font-size: 13px; padding: 8px 16px; }

/* The "No" button dodges the pointer — it becomes absolutely positioned on the card */
#noBtn { position: relative; }

/* ---------- form fields ---------- */
.field { display: block; margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-deep);
  margin-bottom: 7px;
  letter-spacing: .2px;
}

input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid #ffd2e1;
  border-radius: 14px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.12);
}
textarea { resize: vertical; }
.row { display: flex; gap: 12px; }
.row .field { flex: 1; }

/* ---------- activities ---------- */
.activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.activity input { position: absolute; opacity: 0; pointer-events: none; }
.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border: 1.5px solid #ffd2e1;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.activity-emoji { font-size: 26px; }
.activity input:checked + .activity-card {
  border-color: var(--rose);
  background: var(--candy);
  color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
  transform: translateY(-2px);
}

/* ---------- actions / footer ---------- */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.actions .btn { flex: 1; }
.or { color: var(--muted); font-size: 13px; }

.cal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}
.cal .btn { width: 100%; }
.ics-link {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.ics-link:hover { color: var(--rose-deep); }

.back {
  display: block;
  margin: 16px auto 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
}
.back:hover { color: var(--rose-deep); }

.status {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
}
.status.ok { color: var(--rose-deep); font-weight: 600; }
.status.err { color: #c62828; }
.status.pop { animation: statusPop .45s ease; }
@keyframes statusPop {
  0%   { transform: scale(.9); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.foot { text-align: center; margin-top: 16px; color: var(--muted); font-size: 12px; }

/* ------------------------------------------------ movie picker */
.movies {
  display: flex; flex-direction: column; gap: 12px; width: 100%;
  max-width: 320px; margin: 0 auto;
}
.movie-card {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 2px solid var(--line);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.10);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.movie-card span { font-size: 17px; letter-spacing: 0.02em; }
.movie-card:hover { transform: translateY(-3px); border-color: var(--rose); box-shadow: 0 12px 26px rgba(233, 30, 99, 0.24); }
.movie-card.picked { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.18); transform: scale(0.97); }
.movie-summary {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--candy); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; max-width: 340px; margin: 0 auto 18px;
}
.movie-summary-emoji { font-size: 30px; }
.movie-summary-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.movie-summary-when { font-size: 13px; color: var(--muted); margin-top: 2px; }
