.cs-sched {
  --cs-blue: #2d4fa3;
  --cs-blue-dark: #1f3a80;
  --cs-navy: #14295b;
  --cs-blue-tint: #eef3fb;
  --cs-ink: #1f2937;
  --cs-muted: #5f6b7a;
  --cs-line: #dfe4eb;
  --cs-off: #eef0f3;
  --cs-full: #4b5563;
  --cs-red: #b42318;
  --cs-radius: 12px;
  --cs-header-offset: 120px;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--cs-ink);
  font-size: 1rem;
  line-height: 1.5;
}
.cs-sched [hidden] { display: none !important; }
.cs-sched *, .cs-sched *::before, .cs-sched *::after { box-sizing: border-box; }
.cs-sched, .cs-sched .cs-step, .cs-sched .cs-done, .cs-sched #cs-contact-heading, .cs-sched .cs-times { scroll-margin-top: var(--cs-header-offset); }

.cs-sched .cs-card {
  padding: 40px 48px 44px;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 41, 91, .08);
}

.cs-sched .cs-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; padding: 0; counter-reset: cs-step; }
.cs-sched .cs-progress > div { margin: 0; padding: 0; list-style: none; counter-increment: cs-step; }
.cs-sched .cs-progress__label { display: block; color: var(--cs-muted); font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-sched .cs-progress__label::before { content: counter(cs-step) ". "; }
.cs-sched .cs-progress > div::after { content: ""; display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: #d5dae1; transition: background-color .2s ease; }
.cs-sched .cs-progress > .is-done::after, .cs-sched .cs-progress > .is-current::after { background: var(--cs-blue); }
.cs-sched .cs-progress > .is-done .cs-progress__label, .cs-sched .cs-progress > .is-current .cs-progress__label { color: var(--cs-navy); }

.cs-sched .cs-step {
  display: flex; align-items: center; gap: 12px;
  margin: 40px 0 16px; padding: 0;
  color: var(--cs-navy); font-size: 1.35rem !important; line-height: 1.25 !important; letter-spacing: 0; text-transform: none;
}
.cs-sched .cs-flow > .cs-step:first-child { margin-top: 32px; }
.cs-sched .cs-step__num {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%; background: var(--cs-blue); color: #fff; font-size: .95rem; font-weight: 700;
}

.cs-sched button { font-family: inherit; }
.cs-sched .cs-btn {
  display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 12px 24px;
  border: 2px solid var(--cs-blue) !important; border-radius: 999px !important; background: #fff; color: var(--cs-blue);
  font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cs-sched .cs-btn:hover, .cs-sched .cs-btn:focus-visible, .cs-sched .cs-btn.is-active { background: var(--cs-blue); color: #fff; }
.cs-sched .cs-btn--primary { background: var(--cs-blue); color: #fff; min-width: 200px; }
.cs-sched .cs-btn--primary:hover { background: var(--cs-blue-dark); border-color: var(--cs-blue-dark) !important; }
.cs-sched .cs-btn:disabled { opacity: .6; cursor: wait; }
.cs-sched .cs-resources { display: flex; flex-wrap: wrap; gap: 12px; }
.cs-sched .cs-resource { min-width: 180px; }

.cs-sched .cs-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cs-sched .cs-service {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; margin: 0; padding: 16px 18px;
  border: 1px solid var(--cs-line); border-radius: var(--cs-radius); background: #fff; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.cs-sched .cs-service:hover { border-color: #b9c4d6; }
.cs-sched .cs-service input { margin: 4px 0 0; accent-color: var(--cs-blue); }
.cs-sched .cs-service__name { color: var(--cs-navy); font-weight: 600; }
.cs-sched .cs-service__desc { grid-column: 2; margin-top: 2px; color: var(--cs-muted); font-size: .92rem; line-height: 1.45; }
.cs-sched .cs-service:has(input:checked) { border-color: var(--cs-blue); background: var(--cs-blue-tint); box-shadow: inset 0 0 0 1px var(--cs-blue); }

.cs-sched .cs-next { display: none; margin: 0 0 24px; padding: 18px 20px 20px; border-radius: var(--cs-radius); background: var(--cs-blue-tint); }
.cs-sched .cs-next.is-visible { display: block; }
.cs-sched .cs-next.is-empty { background: #f4f5f7; }
.cs-sched .cs-next__label { display: block; margin-bottom: 12px; color: var(--cs-blue); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cs-sched .cs-next__slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.cs-sched .cs-next .cs-next__slot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding: 12px 16px;
  border: 1.5px solid var(--cs-blue) !important; border-radius: 10px !important; background: #fff; color: var(--cs-blue);
  font: inherit; line-height: 1.25; text-align: left; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cs-sched .cs-next .cs-next__slot:hover, .cs-sched .cs-next .cs-next__slot:focus-visible, .cs-sched .cs-next .cs-next__slot.is-selected { background: var(--cs-blue); color: #fff; }
.cs-sched .cs-next__day { font-weight: 700; }
.cs-sched .cs-next__time { font-size: .92rem; }

.cs-sched .cs-calendar { margin: 0; }
.cs-sched .fc { font-size: .95rem; line-height: 1.3; }

.cs-sched .fc .fc-daygrid-day-events { min-height: 0 !important; margin: 0 !important; }
.cs-sched .fc .fc-daygrid-day-top { line-height: 1.2; }
.cs-sched .fc .fc-col-header-cell { text-align: center !important; }
.cs-sched .fc table { margin: 0 !important; border-collapse: collapse !important; border-spacing: 0 !important; }
.cs-sched .fc .fc-scrollgrid { border-radius: var(--cs-radius); overflow: hidden; border-color: var(--cs-line); }
.cs-sched .fc .fc-scrollgrid th, .cs-sched .fc .fc-scrollgrid td { padding: 0 !important; border-color: var(--cs-line); }
.cs-sched .fc .fc-scrollgrid-section > td { border-width: 0; }
.cs-sched .fc .fc-toolbar.fc-header-toolbar { margin-bottom: 14px; }
.cs-sched .fc .fc-toolbar-title { color: var(--cs-navy); font-size: 1.25rem !important; font-weight: 700; }
.cs-sched .fc .fc-button {
  width: 40px; height: 40px; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
  background: var(--cs-blue-tint) !important; color: var(--cs-blue) !important; box-shadow: none !important;
}
.cs-sched .fc .fc-button:hover { background: var(--cs-blue) !important; color: #fff !important; }
.cs-sched .fc .fc-col-header-cell { background: var(--cs-navy); }
.cs-sched .fc .fc-col-header-cell-cushion { display: inline-block; padding: 10px 4px; color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.2 !important; text-decoration: none; }
.cs-sched .fc a.fc-daygrid-day-number { padding: 6px 8px; color: inherit; font-size: .9rem; text-decoration: none; }
.cs-sched .fc .fc-daygrid-day-frame { min-height: 72px; }
.cs-sched .fc-day-other { visibility: hidden; }
.cs-sched .fc .fc-day.cs-day-off { background: var(--cs-off) !important; color: #a3a9b2; pointer-events: none; cursor: not-allowed; }
.cs-sched .fc .fc-day.cs-weekend { background-image: repeating-linear-gradient(45deg, #e8eaee, #e8eaee 5px, #fff 5px, #fff 10px) !important; }
.cs-sched .fc .fc-day.cs-today { box-shadow: inset 0 0 0 2px #f2c94c; }
.cs-sched .fc .fc-day.cs-has-slots { background: #fff; cursor: pointer; }
.cs-sched .fc .fc-day.cs-has-slots:hover { background: var(--cs-blue-tint); }
.cs-sched .fc .fc-day.cs-has-slots .fc-daygrid-day-number { color: var(--cs-blue); font-weight: 700; }
.cs-sched .fc .fc-day.cs-has-slots .fc-daygrid-day-frame::after { content: ""; display: block; width: 6px; height: 6px; margin: 0 auto 8px; border-radius: 50%; background: var(--cs-blue); }
.cs-sched .fc .fc-day.cs-full .fc-daygrid-day-frame { display: flex; flex-direction: column; }
.cs-sched .fc .fc-day.cs-full .fc-daygrid-day-frame::after {
  content: "Full"; display: block; align-self: center; margin: auto 0 8px; padding: 2px 8px 2px 21px; border-radius: 999px;
  background: var(--cs-full) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M9 15.5l2 2 4-4'/%3E%3C/svg%3E") no-repeat 7px center / 10px 10px;
  color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase;
}
.cs-sched .fc .fc-highlight { background: transparent !important; }

/* GC - highlight the whole day cell on tap */
.cs-sched .fc .fc-daygrid-day:has(.fc-highlight) { background: rgba(45, 79, 163, .14) !important; box-shadow: inset 0 0 0 2px var(--cs-blue); }

.cs-sched .cs-times { margin: 20px 0 0; }
.cs-sched .cs-times__day { margin: 0 0 10px; color: var(--cs-navy); font-weight: 600; }
.cs-sched .cs-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cs-sched .cs-times .cs-time {
  margin: 0; padding: 12px 14px; border: 1.5px solid var(--cs-blue) !important; border-radius: 10px !important; background: #fff;
  color: var(--cs-blue); font: inherit; font-weight: 600; text-align: center; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer;
}
.cs-sched .cs-times .cs-time:hover, .cs-sched .cs-times .cs-time.is-active { background: var(--cs-blue); color: #fff; }
.cs-sched .cs-muted { margin: 0; color: var(--cs-muted); }

.cs-sched .cs-form { margin: 0; padding: 0; background: none; box-shadow: none; }
.cs-sched .cs-confirm { margin: 0 0 20px; padding: 14px 18px; border-left: 4px solid var(--cs-blue); border-radius: 0 var(--cs-radius) var(--cs-radius) 0; background: var(--cs-blue-tint); color: var(--cs-ink); }
.cs-sched .cs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.cs-sched .cs-span2, .cs-sched .cs-span3 { grid-column: 1 / -1; }
.cs-sched .cs-grid label { display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--cs-navy); font-size: .92rem; font-weight: 600; }
.cs-sched .cs-grid input, .cs-sched .cs-grid select, .cs-sched .cs-grid textarea {
  width: 100%; min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid #c9d0da !important; border-radius: 10px !important;
  background: #fff !important; color: var(--cs-ink); font: inherit; font-size: 1rem; font-weight: 400; box-shadow: none;
}
.cs-sched .cs-grid textarea { min-height: 96px; resize: vertical; }
.cs-sched .cs-grid input:focus, .cs-sched .cs-grid select:focus, .cs-sched .cs-grid textarea:focus { outline: 2px solid rgba(45, 79, 163, .35); outline-offset: 1px; border-color: var(--cs-blue) !important; }
.cs-sched .cs-grid .is-invalid { border-color: var(--cs-red) !important; }
.cs-sched .cs-field-error, .cs-sched .cs-error { color: var(--cs-red); font-size: .88rem; font-weight: 400; }
.cs-sched .cs-error { margin: 12px 0 0; }
.cs-sched .cs-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cs-sched .cs-disclaimer { margin: 20px 0 0; color: var(--cs-muted); font-size: .88rem; }
.cs-sched .cs-actions { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--cs-line); }

.cs-sched .cs-done { margin: 0; padding: 8px 0 0; }
.cs-sched .cs-done__title { margin: 24px 0 18px; color: var(--cs-navy); font-size: 1.6rem !important; line-height: 1.25 !important; }
.cs-sched .cs-done__summary { padding: 14px 18px; border-left: 4px solid var(--cs-blue); border-radius: 0 var(--cs-radius) var(--cs-radius) 0; background: var(--cs-blue-tint); }
.cs-sched .cs-done__text { margin: 22px 0; font-size: 1.08rem; }
.cs-sched .cs-done__note { padding: 16px 22px; border-radius: var(--cs-radius); background: var(--cs-navy); color: #fff; font-size: .95rem; text-align: center; }

@media (max-width: 900px) {
  .cs-sched .cs-card { padding: 32px 28px 36px; }
  .cs-sched .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* phones */
@media (max-width: 600px) {

  .wpb_row:has(.cs-sched) { margin-left: 0 !important; margin-right: 0 !important; }
  .wpb_row:has(.cs-sched) .cs-sched { margin-left: 8px; margin-right: 8px; }
  .cs-sched { --cs-header-offset: 100px; }
  .cs-sched .cs-card { padding: 22px 16px 26px; border-radius: 12px; box-shadow: 0 4px 16px rgba(20, 41, 91, .08); }
  .cs-sched .cs-progress { gap: 4px; }
  .cs-sched .cs-progress__label { font-size: .7rem; }
  .cs-sched .cs-progress__label::before { content: counter(cs-step) " "; }
  .cs-sched .cs-step { margin: 30px 0 12px; font-size: 1.15rem !important; gap: 10px; }
  .cs-sched .cs-flow > .cs-step:first-child { margin-top: 24px; }
  .cs-sched .cs-step__num { width: 28px; height: 28px; font-size: .85rem; }
  .cs-sched .cs-resources { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cs-sched .cs-resource { min-width: 0; padding: 11px 10px; font-size: .95rem; }
  .cs-sched .cs-service { padding: 12px 14px; }
  .cs-sched .cs-next { padding: 14px; }
  .cs-sched .cs-next__slots { grid-template-columns: 1fr; gap: 8px; }
  .cs-sched .cs-next .cs-next__slot { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 14px; }
  .cs-sched .cs-next__time { font-size: .88rem; }
  .cs-sched .fc { font-size: .85rem; }
  .cs-sched .fc .fc-toolbar-title { font-size: 1.05rem !important; }
  .cs-sched .fc .fc-button { width: 34px; height: 34px; }
  .cs-sched .fc .fc-col-header-cell-cushion { padding: 8px 0; font-size: .72rem; }
  .cs-sched .fc a.fc-daygrid-day-number { padding: 4px 5px; font-size: .8rem; }
  .cs-sched .fc .fc-daygrid-day-frame { min-height: 48px; }
  .cs-sched .fc .fc-day.cs-full .fc-daygrid-day-frame::after { content: ""; width: 20px; height: 16px; margin-bottom: 6px; padding: 0; background-position: center; background-size: 10px 10px; }
  .cs-sched .fc .fc-day.cs-has-slots .fc-daygrid-day-frame::after { margin-bottom: 6px; }
  .cs-sched .cs-times__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cs-sched .cs-times .cs-time { padding: 10px 6px; font-size: .88rem; }
  .cs-sched .cs-grid { grid-template-columns: 1fr; gap: 14px; }
  .cs-sched .cs-actions { justify-content: stretch; }
  .cs-sched .cs-actions .cs-btn { width: 100%; }
  .cs-sched .cs-done__title { font-size: 1.3rem !important; }
}
