/* =========================================================================
   Jurnii Booking Form — Stylesheet
   Design Identity: Calm Authority, Enterprise Intelligence, Data-Forward
   ========================================================================= */

/* --- Modal Overlay & Wrapper --- */
.jurnii-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.jurnii-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.jurnii-modal-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: 0 20px;
  transform: translateY(20px);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jurnii-modal-overlay.active .jurnii-modal-wrapper {
  transform: translateY(0);
}

/* --- Form Container (Shared between Modal & Inline) --- */
.jurnii-booking-container {
  background: var(--concrete-950);
  color: var(--concrete-50);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

/* The `hidden` attribute must actually hide.
   The UA stylesheet's `[hidden] { display: none }` is weaker than ANY author `display`
   rule, and `.jurnii-form-group` sets `display: flex` — so the Job Title "Other" group
   rendered permanently despite carrying `hidden`. Scoped to the widget and forced,
   because every conditional field here relies on the attribute. */
.jurnii-booking-container [hidden] {
  display: none !important;
}

/* Background grid indicator matching Jurnii visual identity */
.jurnii-booking-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(148, 255, 150, 0.05), transparent 45%),
              radial-gradient(circle at 0% 100%, rgba(82, 153, 255, 0.02), transparent 45%);
  pointer-events: none;
}

.jurnii-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--concrete-300);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.jurnii-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--concrete-50);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Progress Steps --- */
.jurnii-progress-container {
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.jurnii-progress-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.jurnii-step-indicator {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 200ms ease;
}

.jurnii-step-indicator.active {
  opacity: 1;
}

.jurnii-step-indicator.completed {
  opacity: 0.8;
}

.jurnii-step-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.jurnii-step-indicator.active .jurnii-step-bar {
  background: rgba(255, 255, 255, 0.2);
}

.jurnii-step-indicator.active .jurnii-step-bar::after {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--jurnii-200);
  animation: step-loading 1.2s ease-in-out infinite alternate;
}

@keyframes step-loading {
  0% { left: 0; right: 80%; }
  100% { left: 80%; right: 0; }
}

.jurnii-step-indicator.completed .jurnii-step-bar {
  background: var(--jurnii-200);
}

.jurnii-step-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--concrete-300);
}

.jurnii-step-indicator.active .jurnii-step-label {
  color: var(--jurnii-200);
}

/* --- Form Layout & Controls --- */
.jurnii-form-step {
  display: none;
  position: relative;
  z-index: 2;
  animation: step-fade 250ms ease-out;
}

.jurnii-form-step.active {
  display: block;
}

@keyframes step-fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.jurnii-form-header {
  margin-bottom: 28px;
}

.jurnii-form-header h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--concrete-50);
}

.jurnii-form-header p {
  font-size: 14px;
  color: var(--concrete-300);
  margin: 0;
  line-height: 1.5;
}

.jurnii-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* One column on a phone. The grid had no breakpoint at all, so the right-hand column —
   Job Title and Phone number — ran off the viewport and the page scrolled sideways.
   640px matches the scheduler's existing collapse point. */
@media (max-width: 640px) {
  .jurnii-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.jurnii-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* `1 / -1`, not `span 2`: it spans whatever the explicit grid actually has.
   `span 2` in a one-column grid does not stay in that column — it CREATES an implicit
   second one, sized by grid-auto-columns (min-content). That silently resurrected the
   two-column layout at every mobile width, overflowing the viewport, even though the
   media query below had already collapsed grid-template-columns to `1fr`. */
.jurnii-form-group.full-width {
  grid-column: 1 / -1;
}

.jurnii-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--concrete-300);
}

.jurnii-input,
.jurnii-select {
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--concrete-50);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.jurnii-input:hover,
.jurnii-select:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.jurnii-input:focus,
.jurnii-select:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--jurnii-200);
  box-shadow: 0 0 0 3px rgba(148, 255, 150, 0.15);
}

.jurnii-input.error {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Styled Select with custom arrow */
.jurnii-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  padding-right: 44px;
}

/* Fix dropdown options on OS light backgrounds */
.jurnii-select option {
  background: var(--concrete-950);
  color: var(--concrete-50);
}

/* Custom listbox — replaces the OS menu. Native select stays in the DOM for form values. */
.jurnii-select-ui { position: relative; }
.jurnii-select-ui .jurnii-select.is-native-hidden {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  background-image: none;
}
.jurnii-select-trigger {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 46px;
  padding: 12px 16px 12px 14px;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--concrete-50);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.jurnii-select-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
.jurnii-select-ui.is-open .jurnii-select-trigger,
.jurnii-select-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--jurnii-200);
  box-shadow: 0 0 0 3px rgba(148, 255, 150, 0.15);
}
.jurnii-select-trigger.is-placeholder { color: rgba(255, 255, 255, 0.45); }
.jurnii-select-label { flex: 1; min-width: 0; }
.jurnii-select-chevron {
  flex: none; width: 16px; height: 16px; color: rgba(255, 255, 255, 0.6);
  transition: transform 180ms ease;
}
.jurnii-select-ui.is-open .jurnii-select-chevron { transform: rotate(180deg); }
.jurnii-select-menu {
  position: fixed; z-index: 80;
  margin: 0; padding: 4px; list-style: none;
  max-height: min(260px, calc(100vh - 24px)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--concrete-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}
.jurnii-select-menu[hidden] { display: none; }
.jurnii-select-option {
  padding: 8px 10px; border-radius: 6px;
  font-size: 14px; color: var(--concrete-100); cursor: pointer;
}
.jurnii-select-option:hover,
.jurnii-select-option.is-selected { background: rgba(255, 255, 255, 0.08); }
.jurnii-select-option.is-disabled { opacity: 0.45; cursor: default; }

/* Marketing Consent Checkbox */
.jurnii-consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.jurnii-checkbox-wrapper {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.jurnii-checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.jurnii-checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: background 150ms ease, border-color 150ms ease;
}

.jurnii-checkbox-wrapper:hover input ~ .jurnii-checkbox-checkmark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.jurnii-checkbox-wrapper input:checked ~ .jurnii-checkbox-checkmark {
  background: var(--jurnii-200);
  border-color: var(--jurnii-200);
}

.jurnii-checkbox-checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--concrete-950);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.jurnii-checkbox-wrapper input:checked ~ .jurnii-checkbox-checkmark::after {
  display: block;
}

.jurnii-consent-text {
  font-size: 13px;
  color: var(--concrete-300);
  line-height: 1.5;
}

/* --- Field hints, shared by the combobox status line and the product group --- */
.jurnii-field-hint {
  font-size: 12px;
  color: var(--concrete-400);
  line-height: 1.5;
  margin: 6px 0 0;
  min-height: 1em;
}

.jurnii-linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--jurnii-300);
  text-decoration: underline;
  cursor: pointer;
}

.jurnii-linklike:hover { color: var(--jurnii-200); }

/* --- Job Title combobox ---
   The listbox is absolutely positioned so opening it never reflows the form grid;
   `.jurnii-combobox` is the containing block. */
.jurnii-combobox {
  position: relative;
}

.jurnii-listbox {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--concrete-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}

.jurnii-listbox[hidden] { display: none; }

.jurnii-option {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--concrete-100);
  cursor: pointer;
}

/* `.active` follows aria-activedescendant, which is keyboard-driven; :hover covers
   the pointer. Both must look the same or the two modes disagree about "current". */
.jurnii-option.active,
.jurnii-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.jurnii-option.is-other {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  padding-top: 10px;
  color: var(--concrete-300);
  font-style: italic;
}

.jurnii-option-more {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--concrete-400);
  cursor: default;
}

/* --- Product Interest checkbox group --- */
.jurnii-checkbox-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;   /* fieldsets default to min-content, which breaks the grid cell */
}

.jurnii-checkbox-group legend {
  padding: 0;
  margin-bottom: 10px;
}

.jurnii-checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
}

.jurnii-checkbox-label {
  font-size: 14px;
  color: var(--concrete-200);
  line-height: 1.4;
}

.jurnii-checkbox-option:hover .jurnii-checkbox-label { color: var(--concrete-50); }

/* Action Rows */
.jurnii-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}

.jurnii-form-actions.split {
  justify-content: space-between;
}

/* --- Calendar Booking Component --- */
.jurnii-scheduler-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.01);
}

@media (max-width: 640px) {
  .jurnii-scheduler-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
}

.jurnii-calendar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jurnii-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 12px;
}

.jurnii-calendar-header span {
  font-size: 14px;
  font-weight: 600;
  color: var(--concrete-50);
}

.jurnii-calendar-nav {
  display: flex;
  gap: 4px;
}

.jurnii-calendar-nav-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--concrete-300);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: all 150ms ease;
}

.jurnii-calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--concrete-50);
  border-color: rgba(255, 255, 255, 0.12);
}

.jurnii-calendar-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.jurnii-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 6px;
}

.jurnii-calendar-weekdays span {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--concrete-500);
  font-weight: 500;
}

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

.jurnii-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: var(--concrete-400);
  cursor: default;
  position: relative;
  transition: all 150ms ease;
}

.jurnii-calendar-day.empty {
  cursor: default;
}

.jurnii-calendar-day.past {
  opacity: 0.15;
}

.jurnii-calendar-day.weekend {
  opacity: 0.3;
}

.jurnii-calendar-day.available {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--concrete-100);
}

.jurnii-calendar-day.available:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--concrete-50);
}

.jurnii-calendar-day.selected {
  background: var(--jurnii-200);
  border-color: var(--jurnii-200);
  color: var(--concrete-950) !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(148, 255, 150, 0.25);
}

/* Dot availability indicator */
.jurnii-calendar-day.available::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--jurnii-300);
}

.jurnii-calendar-day.selected::after {
  background: var(--concrete-950);
}

/* Time Slots Side Panel */
.jurnii-slots-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 28px;
}

@media (max-width: 640px) {
  .jurnii-slots-wrapper {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
  }
}

.jurnii-slots-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--concrete-200);
  margin: 0;
}

.jurnii-slots-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar for time slots */
.jurnii-slots-grid::-webkit-scrollbar {
  width: 4px;
}
.jurnii-slots-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
.jurnii-slots-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.jurnii-slots-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.jurnii-time-slot-btn {
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--concrete-200);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 150ms ease;
  width: 100%;
}

.jurnii-time-slot-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--concrete-50);
}

.jurnii-time-slot-btn.selected {
  background: var(--jurnii-200);
  border-color: var(--jurnii-200);
  color: var(--concrete-950);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(148, 255, 150, 0.15);
}

.jurnii-slots-empty {
  font-size: 13px;
  color: var(--concrete-500);
  text-align: center;
  padding: 32px 0;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

/* --- Final Confirmation State --- */
.jurnii-confirm-state {
  text-align: center;
  padding: 24px 0;
}

.jurnii-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(5, 221, 22, 0.1);
  border: 1px solid var(--jurnii-400);
  color: var(--jurnii-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 20px rgba(52, 247, 65, 0.15);
}

.jurnii-confirm-state h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.jurnii-confirm-state p {
  font-size: 15px;
  color: var(--concrete-300);
  max-width: 44ch;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.jurnii-confirm-meta {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px;
  max-width: 320px;
  margin: 0 auto 32px;
  font-size: 13px;
  text-align: left;
}

.jurnii-confirm-meta > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.jurnii-confirm-meta > div:last-child {
  margin-bottom: 0;
}

.jurnii-confirm-meta span.label {
  color: var(--concrete-500);
}
.jurnii-confirm-meta span.val {
  font-weight: 500;
}
.jurnii-confirm-meta span.val-mono {
  font-family: var(--font-mono);
  font-size: 11px;
}

/* --- Real-Time JSON Debug Panel --- */
.jurnii-debug-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #181a15;
  color: var(--jurnii-200);
  border: 1px solid rgba(148, 255, 150, 0.25);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 150ms ease;
}

.jurnii-debug-toggle:hover {
  background: #252c1e;
  border-color: var(--jurnii-200);
  box-shadow: 0 0 10px rgba(148, 255, 150, 0.2);
}

.jurnii-debug-toggle span.badge {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jurnii-300);
  box-shadow: 0 0 4px var(--jurnii-300);
}

.jurnii-debug-panel {
  position: fixed;
  bottom: 84px;
  left: 24px;
  width: 420px;
  max-height: 480px;
  background: #0f110c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: all 250ms ease;
}

.jurnii-debug-panel.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.jurnii-debug-header {
  background: #181a15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jurnii-debug-header span.title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--concrete-300);
  display: flex;
  align-items: center;
  gap: 6px;
}

.jurnii-debug-header button.clear {
  background: transparent;
  border: 0;
  color: var(--concrete-500);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  transition: color 150ms ease;
}
.jurnii-debug-header button.clear:hover {
  color: var(--destructive);
}

.jurnii-debug-content {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.jurnii-debug-content pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: #c7ffc6; /* Soft terminal green */
}

/* Responsive adjustments for debug panel */
@media (max-width: 480px) {
  .jurnii-debug-panel {
    width: calc(100vw - 32px);
    left: 16px;
    bottom: 74px;
    max-height: 380px;
  }
  .jurnii-debug-toggle {
    left: 16px;
    bottom: 16px;
  }
}

/* Explicit overrides for back button ghost styles to guarantee dark-bg text contrast */
.jurnii-booking-container .btn.ghost-on-dark,
.jurnii-booking-container .btn.ghost {
  color: var(--concrete-100) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: transparent !important;
}

.jurnii-booking-container .btn.ghost-on-dark:hover,
.jurnii-booking-container .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--concrete-50) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

