/* BookIQ — public UI. No external fonts, CDN, or images. */
:root {
  --bg: #080d1c;
  --bg-2: #0e1630;
  --panel: #121b37;
  --panel-2: #19244a;
  --line: #293761;
  --text: #f4f7ff;
  --muted: #9aa8cc;
  --cyan: #3fd8ff;
  --violet: #9b7bff;
  --green: #3ddc97;
  --amber: #ffc46b;
  --red: #ff6b6b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; padding-bottom: 40px;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.app { max-width: 940px; margin: 0 auto; padding: 0 18px; }
.app.narrow { max-width: 680px; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 2px 14px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px;
  display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #04121c;
  background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 8px 22px rgba(63, 216, 255, .22);
}
.brand-name { font-weight: 900; font-size: 17px; letter-spacing: -.3px; }
.brand-sub { color: var(--muted); font-size: 11px; margin-top: 1px; }
.top-pill, .badge {
  display: inline-block; border-radius: 999px; padding: 5px 10px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; color: var(--cyan);
  background: rgba(63, 216, 255, .1); border: 1px solid rgba(63, 216, 255, .28);
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 34px 0 30px; }
.hero-glow {
  position: absolute; inset: -90px -60px auto; height: 260px; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(63, 216, 255, .18), transparent 60%),
              radial-gradient(circle at 75% 20%, rgba(155, 123, 255, .16), transparent 62%);
}
.hero-inner { position: relative; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(30px, 6vw, 48px); line-height: 1.1; letter-spacing: -1.4px; }
.hero-sub { max-width: 640px; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 14px 0 18px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges .badge { color: var(--amber); background: rgba(255, 196, 107, .09); border-color: rgba(255, 196, 107, .26); }

/* Booking card */
.booking-card, .status-card {
  background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow); padding: 8px 20px 24px;
}
.step { padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; }
.step-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.step-num {
  width: 27px; height: 27px; flex: 0 0 27px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(155, 123, 255, .16); color: var(--violet); font-weight: 900; font-size: 12px;
}
.step-head h2 { margin: 0; font-size: 16px; }
.step-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-card {
  position: relative; text-align: left; border: 1px solid var(--line); border-radius: 15px;
  background: var(--panel-2); color: var(--text); padding: 14px; min-height: 116px;
  display: flex; flex-direction: column; gap: 5px; transition: .15s ease;
}
.service-card:hover { border-color: rgba(63, 216, 255, .5); transform: translateY(-1px); }
.service-card.is-selected { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(63, 216, 255, .16); }
.popular-tag {
  position: absolute; top: 10px; right: 10px; font-size: 8px; font-weight: 900; text-transform: uppercase;
  color: #2a1400; background: var(--amber); padding: 3px 6px; border-radius: 999px;
}
.service-emoji { font-size: 20px; }
.service-title { font-weight: 800; font-size: 13px; }
.service-meta { color: var(--muted); font-size: 10px; }
.service-price { margin-top: auto; color: var(--cyan); font-weight: 900; font-size: 14px; }

/* Date and slots */
.date-field, .field { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.date-field input, .field input, .field textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 12px; outline: none; font-size: 13px;
}
.date-field input:focus, .field input:focus, .field textarea:focus { border-color: var(--cyan); }
.field textarea { resize: vertical; }
.field small { font-weight: 400; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot-btn {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text);
  padding: 10px 6px; display: grid; gap: 3px; min-height: 62px; transition: .15s ease;
}
.slot-btn:hover:not(:disabled) { border-color: rgba(63, 216, 255, .5); }
.slot-btn.is-ai { border-color: var(--green); background: rgba(61, 220, 151, .1); }
.slot-btn.is-selected { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(63, 216, 255, .16); }
.slot-btn:disabled { opacity: .38; cursor: not-allowed; }
.slot-time { font-weight: 900; font-size: 13px; }
.slot-label { font-size: 8px; color: var(--muted); line-height: 1.25; }
.slot-btn.is-ai .slot-label { color: var(--green); font-weight: 800; }
.slot-note { color: var(--amber); font-size: 11px; margin: 10px 0 0; }
.muted { color: var(--muted); font-size: 12px; }

/* Form and success */
form { display: grid; gap: 12px; }
.primary-btn, .action-btn {
  border: 0; border-radius: 12px; padding: 13px 16px; font-weight: 900; font-size: 13px; text-decoration: none;
  background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #04121c; text-align: center;
}
.primary-btn:hover, .action-btn:hover { filter: brightness(1.08); }
.primary-btn:disabled, .action-btn:disabled { opacity: .45; pointer-events: none; }
.ghost-btn {
  display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted);
  text-decoration: underline; font-size: 11px;
}
.error { color: var(--red); font-size: 11px; line-height: 1.4; margin: 0; }
.success-panel { text-align: center; padding: 34px 8px 12px; }
.success-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(61, 220, 151, .14); color: var(--green); font-size: 26px; font-weight: 900;
}
.success-panel h2 { margin: 0 0 8px; }
.success-panel p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.success-panel .primary-btn { display: inline-block; margin-top: 12px; }

/* Status page */
.status-card { padding: 26px 22px; }
.status-loading, .status-error { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; }
.status-error h2 { color: var(--text); margin: 0 0 6px; }
.status-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.status-top h1 { margin: 0; font-size: 25px; letter-spacing: -.5px; }
.status-pill {
  border-radius: 999px; padding: 6px 11px; font-size: 10px; font-weight: 900; text-transform: uppercase;
  color: var(--amber); background: rgba(255, 196, 107, .12); border: 1px solid rgba(255, 196, 107, .3);
}
.status-pill.is-confirmed { color: var(--green); background: rgba(61, 220, 151, .12); border-color: rgba(61, 220, 151, .35); }
.status-pill.is-cancelled { color: var(--red); background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .35); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.detail-grid > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.detail-grid span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .7px; }
.detail-grid strong { display: block; margin-top: 5px; font-size: 13px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; opacity: .45; }
.timeline li.is-active { opacity: 1; }
.timeline li > span {
  width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); font-size: 10px; font-weight: 900;
}
.timeline li.is-active > span { background: var(--cyan); color: #04121c; border-color: var(--cyan); }
.timeline strong { display: block; font-size: 12px; }
.timeline small { color: var(--muted); font-size: 10px; }
.privacy-note { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 22px 0 0; }

/* Footer and inquiry CTA */
.footer { text-align: center; padding: 34px 0 10px; color: var(--muted); font-size: 11px; }
.footer-brand { font-weight: 900; color: var(--text); font-size: 13px; }
.footer-brand span { color: var(--muted); font-weight: 400; }
.footer-note { margin-top: 6px; }
.footer-link { display: inline-block; margin-top: 10px; color: var(--cyan); text-decoration: none; font-weight: 800; }
.footer-link:hover, .brand-link:hover { text-decoration: underline; }
.brand-link { color: var(--cyan); text-decoration: none; font-weight: 800; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.hire-cta {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  padding: 10px 16px; font-size: 11px; font-weight: 900; text-decoration: none;
  color: var(--amber); background: rgba(255, 196, 107, .1); border: 1px solid rgba(255, 196, 107, .4);
}
.hire-cta:hover { background: rgba(255, 196, 107, .2); text-decoration: none; }
.telegram-cta { color: #9ddcff; background: rgba(63, 216, 255, .1); border-color: rgba(63, 216, 255, .42); }
.telegram-cta:hover { background: rgba(63, 216, 255, .2); }
.back-link { color: var(--muted); font-size: 11px; text-decoration: none; }

@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  form { grid-template-columns: 1fr 1fr; }
  form .primary-btn, form .error { grid-column: 1 / -1; }
}
