/* Shared form styles (contact-sales + booking) */
.book-demo-form {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 12px;
  padding: 14px;
  background: var(--seo-surface, #0f172a);
  border: 1px solid var(--seo-border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
}

.book-demo-form label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.book-optional {
  color: var(--seo-muted, #9ca3af);
  font-weight: 500;
}

.book-demo-form input[type="text"],
.book-demo-form input[type="email"],
.book-demo-form input[type="datetime-local"],
.book-demo-form select,
.book-demo-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--seo-border, rgba(255, 255, 255, 0.1));
  background: var(--seo-bg, #020617);
  color: var(--seo-text, #fff);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-demo-form textarea {
  min-height: 56px;
  resize: vertical;
}

.book-demo-form button {
  margin-top: 8px;
  border: 0;
  cursor: pointer;
  width: fit-content;
}

.book-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.book-consent input {
  margin-top: 1px;
  flex-shrink: 0;
}

.book-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book-status {
  min-height: 1em;
  margin: 4px 0 0;
  font-size: 12px;
  text-align: center;
}

.book-status[data-state="success"] {
  color: #86efac;
}

.book-status[data-state="error"] {
  color: #fca5a5;
}

.book-status[data-state="pending"] {
  color: #9ca3af;
}

html:has(.booking-page),
html:has(.booking-page) body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

/* Viewport-locked booking shell */
.booking-page {
  --booking-bg: #060913;
  --booking-navy: #0b0f19;
  --booking-violet: #7c3aed;
  --booking-indigo: #4f46e5;
  --booking-text: #ffffff;
  --booking-muted: #9ca3af;
  --booking-dim: #6b7280;
  --booking-border: rgba(255, 255, 255, 0.1);
  --booking-card: rgba(15, 23, 42, 0.45);
  --booking-field: rgba(2, 6, 23, 0.72);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--booking-bg);
  color: var(--booking-text);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.booking-page *,
.booking-page *::before,
.booking-page *::after {
  box-sizing: border-box;
}

.booking-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(79, 70, 229, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 90% 30%, rgba(124, 58, 237, 0.1), transparent 50%),
    linear-gradient(165deg, #000 0%, var(--booking-navy) 55%, #060913 100%);
}

.booking-glow {
  position: absolute;
  z-index: -1;
  width: 400px;
  height: 400px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  filter: blur(120px);
  pointer-events: none;
}

.booking-glow--left {
  top: -120px;
  left: -120px;
  background: rgba(79, 70, 229, 0.14);
}

.booking-glow--right {
  top: 80px;
  right: -140px;
  background: rgba(124, 58, 237, 0.12);
}

.booking-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 3.5rem;
  padding: 0 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--booking-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.booking-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--booking-indigo), var(--booking-violet));
  color: #fff;
}

.booking-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.booking-nav a,
.booking-footer a {
  color: var(--booking-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.booking-nav a:hover,
.booking-footer a:hover {
  color: var(--booking-text);
}

.booking-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  overflow: hidden;
}

.booking-grid {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.booking-col--value {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-height: 0;
  height: 100%;
}

.booking-value-copy {
  display: grid;
  gap: 0.55rem;
}

.booking-kicker {
  margin: 0;
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-page h1 {
  margin: 0;
  max-width: 12ch;
  color: #fff;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.booking-lead {
  margin: 0;
  max-width: 34rem;
  color: var(--booking-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.booking-checklist {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.booking-checklist li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #d1d5db;
  font-size: 12px;
  line-height: 1.4;
}

.booking-checklist strong {
  color: #fff;
  font-weight: 600;
}

.booking-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.booking-mock {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.9));
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.1);
  flex-shrink: 1;
  min-height: 0;
}

.booking-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.4rem;
}

.booking-mock-title {
  font-size: 11px;
  font-weight: 600;
}

.booking-mock-badge {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 600;
}

.booking-mock-table {
  display: grid;
  gap: 0.3rem;
}

.booking-mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.45fr);
  gap: 6px;
  align-items: center;
  padding: 0.35rem 0.45rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 6, 23, 0.55);
  color: #cbd5e1;
  font-size: 11px;
}

.booking-mock-row--head {
  background: transparent;
  border-color: transparent;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0;
  padding-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.status-pill--full {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-pill--partial {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-pill--gap {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.confidence {
  color: #a78bfa;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.booking-col--form {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  max-height: calc(100vh - 5.5rem);
  max-height: calc(100dvh - 5.5rem);
}

.booking-card {
  width: 100%;
  max-width: 36rem;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--booking-border);
  background: var(--booking-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.booking-card-head {
  flex-shrink: 0;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--booking-border);
}

.booking-card h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.booking-card-lead {
  margin: 0;
  color: var(--booking-muted);
  font-size: 12px;
  line-height: 1.4;
}

.booking-page .book-demo-form {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  margin-top: 0;
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.book-fields {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  overflow: auto;
}

.book-actions {
  flex-shrink: 0;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding-top: 0.45rem;
}

.book-field {
  display: grid;
  gap: 0.2rem;
}

.book-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.booking-page .book-demo-form label,
.booking-page .book-focus legend {
  margin: 0;
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 600;
}

.booking-page .book-optional {
  color: var(--booking-dim);
  font-weight: 500;
}

.booking-page .book-demo-form input[type="text"],
.booking-page .book-demo-form input[type="email"],
.booking-page .book-demo-form select,
.booking-page .book-demo-form textarea {
  background: var(--booking-field);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.booking-page .book-demo-form input::placeholder,
.booking-page .book-demo-form textarea::placeholder {
  color: #6b7280;
}

.booking-page .book-demo-form textarea {
  min-height: 44px;
  max-height: 64px;
  padding-top: 7px;
  resize: none;
}

.book-select-wrap {
  position: relative;
}

.book-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #9ca3af;
  border-bottom: 1.5px solid #9ca3af;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.booking-page .book-demo-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  cursor: pointer;
}

.book-hint {
  margin: 0;
  color: #fbbf24;
  font-size: 11px;
  line-height: 1.3;
}

.book-focus {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.35rem;
}

.book-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.book-pill {
  margin: 0 !important;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(2, 6, 23, 0.55);
  color: #d1d5db;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  width: auto !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.book-pill:hover {
  border-color: rgba(167, 139, 250, 0.45) !important;
  color: #fff;
}

.book-pill.is-active {
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(167, 139, 250, 0.75) !important;
  color: #fff;
}

.booking-page .book-consent {
  color: #9ca3af;
  font-size: 11px;
}

.booking-page .book-consent a {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-page .booking-submit {
  width: 100%;
  margin: 0;
  padding: 0.7rem 1rem;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.28);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.booking-page .booking-submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

.booking-page .booking-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.booking-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  height: 2rem;
  padding: 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--booking-dim);
  font-size: 11px;
}

.booking-page a:focus-visible,
.booking-page button:focus-visible,
.booking-page input:focus-visible,
.booking-page select:focus-visible,
.booking-page textarea:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.booking-page .book-demo-form input:focus-visible,
.booking-page .book-demo-form select:focus-visible,
.booking-page .book-demo-form textarea:focus-visible {
  border-color: rgba(167, 139, 250, 0.75);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .booking-glow {
    display: none;
  }

  .booking-page *,
  .booking-page *::before,
  .booking-page *::after {
    transition: none !important;
  }
}

/* Short laptop heights: tighten further */
@media (max-height: 820px) and (min-width: 981px) {
  .booking-page h1 {
    font-size: 1.55rem;
  }

  .booking-lead {
    font-size: 0.8rem;
  }

  .booking-card {
    padding: 0.8rem 0.9rem;
  }

  .book-fields {
    gap: 0.45rem;
  }

  .booking-mock-row:last-child {
    display: none;
  }
}

@media (max-width: 980px) {
  html:has(.booking-page),
  html:has(.booking-page) body {
    height: auto;
    overflow: auto;
  }

  .booking-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .booking-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .booking-main {
    overflow: visible;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
  }

  .booking-grid {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    gap: 1.25rem;
  }

  .booking-col--value,
  .booking-col--form {
    height: auto;
    max-height: none;
  }

  .booking-page h1 {
    max-width: none;
  }

  .booking-card {
    max-height: none;
    overflow: visible;
  }

  .book-fields {
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .book-pair {
    grid-template-columns: 1fr;
  }

  .booking-header,
  .booking-main,
  .booking-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .booking-footer {
    height: auto;
    padding-top: 0.65rem;
    padding-bottom: 0.85rem;
  }

  .booking-mock-row {
    grid-template-columns: 1fr;
  }

  .booking-mock-row--head {
    display: none;
  }

  .book-pill {
    flex: 1 1 calc(50% - 0.35rem);
    text-align: center;
  }
}
