:root {
  color-scheme: light;
  --bg: #fff4ea;
  --bg-accent: #f7d6c8;
  --card: #ffffff;
  --ink: #2d1f21;
  --muted: #6b4f55;
  --primary: #d93f56;
  --primary-dark: #b62d42;
  --ring: rgba(217, 63, 86, 0.35);
  --shadow: rgba(31, 18, 22, 0.18);
  --error: #b4364a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #ffe1d7, transparent 60%),
    radial-gradient(circle at 20% 20%, #fff7f2, transparent 55%),
    linear-gradient(140deg, var(--bg) 0%, #fdf0ec 40%, #f7d9d2 100%);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.panel {
  width: min(520px, 100%);
  background: var(--card);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 24px 60px var(--shadow);
  position: relative;
  overflow: hidden;
  animation: float-in 0.8s ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 217, 210, 0.6), transparent 65%);
  pointer-events: none;
}

.panel-header {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.65rem;
  margin: 0 0 12px;
  color: var(--muted);
}

h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}

.subhead {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.field input {
  border-radius: 14px;
  border: 1px solid #e7c3c7;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.primary {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f0647a);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(217, 63, 86, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(217, 63, 86, 0.35);
}

.ghost {
  border: 1px solid #e9b3b9;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  position: absolute;
}

.ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.card {
  position: relative;
  z-index: 1;
  background: #fff9f6;
  border-radius: 22px;
  padding: 28px;
  border: 1px solid #f4d0cc;
  display: grid;
  gap: 22px;
}

.card-text {
  display: grid;
  gap: 12px;
}

.question {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.response {
  margin: 0;
  color: var(--muted);
}

.actions {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.link {
  margin-top: 24px;
  border: none;
  background: none;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.footer-actions {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-actions .link {
  margin-top: 0;
}

.footer-actions {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

.error {
  margin: 0;
  color: var(--error);
  font-size: 0.85rem;
  min-height: 1.1rem;
}

.hidden {
  display: none;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 28px 22px;
  }

  .actions {
    min-height: 120px;
  }

  .ghost {
    font-size: 0.85rem;
  }
}
