/* FRONEER RSVP: one question per screen, big buttons, nothing else. */

.flow { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.flow [hidden] { display: none !important; }

.flow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) var(--pad) 18px;
  border-bottom: 1px solid var(--line);
}
.flow__logo img { display: block; width: auto; height: 15px; }
.flow__when { color: var(--muted); }

.flow__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px var(--pad) calc(32px + env(safe-area-inset-bottom));
}

.flow__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 8px; }
.flow__back {
  padding: 12px 12px 12px 0;
  border: 0;
  background: none;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}
.flow__back:hover { color: var(--bright); }
.flow__step { margin-left: auto; color: var(--muted); }

.flow__screen { display: grid; gap: 22px; padding-top: clamp(12px, 6vh, 64px); }
.flow__q {
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bright);
}
.flow__q:focus { outline: none; }
.flow__sub { margin-top: -8px; font-size: 16px; line-height: 1.45; color: var(--text); }
.flow__choices, .flow__form { display: grid; gap: 12px; }
.flow__input { min-height: 64px; font-size: 20px; }
.flow__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* One big, plain button: sentence case, readable, hard to miss */
.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 16px 20px;
  border: 1px solid var(--bright);
  border-radius: 6px;
  background: var(--bright);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.choice:hover { background: #fff; }
.choice:active { transform: scale(0.98); }
.choice:disabled { opacity: 0.6; cursor: progress; }
.choice--quiet { background: transparent; color: var(--bright); border-color: rgba(239, 236, 230, 0.35); }
.choice--quiet:hover { background: rgba(239, 236, 230, 0.08); border-color: var(--bright); }

.flow__done { justify-items: start; }
.flow__done .flow__choices { width: 100%; }
.flow__check { width: 64px; height: 64px; }
.flow__check circle { fill: none; stroke: var(--bright); stroke-width: 3; }
.flow__check path {
  fill: none;
  stroke: var(--bright);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: tick 0.5s 0.15s var(--ease-out) forwards;
}
@keyframes tick { to { stroke-dashoffset: 0; } }
.flow__change {
  padding: 12px 0;
  border: 0;
  background: none;
  font-size: 16px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.flow__msg { margin-top: 16px; font-size: 16px; color: #f07a55; }
.flow__msg:empty { display: none; }
.flow .field__error { font-size: 16px; }
.flow__right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 380px) { .flow__when { display: none; } }
