/* Get-to-know-you questions + recommended plan (public/assets/js/planQuestions.js): the app's plan screen and the
   website sign-up window. Brand orange #e07b20 for selected states; buttons a darker orange so white text reads. */
.rb-pq { --pq-ink: #1f1d1a; --pq-muted: #5f5a54; --pq-line: #e4ddd5; --pq-or: #e07b20; --pq-btn: #b5570b; --pq-link: #8a4308;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--pq-ink); text-align: left; }
.rb-pq *, .rb-pq *::before, .rb-pq *::after { box-sizing: border-box; }
.rb-pq button { font-family: inherit; }
.rb-pq-screen { display: flex; flex-direction: column; min-height: 100%; }
.rb-pq-center { justify-content: center; gap: 16px; padding: 24px 4px; }
/* Rebook, the guide: his face + a chat bubble that "types" first (planQuestions.js guide()) */
.rb-pq-guide { display: flex; align-items: flex-start; gap: 12px; }
.rb-pq-av { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; animation: rbPqAv .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.rb-pq-guide.is-big .rb-pq-av { width: 76px; height: 76px; }
.rb-pq-av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #f3ede6;
    border: 2.5px solid #fff; box-shadow: 0 0 0 2px var(--pq-or), 0 8px 18px rgba(140, 70, 10, .18); }
.rb-pq-av.is-busy::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid transparent;
    border-top-color: var(--pq-or); border-right-color: rgba(224, 123, 32, .35); animation: rbPqSpin 1s linear infinite; }
.rb-pq-bubble { position: relative; flex: 1; min-width: 0; padding: 10px 16px 14px; background: #fff; border: 1.5px solid #f0d9c3;
    border-radius: 6px 20px 20px 20px; box-shadow: 0 8px 24px rgba(140, 70, 10, .08); transform-origin: 0 0;
    animation: rbPqBubble .42s cubic-bezier(.2, .8, .2, 1) .12s both; }
.rb-pq-guide.is-big .rb-pq-bubble { margin-top: 10px; }
.rb-pq-name { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #c2620e; }
.rb-pq-bubble > :not(.rb-pq-name):not(.rb-pq-dots) { transition: opacity .25s ease .05s; }
.rb-pq-bubble.is-typing > :not(.rb-pq-name):not(.rb-pq-dots) { opacity: 0; }
.rb-pq-dots { position: absolute; left: 16px; top: 34px; display: flex; gap: 5px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.rb-pq-bubble.is-typing .rb-pq-dots { opacity: 1; }
.rb-pq-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e0b48c; animation: rbPqDot 1s ease-in-out infinite; }
.rb-pq-dots i:nth-child(2) { animation-delay: .15s; }
.rb-pq-dots i:nth-child(3) { animation-delay: .3s; }
.rb-pq-react { margin: 0 0 2px; font-size: 15px; line-height: 1.4; color: var(--pq-muted); }
.rb-pq-say { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--pq-ink); }
.rb-pq-bubble .rb-pq-q { font-size: 21px; }
.rb-pq-bubble .rb-pq-hint { margin: 6px 0 0; font-size: 14px; }
.rb-pq-bubble .rb-pq-h1 { font-size: 24px; }
.rb-pq-bubble .rb-pq-lead { margin-top: 6px; font-size: 16px; }
.rb-pq-bubble .rb-pq-h2 { font-size: 18px; text-align: left; line-height: 1.35; }
.rb-pq-body > .rb-pq-guide { margin-bottom: 8px; }
.rb-pq-guide + .rb-pq-h1 { margin-top: 14px; }
.rb-pq-lines { padding-left: 4px; }
.rb-pq-h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--pq-ink); outline: none; }
.rb-pq-h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--pq-ink); outline: none; text-align: center; }
.rb-pq-lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--pq-muted); }
.rb-pq-small { margin: 0; font-size: 14px; font-weight: 600; color: var(--pq-muted); }
.rb-pq-btn { display: block; width: 100%; min-height: 54px; margin-top: 8px; border: 0; border-radius: 14px; background: var(--pq-btn); color: #fff;
    font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .12s ease, opacity .2s; }
.rb-pq-btn:active { transform: scale(.98); }
.rb-pq-btn:disabled { opacity: .45; cursor: default; transform: none; }
.rb-pq-btn:focus-visible, .rb-pq-opt:focus-visible, .rb-pq-back:focus-visible, .rb-pq-textlink:focus-visible { outline: 3px solid rgba(224, 123, 32, .45); outline-offset: 2px; }

.rb-pq-top { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.rb-pq-back { width: 44px; height: 44px; margin-left: -10px; flex: none; border: 0; border-radius: 12px; background: transparent; color: var(--pq-ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rb-pq-bar { flex: 1; height: 6px; border-radius: 3px; background: #ede7e0; overflow: hidden; }
.rb-pq-fill { height: 100%; border-radius: 3px; background: var(--pq-or); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.rb-pq-count { min-width: 40px; text-align: right; font-size: 13px; font-weight: 600; color: var(--pq-muted); }

.rb-pq-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 8px; }
.rb-pq-q { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; color: var(--pq-ink); outline: none; }
.rb-pq-hint { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--pq-muted); }
.rb-pq-opts { display: flex; flex-direction: column; gap: 10px; }
.rb-pq-opt { width: 100%; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--pq-line); border-radius: 14px; background: #fff;
    display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--pq-ink);
    transition: border-color .2s, background-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.rb-pq-opt:hover { border-color: #e9b27e; }
.rb-pq-opt.is-on { border-color: var(--pq-or); background: #fff4ea; box-shadow: 0 0 0 3px rgba(224, 123, 32, .18); }
.rb-pq-opt.is-pop { animation: rbPqPop .38s ease; }
.rb-pq-opt-label { flex: 1; }
.rb-pq-mark { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid #c9bfb4; background: #fff; color: #fff;
    display: flex; align-items: center; justify-content: center; transition: background-color .2s, border-color .2s; }
.rb-pq-opt.is-multi .rb-pq-mark { border-radius: 7px; }
.rb-pq-opt.is-on .rb-pq-mark { background: var(--pq-or); border-color: var(--pq-or); }
.rb-pq-tick { display: none; }
.rb-pq-tick svg { width: 14px; height: 14px; stroke-width: 3.2; }
.rb-pq-opt.is-on .rb-pq-tick { display: flex; animation: rbPqTick .32s ease both; }
.rb-pq-continue { margin-top: 14px; }
.rb-pq-opts.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rb-pq-opts.is-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.rb-pq-opts.is-grid .rb-pq-opt { min-height: 52px; height: 100%; padding: 8px 12px; gap: 8px; font-size: 15px; line-height: 1.25; }
.rb-pq-opts.is-grid .rb-pq-mark { width: 22px; height: 22px; }

.rb-pq-spin { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; border: 5px solid #f3e3d3; border-top-color: var(--pq-or); animation: rbPqSpin 1s linear infinite; }
.rb-pq-lines { display: flex; flex-direction: column; gap: 10px; margin: 0 auto; font-size: 15px; color: var(--pq-muted); }
.rb-pq-line { display: flex; align-items: center; gap: 10px; }
.rb-pq-ok { color: #c2620e; display: flex; flex: none; }

.rb-pq-textlink { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--pq-link); font-size: 15px; font-weight: 600; cursor: pointer; }
.rb-pq-textlink.is-quiet { color: var(--pq-muted); }
.rb-pq-textlink:disabled { opacity: .5; cursor: default; }
.rb-pq-top .rb-pq-textlink { margin-left: auto; font-size: 14px; }
.rb-pq-eyebrow { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--pq-link); }
.rb-pq-why { margin: 8px 0 4px; font-size: 15px; line-height: 1.5; color: var(--pq-muted); }
.rb-pq-card { border: 2px solid var(--pq-or); border-radius: 18px; background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: 0 10px 30px rgba(140, 70, 10, .10); margin-top: 6px; }
.rb-pq-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rb-pq-plan { font-size: 22px; font-weight: 800; color: var(--pq-ink); }
.rb-pq-price { font-size: 15px; font-weight: 700; color: var(--pq-ink); white-space: nowrap; }
.rb-pq-trial { margin: 0; font-size: 14px; font-weight: 600; color: #1d7a3e; }
.rb-pq-helps { display: flex; flex-direction: column; gap: 8px; }
.rb-pq-help { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--pq-ink); }
.rb-pq-help .rb-pq-ok { margin-top: 1px; }
.rb-pq-apps { border-radius: 16px; background: #fff; border: 1px solid #ece5dd; padding: 14px 16px; margin-top: 6px; }
.rb-pq-apps-line { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--pq-ink); }
.rb-pq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-pq-chip { padding: 6px 10px; border-radius: 999px; background: #f5efe8; font-size: 13px; font-weight: 600; color: #4a3c2e; }
.rb-pq-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; margin-top: 10px; }
.rb-pq-timeline[hidden] { display: none; }
.rb-pq-tl { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rb-pq-dot { width: 12px; height: 12px; border-radius: 50%; background: #c9bfb4; }
.rb-pq-dot.is-0 { background: #1d7a3e; }
.rb-pq-dot.is-1 { background: var(--pq-or); }
.rb-pq-when { font-size: 13px; font-weight: 700; color: var(--pq-ink); }
.rb-pq-what { font-size: 12px; line-height: 1.35; color: var(--pq-muted); }
.rb-pq-foot { display: flex; flex-direction: column; gap: 4px; padding: 14px 0 4px; margin-top: 8px; border-top: 1px solid #ece5dd; }
.rb-pq-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 18px; }
.rb-pq-msg { min-height: 0; font-size: 14px; line-height: 1.45; text-align: center; color: var(--pq-muted); }
.rb-pq-msg:empty { display: none; }
.rb-pq-msg.is-error { color: #b91c1c; }
.rb-pq-msg.is-ok { color: #15803d; }
.rb-pq-legal { margin: 4px 0 0; font-size: 11px; line-height: 1.5; color: #6b655e; text-align: center; }
.rb-pq-legal a { color: #4b4640; text-decoration: underline; }

.rb-pq-up { animation: rbPqUp .5s cubic-bezier(.2, .8, .2, 1) both; }
.rb-pq-in { animation: rbPqIn .42s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rbPqIn { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes rbPqUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rbPqPop { 0% { transform: scale(1); } 35% { transform: scale(.96); } 70% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes rbPqTick { from { transform: scale(0); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes rbPqSpin { to { transform: rotate(360deg); } }
@keyframes rbPqAv { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes rbPqBubble { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes rbPqDot { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .rb-pq-up, .rb-pq-in, .rb-pq-opt.is-pop, .rb-pq-opt.is-on .rb-pq-tick, .rb-pq-av, .rb-pq-bubble { animation: none !important; }
    .rb-pq-fill { transition: none; }
    .rb-pq-spin { animation-duration: 2.4s; }
}

/* the app's plan screen: a calm full page */
.rb-pq-host { max-width: 520px; margin: 0 auto; padding: 8px 20px 32px; min-height: calc(100dvh - 64px); }
.rb-pq-host .rb-pq-screen { min-height: calc(100dvh - 110px); }
/* the button bar stays at the bottom of the screen (fixed: the page's overflow-hidden wrapper stops position: sticky) */
.rb-pq-host .rb-pq-screen.is-rec { padding-bottom: 210px; }
.rb-pq-host .is-rec .rb-pq-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 520px; margin: 0 auto;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: #f9fafb; border-top: 1px solid #ece5dd;
    box-shadow: 0 -8px 24px rgba(31, 29, 26, .06); }
/* the website sign-up window */
.am-view .rb-pq .rb-pq-center { padding: 8px 0 4px; }
.am-view .rb-pq .rb-pq-h1 { font-size: 24px; }
.am-view .rb-pq .rb-pq-q { font-size: 22px; }
.am-view .rb-pq .rb-pq-bubble .rb-pq-q { font-size: 20px; }
.am-view .rb-pq .rb-pq-bubble .rb-pq-h1 { font-size: 22px; }
