/* booking.css — slot picker styling for /book-a-demo.html
 *
 * Dark wizard aesthetic — mirrors the eb-wiz styling from index.html
 * (the "Design my stack" wizard) so book-a-demo feels native to the
 * site. All class selectors match the markup emitted by booking.js;
 * only the visual rules changed.
 */

:root {
  --bg:         #0a0a14;
  --bg-elev:    rgba(255, 255, 255, 0.025);
  --bg-elev-2:  rgba(255, 255, 255, 0.045);
  --border:     rgba(255, 255, 255, 0.08);
  --border-2:   rgba(255, 255, 255, 0.14);
  --text:       rgba(255, 255, 255, 0.92);
  --muted:      rgba(255, 255, 255, 0.62);
  --muted-2:    rgba(255, 255, 255, 0.45);
  --accent:     #C4B5FD;
  --brand:      #584e9f;
  --brand-2:    #6A60AD;
  --brand-soft: rgba(124, 58, 237, 0.10);
  --ok:         #22d07a;
  --err:        #ff7d7d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Aurora background glows — same generators as eb-build-aurora in
   index.html, lifted to body level so they wash the whole page. */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
body::before {
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 60%);
  animation: bk-aurora-1 18s ease-in-out infinite alternate;
}
body::after {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 60%);
  animation: bk-aurora-2 22s ease-in-out infinite alternate;
}
@keyframes bk-aurora-1 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(80px, 60px, 0); }
}
@keyframes bk-aurora-2 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-80px, -60px, 0); }
}

.bk-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  position: relative;
  z-index: 1;
}

/* -- Header / brand mark -- */
.bk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}

.bk-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.bk-brand .accent { color: var(--accent); }

.bk-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.bk-back-link:hover {
  background: rgba(196, 181, 253, 0.05);
  border-color: rgba(196, 181, 253, 0.35);
  color: var(--text);
}

.bk-h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}

.bk-lede {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
}

/* -- Step indicator -- */
.bk-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.bk-step {
  flex: 1;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  position: relative;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bk-step.active {
  border-color: rgba(196, 181, 253, 0.55);
  color: var(--text);
  background: rgba(124, 58, 237, 0.12);
  font-weight: 600;
}

.bk-step.done {
  color: var(--ok);
  background: rgba(34, 208, 122, 0.08);
  border-color: rgba(34, 208, 122, 0.32);
}

.bk-step-num {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted-2);
  color: var(--bg) !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  margin-right: 8px;
}
.bk-step.active .bk-step-num { background: var(--accent); }
.bk-step.done .bk-step-num   { background: var(--ok); color: #0a0a14 !important; }

/* -- Cards (glassy translucent panels matching eb-build--wizard) -- */
.bk-card {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px 32px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  margin-bottom: 18px;
}

.bk-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.bk-card .sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

/* -- Loading -- */
.bk-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
}

/* -- Date picker / calendar -- */
.bk-month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.bk-month-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.bk-month-nav {
  display: flex;
  gap: 6px;
}

.bk-month-nav button {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.bk-month-nav button:hover:not(:disabled) {
  background: var(--bg-elev-2);
  border-color: rgba(196, 181, 253, 0.45);
  color: var(--accent);
}

.bk-month-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bk-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bk-dow span { text-align: center; padding: 6px 0; }

.bk-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.bk-day {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  position: relative;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
  font-weight: 500;
}

.bk-day.mute {
  visibility: hidden;
}

.bk-day.disabled {
  background: transparent;
  color: var(--muted-2);
  opacity: 0.35;
  cursor: not-allowed;
  border-color: transparent;
}

.bk-day.available {
  border-color: rgba(196, 181, 253, 0.28);
  color: var(--text);
  font-weight: 600;
}

.bk-day.available:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(196, 181, 253, 0.6);
  transform: translateY(-1px);
}

.bk-day.selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.6);
}

.bk-day .dot {
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.bk-day.selected .dot { background: #fff; }

/* -- Slot pills -- */
.bk-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.bk-slot {
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.bk-slot:hover {
  border-color: rgba(196, 181, 253, 0.6);
  background: rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

.bk-slot.selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.6);
}

.bk-no-slots {
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
}
.bk-no-slots a { color: var(--accent); }

/* -- Contact form -- */
.bk-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bk-field {
  display: flex;
  flex-direction: column;
}

.bk-field.full { grid-column: 1 / -1; }

.bk-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.bk-field label .req { color: var(--err); }

.bk-field input,
.bk-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.025);
  font-family: inherit;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.bk-field input::placeholder,
.bk-field textarea::placeholder { color: var(--muted-2); }

.bk-field input:focus,
.bk-field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(196, 181, 253, 0.55);
}

.bk-field textarea {
  min-height: 96px;
  resize: vertical;
}

.bk-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  grid-column: 1 / -1;
}

.bk-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bk-back:hover {
  background: rgba(196, 181, 253, 0.05);
  border-color: rgba(196, 181, 253, 0.35);
  color: var(--text);
  text-decoration: none;
}

.bk-submit {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.bk-submit:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  transform: translateY(-1px);
}
.bk-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.bk-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -- Confirmation -- */
.bk-success {
  background: linear-gradient(180deg,
    rgba(34, 208, 122, 0.10) 0%,
    rgba(34, 208, 122, 0.025) 100%);
  border: 1px solid rgba(34, 208, 122, 0.32);
  padding: 36px 28px;
  border-radius: 20px;
  text-align: center;
}

.bk-success .check {
  width: 56px;
  height: 56px;
  background: var(--ok);
  color: #0a0a14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  font-weight: 700;
}

.bk-success h2 {
  margin: 0 0 8px;
  color: var(--ok);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bk-success .when {
  font-size: 17px;
  margin: 10px 0;
  color: var(--text);
  font-weight: 600;
}

.bk-success .meta {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 22px;
}

.bk-success .sub {
  color: var(--muted);
  margin: 0 0 22px;
}

.bk-success .manage {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--brand);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.bk-success .manage:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  transform: translateY(-1px);
}

/* -- Error banner -- */
.bk-error {
  background: rgba(255, 125, 125, 0.10);
  border: 1px solid rgba(255, 125, 125, 0.35);
  color: var(--err);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}
.bk-error a { color: var(--err); text-decoration: underline; }

/* -- Responsive -- */
@media (max-width: 640px) {
  .bk-page { padding: 32px 16px 56px; }
  .bk-card { padding: 22px 18px 26px; border-radius: 16px; }
  .bk-form { grid-template-columns: 1fr; }
  .bk-step { min-width: 90px; font-size: 12px; }
  .bk-actions { flex-direction: column-reverse; gap: 12px; align-items: stretch; }
  .bk-actions .bk-submit { width: 100%; }
  .bk-actions .bk-back { width: 100%; justify-content: center; }
}
