/* Sparksmetrics booking widget. Works on white or dark backgrounds (the widget brings its own card). */
.smb {
  --smb-or: #FF4D00;
  --smb-ink: #1A1A1B;
  --smb-muted: #6b7280;
  --smb-line: #e9e9f0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--smb-ink);
  background: #fff;
  border: 1px solid var(--smb-line);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  max-width: 46rem;
  margin: 0 auto;
}
.smb * { box-sizing: border-box; }
.smb button { font: inherit; }
.smb-head { padding: 1.1rem 1.3rem .9rem; border-bottom: 1px solid var(--smb-line); }
.smb-title { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--smb-ink); }
.smb-meta { margin: .3rem 0 0; font-size: .85rem; color: var(--smb-muted); }
.smb-ico { color: var(--smb-or); font-size: .8rem; }
.smb-dot { margin: 0 .25rem; }
.smb-body { padding: 1.1rem 1.3rem 1.3rem; }

.smb-loading { display: flex; align-items: center; gap: .6rem; color: var(--smb-muted); font-size: .92rem; padding: 2.5rem 0; justify-content: center; }
.smb-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #f1d2c3; border-top-color: var(--smb-or); animation: smbSpin .8s linear infinite; }
@keyframes smbSpin { to { transform: rotate(360deg); } }

.smb-pick { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .smb-pick { grid-template-columns: 1.15fr 1fr; gap: 1.6rem; } }

.smb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.smb-month { font-weight: 800; font-size: .98rem; }
.smb-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--smb-line); background: #fff; color: var(--smb-ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.smb-nav:disabled { opacity: .35; cursor: default; }
.smb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.smb-dow { text-align: center; font-size: .7rem; font-weight: 700; color: #9ca3af; padding: .2rem 0 .35rem; text-transform: uppercase; letter-spacing: .04em; }
.smb-day { aspect-ratio: 1 / 1; border: 0; border-radius: 50%; background: none; color: #c4c4cc; font-size: .9rem; font-weight: 600; cursor: default; }
.smb-day.is-open { background: #fff3ed; color: var(--smb-or); cursor: pointer; font-weight: 800; }
.smb-day.is-open:hover { background: #ffe2d3; }
.smb-day.is-on { background: var(--smb-or); color: #fff; }
.smb-blank { display: block; }

.smb-times-head { margin: .3rem 0 .7rem; font-weight: 800; font-size: .95rem; }
.smb-times-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.smb-time { min-height: 44px; border: 1px solid #ffc4a8; border-radius: 12px; background: #fff; color: var(--smb-or); font-weight: 800; font-size: .95rem; cursor: pointer; transition: background .15s, color .15s; }
.smb-time:hover { background: var(--smb-or); color: #fff; border-color: var(--smb-or); }
.smb-tz { margin: 1rem 0 0; font-size: .78rem; color: #9ca3af; }

.smb-confirm, .smb-done { max-width: 30rem; margin: 0 auto; }
.smb-back { border: 0; background: none; color: var(--smb-muted); font-weight: 700; font-size: .88rem; padding: 0; cursor: pointer; }
.smb-when { margin: .6rem 0 1rem; font-size: 1rem; line-height: 1.5; }
.smb-form { display: grid; gap: .75rem; }
.smb-field { display: grid; gap: .3rem; font-size: .82rem; font-weight: 700; color: #374151; }
.smb-field input, .smb-field textarea { width: 100%; min-height: 48px; border: 1px solid #e5e7eb; border-radius: 12px; padding: .7rem .95rem; font: inherit; font-size: 1rem; font-weight: 400; color: var(--smb-ink); background: #fff; resize: vertical; }
.smb-field textarea { min-height: 84px; }
.smb-field input:focus, .smb-field textarea:focus { outline: none; border-color: var(--smb-or); box-shadow: 0 0 0 3px rgba(255, 77, 0, .15); }
.smb-btn { min-height: 52px; border: 0; border-radius: 999px; background: var(--smb-or); color: #fff; font-weight: 800; font-size: 1.02rem; cursor: pointer; padding: 0 1.6rem; }
.smb-btn:hover { filter: brightness(1.06); }
.smb-btn:disabled { opacity: .6; cursor: default; }
.smb-btn-ghost { background: #fff; color: var(--smb-or); border: 1px solid #ffc4a8; min-height: 44px; }
.smb-err { margin: 0; color: #dc2626; font-size: .88rem; }
.smb-small { margin: .2rem 0 0; font-size: .82rem; color: var(--smb-muted); line-height: 1.5; }
.smb-small a { color: var(--smb-or); font-weight: 700; }
.smb-error { text-align: center; padding: 1.5rem 0; }
.smb-error > p:first-child { margin: 0 0 1rem; font-weight: 700; }

.smb-done { text-align: center; padding: 1.2rem 0 .4rem; }
.smb-check { width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 50%; background: #ecfdf3; color: #16a34a; font-size: 1.7rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.smb-link { display: inline-block; margin-top: 1rem; color: var(--smb-or); font-weight: 700; font-size: .9rem; }

/* Modal */
.smb-lock, .smb-lock body { overflow: hidden; }
.smb-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 11, .6); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; overflow-y: auto; }
.smb-modal-panel { position: relative; width: 100%; max-width: 46rem; }
.smb-modal-close { position: absolute; top: -12px; right: -6px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #1A1A1B; font-size: 1.4rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); cursor: pointer; }
.smb-modal .smb { box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }

/* Inside a card or modal that already has its own frame */
.smb.smb-flat { border: 0; border-radius: 0; max-width: none; background: transparent; }
.smb-flat .smb-head { padding-left: .2rem; padding-right: .2rem; }
.smb-flat .smb-body { padding-left: .2rem; padding-right: .2rem; }
.smb-holder { width: 100%; }

/* Former Calendly hosts had fixed heights; the widget sizes itself */
#mss-calendly-inline, #qualify-calendly-inline { height: auto !important; min-height: 0 !important; border: 0 !important; overflow: visible !important; }
#mss-calendly-inline iframe, #qualify-calendly-inline iframe { display: none; }

/* Site modals (header "schedule a call", lead modals): on phones the whole panel scrolls,
   so the booking form and the copy below it are always reachable. */
@media (max-width: 767px) {
  .smb-mpanel { overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: block !important; }
  .smb-mpanel > div { display: block !important; min-height: 0 !important; }
  .smb-mpanel > div > div { display: block !important; flex: none !important; }
  .smb-mcol { min-height: 0 !important; }
  .smb-mcol > .flex-1 { overflow: visible !important; min-height: 0 !important; flex: none !important; }
  .smb-flat .smb-times-list { max-height: none; }
}
/* Phones: slightly tighter widget */
@media (max-width: 479px) {
  .smb-head { padding: 1rem 1rem .8rem; }
  .smb-body { padding: 1rem; }
  .smb-flat .smb-head, .smb-flat .smb-body { padding-left: .1rem; padding-right: .1rem; }
  .smb-day { font-size: .85rem; }
  .smb-times-list { max-height: none; }
}

/* Keep the widget top clear of sticky headers when it scrolls into view */
.smb, .smb-holder { scroll-margin-top: 84px; }

/* Schedule modal on phones: "Pick a time" bar (with close) first, then the title + USPs, then the calendar */
@media (max-width: 767px) {
  .smb-mpanel--copyfirst > div { display: flex !important; flex-direction: column; }
  .smb-mpanel--copyfirst .smb-mcol { display: contents !important; }
  .smb-mpanel--copyfirst .smb-mcol > :first-child { order: 1; }
  .smb-mpanel--copyfirst .smb-mcopy { order: 2; padding: 1.25rem 1.25rem .25rem !important; border-top: 0 !important; background: #f9fafb; }
  .smb-mpanel--copyfirst .smb-mcol > :not(:first-child) { order: 3; background: #f9fafb; }
  .smb-mpanel--copyfirst .smb-mcopy h2 { font-size: 1.25rem; margin-bottom: .35rem; }
  .smb-mpanel--copyfirst .smb-mcopy > p { margin-bottom: .9rem; }
  .smb-mpanel--copyfirst .smb-mcopy ul { margin-bottom: .2rem; }
  .smb-mpanel--copyfirst .smb-mcopy li { gap: .5rem; }
  .smb-mhide { display: none !important; }
  .smb-mpanel--copyfirst .smb-head { display: none; }
  .smb-mpanel--copyfirst .smb-body { padding-top: .6rem; }
}
