/* Booking modal (HubSpot meeting embed) + lead-form extras. */

.px-modal { position: fixed; inset: 0; z-index: 2147483600; display: none; }
.px-modal.is-open { display: block; }
.px-modal__backdrop { position: absolute; inset: 0; background: rgba(7,21,45,0.58); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.px-modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(680px, 94vw); max-height: 90vh; background: var(--surface-card);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; overflow: hidden;
}
.px-modal.is-open .px-modal__panel { animation: pxModalIn 0.28s var(--ease-out); }
@keyframes pxModalIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(0.97); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .px-modal.is-open .px-modal__panel { animation: none; } }

.px-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border-subtle); flex: none; }
.px-modal__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--text-strong); letter-spacing: -0.01em; }
.px-modal__sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; }
.px-modal__close { width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-body); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.px-modal__close:hover { background: var(--brand-subtle); border-color: var(--brand); color: var(--text-brand); }
.px-modal__close i { width: 20px; height: 20px; }
.px-modal__body { padding: 12px 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; min-height: 0; }
.meetings-iframe-container { width: 100%; min-height: 560px; }
.meetings-iframe-container iframe { width: 100% !important; min-width: 0 !important; border: 0; }

@media (max-width: 560px) {
  .px-modal__panel { width: 100vw; height: 100dvh; max-height: none; top: 0; left: 0; transform: none; border-radius: 0; }
  .px-modal.is-open .px-modal__panel { animation: pxSheetIn 0.28s var(--ease-out); }
  @keyframes pxSheetIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .px-modal__body { padding: 10px 12px 16px; }
  .meetings-iframe-container { min-height: 520px; }
}

/* dual CTA buttons in the final-CTA head */
.px-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-10); }
@media (max-width: 560px) {
  .px-cta__actions { flex-direction: column; }
  .px-cta__actions button { width: 100%; justify-content: center; }
}

/* lead-form textarea field (matches DS Input look) */
.px-field { display: flex; flex-direction: column; gap: 7px; }
.px-field__label { font-size: var(--text-sm); font-weight: 600; color: var(--text-strong); }
.px-field__label .opt { color: var(--text-subtle); font-weight: 500; }
.px-field__textarea {
  font-family: var(--font-body); font-size: var(--text-base); color: var(--text-strong);
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 12px 14px; resize: vertical; min-height: 84px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.px-field__textarea::placeholder { color: var(--text-subtle); }
.px-field__textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--orange-100); }

/* ====================================================================
   Stacked CTA layout — dark info block (full width) over a centred,
   standalone light form card. Replaces the old side-by-side grid so the
   HubSpot form gets a comfortable, wide container instead of a narrow column.
   ==================================================================== */

/* dark info block is now a single, full-width, centred column */
.px-cta__panel--solo { display: block; }
.px-cta__head--center {
  max-width: 760px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.px-cta__head--center p { text-wrap: pretty; }

/* benefits as a balanced 2×2 grid, centred under the copy */
.px-cta__list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-7);
  margin: var(--space-7) auto 0;
  text-align: left; max-width: 660px; width: 100%;
}
.px-cta__actions--center { justify-content: center; margin-top: var(--space-8); }
.px-cta__trustline--center { justify-content: center; }

/* standalone form card below — white, elevated, wide + centred */
.px-form--standalone {
  background: var(--surface-card);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  max-width: 960px;
  margin: clamp(var(--space-6), 3vw, var(--space-10)) auto 0;
  padding: clamp(var(--space-7), 4vw, var(--space-12));
  text-align: center;
}
.px-form--standalone .px-form__title { font-size: var(--text-2xl); }
.px-form--standalone .px-form__sub { font-size: var(--text-base); max-width: 540px; margin-left: auto; margin-right: auto; }
.px-form--standalone .px-hsform { margin-top: var(--space-7); text-align: left; }
.px-form--standalone .px-form__success { text-align: center; }

@media (max-width: 980px) {
  .px-cta__list--grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* on small screens HubSpot fields stack (handled in the shadow CSS) */
