/* Quantize Smart Form v7
 * Portable component styles. All selectors are scoped to .qz-smart-form.
 */
.qz-smart-form {
  --lf-surface: #080a0d;
  --lf-surface-soft: #11151a;
  --lf-heading: #fff;
  --lf-body: rgba(255, 255, 255, 0.72);
  --lf-muted: rgba(255, 255, 255, 0.56);
  --lf-border: rgba(255, 255, 255, 0.16);
  --lf-border-strong: rgba(255, 255, 255, 0.3);
  --lf-accent: #a8dcff;
  --lf-accent-hover: #c4e9ff;
  --lf-accent-ink: #071722;
  --lf-error: #ffaaa9;
  display: block;
  width: 100%;
  overflow: visible;
  overscroll-behavior: auto;
  font-family: inherit;
  color: var(--lf-heading);
}

.qz-smart-form *,
.qz-smart-form *::before,
.qz-smart-form *::after {
  box-sizing: border-box;
}

.qz-smart-form [hidden] {
  display: none !important;
}

.qz-smart-form .lead-form {
  width: min(100%, 720px);
  min-height: clamp(390px, 56vh, 570px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--lf-border);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--lf-accent) 13%, transparent), transparent 34%),
    linear-gradient(155deg, color-mix(in srgb, var(--lf-surface-soft) 96%, transparent), var(--lf-surface));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.05);
  overflow: visible;
}

.qz-smart-form .qsf7-progress {
  width: 100%;
  height: 3px;
  margin-bottom: clamp(38px, 7vh, 68px);
  overflow: hidden;
  border-radius: 999px;
  background: var(--lf-border);
}

.qz-smart-form .qsf7-progress-bar {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--lf-accent);
  transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qz-smart-form .qsf7-stage {
  display: grid;
  align-items: center;
  min-height: clamp(270px, 38vh, 390px);
}

.qz-smart-form .qsf7-step {
  width: 100%;
  animation: qsf7-enter 220ms ease both;
}

.qz-smart-form .qsf7-kicker {
  margin: 0 0 10px;
  color: var(--lf-muted);
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.qz-smart-form .qsf7-question {
  max-width: 680px;
  margin: 0 0 clamp(22px, 4vh, 34px);
  color: var(--lf-heading);
  font-size: clamp(1.8rem, 4.7vw, 3.65rem);
  font-weight: 560;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: balance;
}

.qz-smart-form .qsf7-input {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid var(--lf-border);
  border-radius: 16px;
  outline: 0;
  background: color-mix(in srgb, var(--lf-surface-soft) 92%, transparent);
  color: var(--lf-heading);
  font: inherit;
  font-size: clamp(1rem, 2vw, 1.12rem);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.qz-smart-form .qsf7-input::placeholder {
  color: var(--lf-muted);
}

.qz-smart-form .qsf7-input:focus {
  border-color: var(--lf-accent);
  background: var(--lf-surface-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lf-accent) 18%, transparent);
}

.qz-smart-form .qsf7-disclosure,
.qz-smart-form .qsf7-hint,
.qz-smart-form .qsf7-body {
  color: var(--lf-body);
  font-size: clamp(0.78rem, 1.45vw, 0.9rem);
  line-height: 1.5;
}

.qz-smart-form .qsf7-disclosure {
  margin: 14px 0 10px;
}

.qz-smart-form .qsf7-disclosure a {
  color: inherit;
  text-underline-offset: 3px;
}

.qz-smart-form .qsf7-hint {
  margin: 10px 0 0;
}

.qz-smart-form .qsf7-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: fit-content;
  margin-top: 8px;
  color: var(--lf-body);
  font-size: clamp(0.78rem, 1.45vw, 0.9rem);
  line-height: 1.45;
  cursor: pointer;
}

.qz-smart-form .qsf7-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--lf-accent);
}

.qz-smart-form .qsf7-actions,
.qz-smart-form .qsf7-booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(24px, 5vh, 42px);
}

.qz-smart-form .qsf7-actions-end {
  justify-content: flex-end;
}

.qz-smart-form .qsf7-primary {
  min-height: 48px;
  padding: 0 25px;
  border-radius: 999px;
  white-space: nowrap;
}

.qz-smart-form .qsf7-back,
.qz-smart-form .qsf7-text-button,
.qz-smart-form .qsf7-page-button {
  border: 0;
  background: transparent;
  color: var(--lf-body);
  font: inherit;
  cursor: pointer;
}

.qz-smart-form .qsf7-back,
.qz-smart-form .qsf7-text-button {
  min-height: 42px;
  padding: 6px 3px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.qz-smart-form .qsf7-back:hover,
.qz-smart-form .qsf7-text-button:hover {
  color: var(--lf-heading);
  text-decoration-color: currentColor;
}

.qz-smart-form button:focus-visible,
.qz-smart-form a:focus-visible,
.qz-smart-form input:focus-visible {
  outline: 2px solid var(--lf-accent);
  outline-offset: 3px;
}

.qz-smart-form button:disabled {
  opacity: 0.34;
  cursor: default;
}

.qz-smart-form .qsf7-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  color: var(--lf-body);
}

.qz-smart-form .qsf7-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--lf-border);
  border-top-color: var(--lf-accent);
  border-radius: 50%;
  animation: qsf7-spin 700ms linear infinite;
}

.qz-smart-form .lead-form.is-booking-step {
  width: min(100%, 860px);
  min-height: 0;
  padding: clamp(20px, 3vw, 30px);
}

.qz-smart-form .lead-form.is-booking-step .qsf7-progress {
  margin-bottom: 18px;
}

.qz-smart-form .lead-form.is-booking-step .qsf7-stage {
  min-height: 0;
  align-items: start;
}

.qz-smart-form .qsf7-booking-header,
.qz-smart-form .qsf7-scheduler-heading,
.qz-smart-form .qsf7-booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qz-smart-form .qsf7-booking-header {
  min-height: 46px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--lf-border);
}

.qz-smart-form .qsf7-booking-header strong {
  font-size: clamp(0.92rem, 1.7vw, 1.05rem);
  font-weight: 620;
}

.qz-smart-form .qsf7-timezone {
  position: relative;
  flex: 0 0 auto;
  color: var(--lf-body);
  font-size: 0.82rem;
  white-space: nowrap;
}

.qz-smart-form .qsf7-timezone-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 520;
  cursor: pointer;
}

.qz-smart-form .qsf7-timezone-trigger:hover,
.qz-smart-form .qsf7-timezone-trigger[aria-expanded="true"] {
  border-color: var(--lf-border);
  background: color-mix(in srgb, var(--lf-accent) 7%, transparent);
}

.qz-smart-form .qsf7-timezone-trigger svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.qz-smart-form .qsf7-timezone-chevron {
  color: var(--lf-muted);
  line-height: 1;
  transition: transform 160ms ease;
}

.qz-smart-form .qsf7-timezone-trigger[aria-expanded="true"] .qsf7-timezone-chevron {
  transform: rotate(180deg);
}

.qz-smart-form .qsf7-timezone-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  width: min(245px, calc(100vw - 56px));
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--lf-border);
  border-radius: 15px;
  background: var(--lf-surface);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
}

.qz-smart-form .qsf7-timezone-option {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lf-body);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.qz-smart-form .qsf7-timezone-option:hover,
.qz-smart-form .qsf7-timezone-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--lf-accent) 12%, transparent);
  color: var(--lf-heading);
}

.qz-smart-form .qsf7-timezone-option[aria-selected="true"] span:last-child {
  color: var(--lf-accent);
}

.qz-smart-form .qsf7-scheduler-heading {
  margin-top: 18px;
}

.qz-smart-form .qsf7-scheduler-title,
.qz-smart-form .qsf7-selected-date {
  margin: 0;
  color: var(--lf-heading);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 620;
  letter-spacing: -0.025em;
}

.qz-smart-form .qsf7-date-pager {
  display: flex;
  gap: 8px;
}

.qz-smart-form .qsf7-page-button {
  width: 46px;
  min-height: 46px;
  border: 1px solid var(--lf-border);
  border-radius: 50%;
  background: transparent;
  color: var(--lf-heading);
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.qz-smart-form .qsf7-dates {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.qz-smart-form .qsf7-date,
.qz-smart-form .qsf7-time {
  border: 1px solid var(--lf-border);
  background: color-mix(in srgb, var(--lf-surface-soft) 90%, transparent);
  color: var(--lf-body);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.qz-smart-form .qsf7-date {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 11px;
  text-align: left;
}

.qz-smart-form .qsf7-date::after {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lf-accent);
  content: "";
  opacity: 0.66;
}

.qz-smart-form .qsf7-date span,
.qz-smart-form .qsf7-time-label,
.qz-smart-form .qsf7-slot-group > p {
  color: var(--lf-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qz-smart-form .qsf7-date strong {
  margin-top: 4px;
  color: var(--lf-heading);
  font-size: 0.9rem;
  font-weight: 620;
}

.qz-smart-form .qsf7-date[aria-pressed="true"] {
  border-color: var(--lf-accent);
  background: var(--lf-accent);
  color: var(--lf-accent-ink);
}

.qz-smart-form .qsf7-date[aria-pressed="true"] span,
.qz-smart-form .qsf7-date[aria-pressed="true"] strong {
  color: var(--lf-accent-ink);
}

.qz-smart-form .qsf7-date[aria-pressed="true"]::after {
  background: var(--lf-accent-ink);
}

.qz-smart-form .qsf7-time-wrap {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--lf-border);
}

.qz-smart-form .qsf7-time-label {
  margin: 0 0 4px;
}

.qz-smart-form .qsf7-slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 72px;
}

.qz-smart-form .qsf7-slot-group {
  margin-top: 11px;
}

.qz-smart-form .qsf7-slot-group > p {
  margin: 0 0 7px;
}

.qz-smart-form .qsf7-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.qz-smart-form .qsf7-time {
  min-height: 46px;
  padding: 8px 7px;
  border-radius: 10px;
  color: var(--lf-heading);
  font-size: 0.88rem;
  white-space: nowrap;
}

.qz-smart-form .qsf7-page-button:not(:disabled):hover,
.qz-smart-form .qsf7-date:hover,
.qz-smart-form .qsf7-time:hover {
  border-color: color-mix(in srgb, var(--lf-accent) 76%, transparent);
  background-color: color-mix(in srgb, var(--lf-accent) 9%, var(--lf-surface-soft));
}

.qz-smart-form .qsf7-date[aria-pressed="true"]:hover {
  background: var(--lf-accent);
}

.qz-smart-form .qsf7-time[aria-pressed="true"],
.qz-smart-form .qsf7-time.is-booking {
  border-color: var(--lf-accent);
  background: color-mix(in srgb, var(--lf-accent) 16%, var(--lf-surface-soft));
  color: var(--lf-heading);
}

.qz-smart-form .qsf7-page-button:active,
.qz-smart-form .qsf7-date:active,
.qz-smart-form .qsf7-time:active {
  transform: scale(0.98);
}

.qz-smart-form .qsf7-booking-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--lf-border);
}

.qz-smart-form .qsf7-confirm {
  min-width: 148px;
}

.qz-smart-form .qsf7-schedule-later {
  display: block;
  margin: 2px 0 -8px auto;
}

.qz-smart-form .qsf7-error {
  margin: 16px 0 0;
  color: var(--lf-error);
  font-size: 0.88rem;
  line-height: 1.4;
}

.qz-smart-form .qsf7-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.qz-smart-form .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes qsf7-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes qsf7-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .qz-smart-form .lead-form {
    min-height: min(560px, calc(100svh - 76px));
    padding: 22px 18px;
    border-radius: 22px;
  }

  .qz-smart-form .qsf7-progress {
    margin-bottom: clamp(28px, 5vh, 46px);
  }

  .qz-smart-form .qsf7-stage {
    min-height: min(400px, calc(100svh - 190px));
  }

  .qz-smart-form .qsf7-question {
    font-size: clamp(1.72rem, 8.5vw, 2.65rem);
  }

  .qz-smart-form .qsf7-dates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qz-smart-form .lead-form.is-booking-step {
    padding: 18px;
  }

  .qz-smart-form .lead-form.is-booking-step .qsf7-stage {
    min-height: 0;
  }

  .qz-smart-form .qsf7-booking-header {
    padding-bottom: 11px;
  }

  .qz-smart-form .qsf7-timezone {
    max-width: 58%;
    font-size: 0.75rem;
  }

  .qz-smart-form .qsf7-timezone-trigger {
    max-width: 100%;
    padding-inline: 9px;
  }

  .qz-smart-form .qsf7-timezone-trigger svg {
    display: none;
  }

  .qz-smart-form .qsf7-timezone-trigger [data-visitor-timezone] {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .qz-smart-form .qsf7-scheduler-heading {
    margin-top: 13px;
  }

  .qz-smart-form .qsf7-page-button {
    width: 44px;
    min-height: 44px;
  }

  .qz-smart-form .qsf7-date {
    min-height: 60px;
    padding: 8px 10px;
  }

  .qz-smart-form .qsf7-time-wrap {
    margin-top: 13px;
    padding-top: 12px;
  }

  .qz-smart-form .qsf7-slot-list {
    display: block;
    min-height: 220px;
  }

  .qz-smart-form .qsf7-slot-group {
    margin-top: 9px;
  }

  .qz-smart-form .qsf7-times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .qz-smart-form .qsf7-time {
    min-height: 42px;
  }

  .qz-smart-form .qsf7-booking-footer {
    margin-top: 10px;
    padding-top: 10px;
  }

  .qz-smart-form .qsf7-schedule-later {
    min-height: 36px;
  }

  .qz-smart-form .qsf7-actions {
    margin-top: 24px;
  }
}

@media (max-width: 390px), (max-height: 680px) {
  .qz-smart-form .lead-form {
    min-height: 0;
    padding: 18px 16px;
  }

  .qz-smart-form .qsf7-progress {
    margin-bottom: 24px;
  }

  .qz-smart-form .qsf7-stage {
    min-height: 340px;
  }

  .qz-smart-form .lead-form.is-booking-step {
    padding: 14px;
  }

  .qz-smart-form .lead-form.is-booking-step .qsf7-progress {
    margin-bottom: 12px;
  }

  .qz-smart-form .lead-form.is-booking-step .qsf7-stage {
    min-height: 0;
  }

  .qz-smart-form .qsf7-booking-header {
    min-height: 40px;
  }

  .qz-smart-form .qsf7-date {
    min-height: 56px;
  }

  .qz-smart-form .qsf7-slot-list {
    min-height: 220px;
  }

  .qz-smart-form .qsf7-time {
    min-height: 40px;
  }

  .qz-smart-form .qsf7-question {
    margin-bottom: 18px;
  }

  .qz-smart-form .qsf7-disclosure {
    margin: 10px 0 7px;
  }

  .qz-smart-form .qsf7-actions {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qz-smart-form .qsf7-step,
  .qz-smart-form .qsf7-progress-bar,
  .qz-smart-form .qsf7-spinner {
    animation: none;
    transition: none;
  }
}
