@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --rose:       #e11d6a;
  --rose-light: #fb7ab5;
  --rose-pale:  #fde8f0;
  --cream:      #fff8f9;
  --gold:       #c9986a;
  --text-dark:  #3b1a2a;
  --text-mid:   #7a4060;
  --text-soft:  #b07090;
}

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

body {
  min-height: 100vh;
  background: var(--cream);
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

/* ── Floating hearts background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(225,29,106,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(251,122,181,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(0) scale(0.6) rotate(-10deg); }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.1) rotate(12deg); }
}

.hearts-bg span {
  position: fixed;
  bottom: -40px;
  font-size: 1.4rem;
  animation: float-up linear infinite;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.hearts-bg span:nth-child(1)  { left: 5%;  animation-duration: 9s;  animation-delay: 0s;   font-size: 1rem; }
.hearts-bg span:nth-child(2)  { left: 15%; animation-duration: 12s; animation-delay: 2s;   font-size: 1.6rem; }
.hearts-bg span:nth-child(3)  { left: 28%; animation-duration: 8s;  animation-delay: 4s;   font-size: 0.9rem; }
.hearts-bg span:nth-child(4)  { left: 42%; animation-duration: 13s; animation-delay: 1s;   font-size: 1.8rem; }
.hearts-bg span:nth-child(5)  { left: 58%; animation-duration: 10s; animation-delay: 3s;   font-size: 1.1rem; }
.hearts-bg span:nth-child(6)  { left: 70%; animation-duration: 11s; animation-delay: 5s;   font-size: 1.4rem; }
.hearts-bg span:nth-child(7)  { left: 82%; animation-duration: 7s;  animation-delay: 0.5s; font-size: 0.8rem; }
.hearts-bg span:nth-child(8)  { left: 92%; animation-duration: 14s; animation-delay: 2.5s; font-size: 2rem; }

/* ── Card ── */
.page-shell {
  width: min(680px, 100%);
  position: relative;
  z-index: 1;
}

.card {
  background: linear-gradient(160deg, #fff 0%, #fff0f5 100%);
  border: 1.5px solid rgba(225, 29, 106, 0.15);
  border-radius: 32px;
  box-shadow:
    0 4px 24px rgba(225,29,106,0.08),
    0 32px 80px rgba(225,29,106,0.12);
  padding: 2.5rem 2.5rem 2rem;
}

/* ── Hero ── */
.hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.heart-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--rose);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero p {
  font-size: 0.97rem;
  color: var(--text-mid);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Divider ── */
.divider {
  text-align: center;
  color: var(--rose-light);
  letter-spacing: 0.4rem;
  font-size: 1rem;
  margin: 1.5rem 0;
}

/* ── Form rows ── */
.form-row { margin-bottom: 1.25rem; }

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--rose);
}

.id-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

input {
  width: 100%;
  border: 1.5px solid rgba(225,29,106,0.2);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-size: 0.97rem;
  font-family: 'Lato', sans-serif;
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225,29,106,0.1);
}

input[readonly] {
  background: var(--rose-pale);
  color: var(--text-mid);
  cursor: default;
}

/* ── Buttons ── */
.primary-btn, .secondary-btn, .yes-btn, .no-btn {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-size: 0.97rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.primary-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--rose) 0%, #c0185e 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(225,29,106,0.35);
  margin-top: 0.25rem;
  font-size: 1.05rem;
  padding: 1rem;
  letter-spacing: 0.03em;
}

.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(225,29,106,0.4); }
.primary-btn:active { transform: translateY(0); }

.secondary-btn {
  background: var(--rose-pale);
  color: var(--rose);
  border: 1.5px solid rgba(225,29,106,0.2);
}

.secondary-btn:hover { transform: translateY(-1px); background: #fbd0e2; }

/* ── Output card ── */
.output-card {
  background: var(--rose-pale);
  border: 1.5px dashed rgba(225,29,106,0.25);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  margin-top: 1.25rem;
}

.output-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

.output-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

/* ── Notes ── */
.note-text {
  margin-top: 1.2rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  text-align: center;
  font-style: italic;
}

.answer-text {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
}

/* ── Response page extras ── */
.question-card {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ef 100%);
  border: 1.5px solid rgba(225,29,106,0.18);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.question-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-style: italic;
  color: var(--rose);
  margin-bottom: 1.5rem;
}

.button-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  min-height: 60px;
}

.yes-btn {
  background: linear-gradient(135deg, var(--rose) 0%, #c0185e 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(225,29,106,0.35);
  padding: 0.9rem 2.5rem;
  font-size: 1.1rem;
}

.yes-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 32px rgba(225,29,106,0.45); }

.no-btn {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1.5px solid #e2e8f0;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  position: absolute;
  transition: none;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .card { padding: 1.75rem 1.25rem 1.5rem; }
  .id-row, .output-row { grid-template-columns: 1fr; }
  .secondary-btn { width: 100%; }
}
