/*! © 2026 North Point Tech. All rights reserved. Proprietary software — see LICENSE. */
/* The booking page, the booking result and "My bookings". */
.book-page {
  background: var(--cream);
  min-height: 100vh;
}
.book-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.book-header .header-row {
  height: 68px;
}
.book-main {
  padding: 28px 0 120px;
}
.book-hero {
  display: grid;
  gap: 22px;
  margin-bottom: 30px;
}
@media (min-width: 820px) {
  .book-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 40px;
  }
}
.book-hero-text h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.03;
}
.book-hero-sub {
  margin-top: 12px;
  max-width: 44ch;
  color: var(--brown-light);
  font-size: 16px;
}
.book-hero-media {
  position: relative;
}
.book-hero-media img {
  display: block;
  width: 100%;
  height: clamp(150px, 26vw, 252px);
  object-fit: cover;
  border-radius: var(--r-lg);
}
/* Flat caption tab fixed to the photo's corner (not a floating pill) */
.open-badge {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 16px 10px 14px;
  background: var(--gold-deep);
  color: var(--gold-pale);
  font-size: 14px;
  line-height: 1.2;
  border-start-end-radius: var(--r);
  border-end-start-radius: var(--r-lg);
}
.open-badge b {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.open-badge.is-closed {
  background: var(--brown);
  color: #fff;
}
.sum-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.sum-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--gold-wash);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
}
.sum-ico svg {
  width: 20px;
  height: 20px;
}
.summary .sum-head h2 {
  margin: 0;
}

.progress {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 26px;
  list-style: none;
  padding: 0;
}
.progress li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--taupe);
  min-width: 0;
}
.progress li:not(:last-child) {
  flex: 1;
}
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  border: 1.5px solid var(--sand);
  background: var(--cream);
  color: var(--stone-deep);
}
.progress li.active .step-num,
.progress li.done .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.progress li.active {
  color: var(--espresso);
}
.progress li.done {
  cursor: pointer;
  color: var(--brown);
}
.progress li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1.5px;
  min-width: 10px;
  background: var(--sand);
  margin-inline-start: 5px;
}
.progress li.done::after {
  background: var(--gold);
}
.progress li span {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .progress li:not(.active) span {
    display: none;
  }
  /* The current step's name takes the room it needs; the other steps share what's left. */
  .progress li.active {
    flex: 1 0 auto;
  }
}

.book-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.book-grid > * {
  min-width: 0;
}
@media (min-width: 980px) {
  .book-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
  }
}
.panel {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
  .panel {
    padding: 32px;
  }
}
.panel-title {
  font-family: var(--f-serif);
  font-size: 26px;
}
.panel-sub {
  margin-top: 6px;
  margin-bottom: 24px;
  color: var(--taupe);
  font-size: 14.5px;
}

.choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.choice-card {
  text-align: start;
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: #fff;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.choice-card:hover {
  border-color: var(--gold);
}
.choice-card.selected {
  border-color: var(--gold);
  background: var(--gold-wash);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.cc-thumb {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--gold-wash);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cc-thumb svg {
  width: 24px;
  height: 24px;
}
.cc-thumb.avatar {
  border-radius: 50%;
  background: var(--espresso);
  color: var(--gold-light);
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
}
.cc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cc-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--espresso);
}
.cc-meta {
  font-size: 13px;
  color: var(--taupe);
}
.cc-end {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--stone-deep);
}
.cc-end svg {
  width: 18px;
  height: 18px;
}
.choice-card.selected .cc-end {
  color: var(--gold);
}
.cc-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
}
.cc-check svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.subsection {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.subsection h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 12px;
}
.row-options {
  display: grid;
  gap: 8px;
}
.row-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
}
.row-option:hover {
  border-color: var(--gold);
}
.row-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--espresso);
  margin: 0;
  flex-shrink: 0;
}
.row-option .grow {
  flex: 1;
}
.row-option .meta {
  display: block;
  font-size: 12.5px;
  color: var(--taupe);
}
.row-option .price {
  font-weight: 600;
}
.row-option:has(input:checked) {
  border-color: var(--espresso);
  background: var(--paper);
}

/* calendar */
.cal {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 16px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-head h3 {
  font-family: var(--f-serif);
  font-size: 19px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-dow {
  align-self: end;
  line-height: 1.25;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--taupe);
  padding: 4px 0 8px;
}
.cal-day {
  position: relative;
  min-width: 0;
  padding: 0;
  aspect-ratio: 1 / 0.92;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 15px;
  font-weight: 500;
}
.cal-day .dot {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--success);
}
.cal-day.avail {
  background: var(--cream);
}
.cal-day.avail:hover {
  border-color: var(--gold);
}
.cal-day.selected {
  background: var(--espresso);
  color: var(--ivory);
}
.cal-day.selected .dot {
  color: var(--gold-light);
}
.cal-day:disabled {
  color: var(--stone);
}
.cal-day:disabled .dot {
  color: var(--stone);
}
.cal-day.today::after {
  content: "";
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--oxblood);
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--taupe);
}

.times {
  margin-top: 22px;
}
.time-group {
  margin-bottom: 18px;
}
.time-group h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--taupe);
  margin-bottom: 10px;
}
.time-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}
.time-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.time-btn:hover {
  border-color: var(--gold);
}
.time-btn.selected {
  background: var(--espresso);
  color: var(--ivory);
  border-color: var(--espresso);
}
.empty-note {
  padding: 22px;
  text-align: center;
  color: var(--taupe);
  background: var(--cream);
  border-radius: 12px;
  font-size: 14px;
}

/* verify */
.verify-box {
  max-width: 440px;
}
.phone-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.phone-input:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(var(--gold-rgb) / 0.18);
}
.phone-input .cc {
  display: grid;
  place-items: center;
  padding: 0 14px;
  background: var(--paper);
  font-weight: 600;
  font-size: 14px;
  color: var(--brown);
  border-inline-end: 1px solid var(--line);
}
.phone-input input {
  border: 0;
  flex: 1;
  min-height: 50px;
  padding: 0 14px;
  background: transparent;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.phone-input input:focus {
  outline: none;
}
.code-input {
  font-size: 26px !important;
  letter-spacing: 0.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: var(--f-sans);
}
.verify-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.verified-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--success-bg);
  color: var(--success);
}
.verified-card svg {
  width: 26px;
  height: 26px;
}
.verified-card b {
  display: block;
  color: var(--espresso);
}

.pay-options {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

/* summary */
.summary {
  position: sticky;
  top: 20px;
}
.summary h2 {
  font-family: var(--f-serif);
  font-size: 21px;
  margin-bottom: 16px;
}
.sum-list {
  display: grid;
  margin: 0;
}
.sum-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.sum-item:first-child {
  padding-top: 0;
}
.sum-item:last-child {
  border-bottom: 0;
}
.sum-empty {
  font-size: 14px;
  color: var(--taupe);
  text-align: center;
  padding: 6px 0 2px;
}
.chair-illo {
  display: block;
  width: 100%;
  max-width: 172px;
  height: auto;
  margin: 2px auto 14px;
}
.sum-item dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--taupe);
}
.sum-item dd {
  margin: 1px 0 0;
  font-size: 14.5px;
}
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}
.sum-total span {
  font-size: 15px;
  font-weight: 600;
  color: var(--taupe);
}
.sum-total b {
  font-family: var(--f-serif);
  font-size: 28px;
  font-weight: 400;
}
.sum-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.sum-actions .btn {
  flex: 1;
}
@media (max-width: 979px) {
  .summary {
    position: static;
  }
  .summary .sum-actions {
    display: none;
  }
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgb(var(--ivory-rgb) / 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.mobile-bar .mb-info {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.mobile-bar .mb-info span {
  display: block;
  font-size: 12px;
  color: var(--taupe);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-bar .mb-info b {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 400;
}
.mobile-bar .btn {
  min-height: 46px;
  padding: 0 18px;
}
@media (min-width: 980px) {
  .mobile-bar {
    display: none;
  }
}

/* result + my bookings */
.result {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.result-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}
.result-icon svg {
  width: 34px;
  height: 34px;
}
.result-icon.ok {
  color: var(--success);
}
.result-icon.warn {
  color: var(--warn);
}
.result-icon.bad {
  color: var(--danger);
}
.result h1 {
  font-family: var(--f-serif);
  font-size: 30px;
}
.result .lead {
  margin-top: 8px;
  color: var(--brown-light);
}
.detail-table {
  text-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 8px 0 22px;
}
.detail-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.detail-table div:last-child {
  border-bottom: 0;
}
.detail-table dt {
  color: var(--taupe);
}
.detail-table dd {
  margin: 0;
  text-align: end;
  font-weight: 500;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.booking-list {
  display: grid;
  gap: 12px;
}
.booking-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.booking-date {
  text-align: center;
  border-inline-end: 1px solid var(--line);
  padding-inline-end: 14px;
}
.booking-date .m {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}
.booking-date .d {
  font-family: var(--f-serif);
  font-size: 30px;
  line-height: 1.1;
}
.booking-date .t {
  font-size: 12.5px;
  color: var(--taupe);
}
.booking-item h3 {
  font-family: var(--f-serif);
  font-size: 18px;
}
.booking-item .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 8px 0;
}
.booking-item .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* FIB payment panel */
.fib-pay {
  margin: 18px auto 6px;
  padding: 22px;
  max-width: 380px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.fib-qr {
  width: 220px;
  height: 220px;
  image-rendering: pixelated;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.fib-amount {
  font-family: var(--f-serif);
  font-size: 28px;
}
.fib-code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--espresso);
}
.fib-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.fib-wait {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--taupe);
}

/* Photos: your own pictures in /img/ appear automatically; until then a designed panel shows */

.row-option.is-off {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}
.row-option.is-off code {
  word-break: break-word;
}
/* Phone numbers read left to right in every language, so "+964" stays in front in Arabic and Kurdish too. */
.phone-input {
  direction: ltr;
}

@media (max-width: 420px) {
  .cal {
    padding: 10px;
  }
  .cal-grid {
    gap: 2px;
  }
  .cal-dow {
    font-size: 11px;
  }
  .cal-day {
    font-size: 14px;
  }
}
@media (max-width: 560px) {
  .book-header .header-actions {
    gap: 6px;
  }
  .book-header .btn.sm {
    padding-inline: 12px;
    font-size: 13px;
  }
  .book-header .lang-select {
    max-width: 96px;
  }
  .book-header .brand-name small {
    display: none;
  }
}
@media (max-width: 420px) {
  .book-header .brand {
    gap: 8px;
  }
  .book-header .brand-logo {
    width: 36px;
    height: 36px;
  }
  .book-header .wordmark {
    font-size: 26px;
  }
}

.phone-known {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 14px;
}
.phone-known svg {
  width: 16px;
  height: 16px;
  color: var(--gold-deep);
}
.ref-code {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.name-locked {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
}
.name-locked b {
  font-size: 16px;
  letter-spacing: 0.04em;
}
.name-locked .hint {
  margin-top: 4px;
}

.mine-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.move-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: start;
}

/* Phones: the page header only shows on the first step, so every later step starts at the top. */
@media (max-width: 640px) {
  body[data-step]:not([data-step="1"]) .book-hero {
    display: none;
  }
  .book-hero {
    gap: 16px;
    margin-bottom: 22px;
  }
}

/* Cloudflare's robot check. Empty (and taking no space) unless Cloudflare needs a tap. */
.human-check:not(:empty) {
  margin-bottom: 14px;
}
