/* ===================================================
   Date Night Card Generator – Multi-Step Form (Premium)
   =================================================== */

/* ── Reset ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #1F2937;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
  pointer-events: none;
}


/* ══════════════════════════════════════════════════
   Background – Concentric Hearts (same as landing)
   ══════════════════════════════════════════════════ */
.hearts-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #EAA4B8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hearts-svg {
  width: 95vmin;
  height: 95vmin;
}


/* ══════════════════════════════════════════════════
   Form Page Layout
   ══════════════════════════════════════════════════ */
.form-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1rem;
}


/* ══════════════════════════════════════════════════
   Form Container – Glassmorphism (Premium)
   ══════════════════════════════════════════════════ */
.form-container {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  box-shadow:
    0 20px 60px rgba(100, 10, 40, 0.12),
    0  8px 24px rgba(100, 10, 40, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 2.5rem 2.5rem 2.25rem;
  overflow: hidden;
}


/* ══════════════════════════════════════════════════
   Progress Dots
   ══════════════════════════════════════════════════ */
.progress-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #D1D5DB;
  transition: all 0.35s cubic-bezier(.25, .46, .45, .94);
  flex-shrink: 0;
}

.dot.completed {
  background: linear-gradient(135deg, #FF6B9D, #FF5252);
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);
}

.dot.active {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #FF6B9D, #FF5252);
  border-color: transparent;
  box-shadow:
    0 0 0 3px rgba(255, 107, 157, 0.25),
    0 2px 8px rgba(255, 82, 82, 0.3);
}


/* ══════════════════════════════════════════════════
   Step Transitions
   ══════════════════════════════════════════════════ */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepIn 0.4s cubic-bezier(.25, .46, .45, .94) both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ══════════════════════════════════════════════════
   Typography (Premium)
   ══════════════════════════════════════════════════ */
.step-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  color: #1F2937;
  margin-bottom: 6px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.step-sub {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 4px;
  line-height: 1.5;
  font-weight: 400;
}


/* ══════════════════════════════════════════════════
   Text Inputs (Premium)
   ══════════════════════════════════════════════════ */
.field {
  margin-top: 24px;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  color: #1F2937;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input::placeholder {
  color: #9CA3AF;
}

.field input:focus {
  border-color: #FF6B9D;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.12);
}

.field input.input-error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}


/* ══════════════════════════════════════════════════
   Field Errors
   ══════════════════════════════════════════════════ */
.field-error {
  display: block;
  min-height: 1.3em;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #EF4444;
  padding-left: 2px;
  transition: opacity 0.2s ease;
}


/* ══════════════════════════════════════════════════
   Pill Checkboxes – Activities (Premium 2-Col Grid)
   ══════════════════════════════════════════════════ */
.pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.pill-check {
  cursor: pointer;
}

.pill-check--full {
  grid-column: 1 / -1;
}

.pill-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1F2937;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  transition: all 0.3s ease;
  user-select: none;
  height: 100%;
}

.pill-icon {
  font-size: 18px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* Default icon colors from data-color attributes */
.pill[data-color="#10B981"] .pill-icon { color: #10B981; }
.pill[data-color="#8B5CF6"] .pill-icon { color: #8B5CF6; }
.pill[data-color="#F59E0B"] .pill-icon { color: #F59E0B; }
.pill[data-color="#3B82F6"] .pill-icon { color: #3B82F6; }
.pill[data-color="#EC4899"] .pill-icon { color: #EC4899; }
.pill[data-color="#14B8A6"] .pill-icon { color: #14B8A6; }
.pill[data-color="#F97316"] .pill-icon { color: #F97316; }

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #D1D5DB;
}

.pill-check input:checked + .pill {
  background: linear-gradient(135deg, #FF6B9D, #FF5252);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
  transform: translateY(-1px);
}

.pill-check input:checked + .pill .pill-icon {
  color: #fff;
}

.pill-check input:checked + .pill:hover {
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.4);
  transform: translateY(-2px);
}

/* ── "Other" text input ── */
.other-input-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
  margin-top: 0;
}

.other-input-wrap.visible {
  max-height: 80px;
  opacity: 1;
  margin-top: 16px;
}

.other-input-wrap input {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: #1F2937;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.other-input-wrap input::placeholder { color: #9CA3AF; }
.other-input-wrap input:focus {
  border-color: #FF6B9D;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.12);
}


/* ══════════════════════════════════════════════════
   Radio Cards – Budget / Style (Premium)
   ══════════════════════════════════════════════════ */
.radio-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.radio-card {
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.card-body:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #D1D5DB;
}

.radio-card input:checked + .card-body {
  background: linear-gradient(135deg, #FF6B9D, #FF5252);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
  transform: translateY(-1px);
}

.card-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.radio-card input:checked + .card-body .card-icon {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2);
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1F2937;
  transition: color 0.3s ease;
}

.card-desc {
  font-size: 14px;
  color: #6B7280;
  transition: color 0.3s ease;
}

.radio-card input:checked + .card-body .card-title {
  color: #fff;
}

.radio-card input:checked + .card-body .card-desc {
  color: rgba(255, 255, 255, 0.85);
}

.radio-card input:checked + .card-body:hover {
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.4);
  transform: translateY(-2px);
}


/* ══════════════════════════════════════════════════
   Summary Card (Step 6 – Premium)
   ══════════════════════════════════════════════════ */
.summary-card {
  margin-top: 28px;
  padding: 24px 26px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: #1F2937;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-list li {
  font-size: 15px;
  color: #4B5563;
  line-height: 1.5;
}

.summary-list strong {
  color: #1F2937;
  font-weight: 600;
  display: inline-block;
  min-width: 85px;
}


/* ══════════════════════════════════════════════════
   Navigation Buttons (Premium)
   ══════════════════════════════════════════════════ */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Next button — gradient fill */
.btn-next {
  background: linear-gradient(135deg, #FF6B9D, #FF5252);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}
.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}
.btn-next:active { transform: translateY(0); }

/* Back button — ghost, subtle */
.btn-back {
  background: transparent;
  color: #6B7280;
  padding: 14px 24px;
  box-shadow: none;
  font-weight: 500;
}
.btn-back:hover {
  color: #1F2937;
  background: rgba(0, 0, 0, 0.04);
}
.btn-back:active { transform: scale(0.97); }

/* Submit button — gradient, bold */
.btn-submit {
  flex: 1;
  background: linear-gradient(135deg, #FF6B9D, #FF5252);
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.35);
  letter-spacing: 0.01em;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 82, 82, 0.4);
}
.btn-submit:active { transform: translateY(0); }

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2) !important;
}


/* ══════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .form-container {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 24px;
    max-width: 100%;
  }

  .step-heading {
    font-size: 26px;
  }

  .pills-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pill-check--full {
    grid-column: auto;
  }

  .card-body {
    padding: 14px 16px;
    gap: 12px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .btn { padding: 13px 28px; font-size: 15px; }
  .btn-submit { padding: 15px 24px; }
}

@media (max-width: 380px) {
  .form-container {
    padding: 1.5rem 1.15rem 1.25rem;
    border-radius: 20px;
  }

  .step-heading { font-size: 22px; }

  .progress-dots { gap: 10px; margin-bottom: 24px; }
  .dot { width: 8px; height: 8px; }
  .dot.active { width: 10px; height: 10px; }
}


/* ══════════════════════════════════════════════════
   Accessibility – reduced motion
   ══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
