/* /book and /drive: the web booking and partner application screens (uses the tokens of site.css) */
.appwrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
.apphead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.apphead h1 { margin: 0 0 4px; font-size: 1.7rem; }
.apphead p { margin: 0; }
.appwrap .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(10, 58, 29, .05); }
.appwrap .card.center { text-align: center; }
.appwrap .card.warn { background: #fff6e0; border-color: #f0d28a; }
.appwrap .card.ok { background: var(--grey-2); border-color: #b9dcc5; }
.appwrap h2 { margin: 0 0 12px; font-size: 1.2rem; }
.appwrap .muted { color: var(--ink-3); }
.appwrap .small { font-size: .88rem; }
.appwrap .field { display: block; margin-bottom: 12px; }
.appwrap .field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.appwrap input[type=text], .appwrap input[type=tel], .appwrap input[type=date], .appwrap select { width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border: 1px solid #c9d3cb; border-radius: 12px; background: #fff; color: var(--ink); }
.appwrap input[type=file] { width: 100%; font: inherit; font-size: .9rem; }
.appwrap input:focus, .appwrap select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.appwrap .prefix { display: flex; align-items: center; gap: 8px; }
.appwrap .prefix b { padding: 12px 0 12px 4px; }
.appwrap .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.appwrap .check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 12px; font-size: .95rem; }
.appwrap .btn { display: inline-block; width: 100%; box-sizing: border-box; text-align: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 14px 18px; border-radius: 12px; background: var(--green); color: #fff; margin-top: 4px; text-decoration: none; }
.appwrap .btn.ghost { background: #fff; color: var(--green); border: 1px solid var(--green); }
.appwrap .btn.small { width: auto; padding: 9px 16px; font-size: .92rem; }
.appwrap .btn.big { padding: 16px 18px; font-size: 1.05rem; }
.appwrap .btn:disabled { opacity: .55; cursor: wait; }
.appwrap .link { background: none; border: 0; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.appwrap .msg { margin: 6px 0 8px; min-height: 0; font-size: .92rem; }
.appwrap .msg:empty { display: none; }
.appwrap .msg.bad { color: #b3261e; }
.appwrap .msg.ok { color: var(--green); font-weight: 600; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; padding: 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--grey); font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--green); color: #fff; border-color: var(--green); }
.place { position: relative; }
.suggest { list-style: none; margin: -6px 0 12px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(10, 58, 29, .12); position: absolute; left: 0; right: 0; z-index: 5; max-height: 280px; overflow: auto; }
.suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; }
.suggest li:hover, .suggest li:focus { background: var(--grey-2); outline: 0; }
.suggest li span { color: var(--ink-3); font-size: .85rem; }
.options { display: grid; gap: 10px; margin: 12px 0; }
.option { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; cursor: pointer; }
.option.on { border-color: var(--green); background: var(--grey-2); }
.option.off { opacity: .5; cursor: not-allowed; }
.option .ico { font-size: 1.8rem; }
.option .nm { flex: 1; display: flex; flex-direction: column; }
.option .nm small { color: var(--ink-3); }
.option .fare { font-weight: 800; font-size: 1.1rem; }
.spinner { width: 44px; height: 44px; margin: 4px auto 12px; border: 4px solid var(--grey-2); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.big { font-size: 1.4rem; font-weight: 800; }
.stage { font-weight: 800; font-size: 1.15rem; margin: 0 0 12px; }
.stage.done { color: var(--green); }
.stage.cancelled { color: #b3261e; }
.otp { background: var(--gold); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; text-align: center; }
.otp small { display: block; }
.otp b { font-size: 2.2rem; letter-spacing: .3em; }
.driver { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }
.stars { display: flex; gap: 4px; margin-bottom: 12px; }
.stars button { font-size: 2rem; background: none; border: 0; color: #c9d3cb; cursor: pointer; }
.stars button.on { color: var(--gold); }
.doc { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.doc.ok { border-color: #b9dcc5; background: #f6fbf7; }
.doc.bad { border-color: #efb4af; background: #fff7f6; }
.dochead { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.chip { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--grey); white-space: nowrap; }
.chip.ok { background: var(--grey-2); color: var(--green); }
.chip.bad { background: #fde7e5; color: #b3261e; }
.chip.wait { background: #fff1cc; color: #7a5a00; }
.photos { display: grid; gap: 10px; }
.photo { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.photo.ok { border-color: #b9dcc5; background: #f6fbf7; }
.todo { margin: 0 0 12px; padding-left: 20px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #17221A; color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #b3261e; }
#toast.ok { background: var(--green); }
@media (max-width: 480px) { .appwrap .two { grid-template-columns: 1fr; } }

.appwrap [hidden] { display: none !important; }
