/* Public booking page */
.book-body { background: var(--bg); min-height: 100vh; }
.book-hero {
  background: linear-gradient(180deg, rgba(11,37,48,0.35) 0%, rgba(11,37,48,0.75) 100%), url("../img/login-bg.jpg") center 60% / cover no-repeat, var(--navy);
  color: #fff; padding: 18px 20px 90px;
}
.book-topbar { display: flex; justify-content: space-between; align-items: center; max-width: 960px; margin: 0 auto; }
.book-logo { height: 44px; max-width: 70vw; }
.book-lang { width: auto; background-color: rgba(255,255,255,0.9); }
.book-hero-text { max-width: 960px; margin: 40px auto 0; }
.book-hero-text h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.book-hero-text p { opacity: 0.9; margin: 6px 0 0; }

.book-main { max-width: 960px; margin: -60px auto 40px; padding: 0 16px; }
.book-card { background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.book-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }

.book-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.book-steps li { flex: 1; background: rgba(255,255,255,0.92); border-radius: 999px; padding: 6px 10px; font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.book-steps li span { width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: #334155; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.book-steps li em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.book-steps li.active { color: var(--navy); font-weight: 600; }
.book-steps li.active span, .book-steps li.done span { background: var(--accent); color: #fff; }
@media (max-width: 600px) { .book-steps li em { display: none; } .book-steps li { justify-content: center; } }

.rest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rest-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; transition: border-color .1s, box-shadow .1s; background: #fff; text-align: left; width: 100%; }
.rest-card:hover, .rest-card:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,0.12); outline: none; }
.rest-card .rc-name { font-weight: 700; font-size: 1.05rem; }
.rest-card .rc-addr { color: var(--muted); font-size: 0.85rem; }
.rest-card .rc-desc { font-size: 0.85rem; margin-top: 6px; color: #374151; }
.rest-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }

.party-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.party-picker .btn { min-width: 46px; }

.slot-group { margin-bottom: 10px; }
.slot-group .sg-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.slot-group .sg-times { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { min-width: 74px; position: relative; }
.slot.few::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.slot:disabled { text-decoration: line-through; opacity: 0.4; }

.book-summary { background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 16px; }
.book-summary div { font-size: 0.95rem; }
.book-summary i { color: var(--accent); margin-right: 4px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done-icon { font-size: 3.2rem; color: var(--accent); }
.book-ref { font-family: ui-monospace, Menlo, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .05em; }
.book-footer { text-align: center; color: var(--muted); margin-top: 16px; }
.slot-legend { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); }

/* Analytics consent banner */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: var(--navy); color: #e2e8f0;
  border-radius: 14px; padding: 12px 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 2000; }
@media (max-width: 600px) { .consent-banner { flex-direction: column; align-items: stretch; } .consent-banner .d-flex { justify-content: flex-end; } }

.contact-note { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; }
.contact-note.flash { animation: noteFlash 0.9s ease 2; }
@keyframes noteFlash { 50% { background: #fde68a; } }
.req { color: #b91c1c; font-weight: 700; }
.is-invalid-soft { border-color: #f59e0b !important; box-shadow: 0 0 0 3px rgba(245,158,11,0.2) !important; }
