/*
  Replaces the framer-motion animations from the original JS bundle.
  Each element fades/slides in when it becomes visible. The delay is set
  per element with style="animation-delay: ...s".
  (Step 2 starts hidden, so its animations only play once it is shown.)
*/

.fade-in    { animation: fade-in    0.4s ease-out both; }
.fade-up    { animation: fade-up    0.5s ease-out both; }
.slide-in   { animation: slide-in   0.4s ease-out both; }   /* from the left  (step 1 option cards) */
.slide-left { animation: slide-left 0.4s ease-out both; }   /* from the right (step 2) */
.pop-in     { animation: pop-in     0.5s cubic-bezier(.34,1.56,.64,1) both; }
.slide-out  { animation: slide-out  0.4s ease-in  both; }   /* step 1 leaving, added by the script */

@keyframes fade-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up    { from { opacity: 0; transform: translateY(20px); }  to { opacity: 1; transform: none; } }
@keyframes slide-in   { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes slide-left { from { opacity: 0; transform: translateX(50px); }  to { opacity: 1; transform: none; } }
@keyframes pop-in     { from { opacity: 0; transform: scale(.8); }         to { opacity: 1; transform: none; } }
@keyframes slide-out  { from { opacity: 1; transform: none; }              to { opacity: 0; transform: translateX(-50px); } }

/* Radio circle on the step 1 cards: empty by default, filled pink when the card is clicked. */
.option-card .radio-dot { display: none; }
.option-card.selected .radio-dot { display: block; animation: pop-in 0.2s ease-out both; }
.option-card.selected .radio {
  border-color: hsl(320, 80%, 58%);
  background-color: hsl(320, 80%, 58%);
}

/* Tailwind's .flex would override the `hidden` attribute, so force it. */
[hidden] { display: none !important; }
