#body_wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#body_wrap.admin-bar {
  min-height: calc(100vh - 32px);
}

#lp-content {
  flex-grow: 1;
  width: 100%;
}
@media (max-width: 768px) {
  #lp-content {
    padding: 0 1rem;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 782px) {
  #body_wrap.admin-bar {
    min-height: calc(100vh - 46px);
  }
}
.sbf {
  min-height: 50vh;
}
.sbf__inner {
  padding-bottom: 150px;
}
.sbf__button {
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: center;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
}
.sbf__button.selected {
  background-color: #666;
  color: white;
}
.sbf ul {
  padding: 0;
  margin: 0;
}
.sbf li {
  margin: 0;
}

.sbf-step__options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sbf-fixed {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  max-height: 90vh;
  overflow-y: auto;
  width: 20rem;
}

.sbf-step-targets {
  margin-bottom: 2rem;
}
.sbf-step-targets__list {
  display: flex;
  list-style: none;
  padding: 0;
}
.sbf-step-targets__item {
  flex: 1;
  padding: 0.5rem 1rem;
  text-align: center;
  cursor: pointer;
  border-right: 1px solid #ccc;
}
.sbf-step-targets__item.selected {
  background-color: #f5f5f5;
  border-bottom: 2px solid #666;
}
.sbf-step-targets__item:hover {
  background-color: #f5f5f5;
}

.sbf-step-menu-category {
  margin-bottom: 3rem;
}
.sbf-step-menu-category__title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #666;
}
.sbf-step-menu-category__description {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.sbf-step-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .sbf-step-menu-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.sbf-step-menu-item {
  position: relative;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  padding: 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
}
.sbf-step-menu-item input[type=radio] {
  appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}
.sbf-step-menu-item__title {
  font-size: 1rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}
.sbf-step-menu-item__meta {
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.sbf-step-menu-item__description {
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-line;
}
.sbf-step-menu-item__check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ccc;
  border-radius: 0.125rem;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.sbf-step-menu-item__check svg {
  stroke: transparent;
  transition: stroke 0.3s ease;
}
.sbf-step-menu-item.selected {
  background-color: #666;
  color: white;
  border-color: #666;
}
.sbf-step-menu-item.selected .sbf-step-menu-item__check {
  border-color: white;
  background-color: #666;
}
.sbf-step-menu-item.selected .sbf-step-menu-item__check svg {
  stroke: white;
}

#sbf-calendar {
  --fc-button-bg-color: #f8f8f8;
  --fc-button-text-color: #666;
  --fc-button-border-color: #ccc;
  --fc-button-hover-bg-color: #e0e0e0;
  --fc-button-hover-text-color: #333;
  --fc-button-hover-border-color: #ccc;
  --fc-button-active-bg-color: #e0e0e0;
  --fc-button-active-border-color: #ccc;
  margin-bottom: 3rem;
}
#sbf-calendar .fc-header-toolbar {
  margin-bottom: 1rem;
  align-items: flex-end;
  padding: 0 0.5rem;
}
#sbf-calendar .fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #666;
  background-color: transparent;
  border: none;
  padding: 0;
  line-height: 1;
}
#sbf-calendar .fc-toolbar-title::before, #sbf-calendar .fc-toolbar-title:after {
  content: none;
}
#sbf-calendar .fc-button {
  display: flex;
  align-items: center;
  justify-content: center;
}
#sbf-calendar .fc-button:focus {
  box-shadow: none;
}
#sbf-calendar .fc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
#sbf-calendar .fc-day-disabled {
  background-color: #f8f8f8;
}
#sbf-calendar .fc-day-disabled .fc-daygrid-day-number {
  color: #ccc;
}
#sbf-calendar .fc-day-past {
  background-color: #f8f8f8;
}
#sbf-calendar .fc-day-past .fc-daygrid-day-number {
  color: #ccc;
}
#sbf-calendar .fc-col-header-cell-cushion {
  color: #666;
}
#sbf-calendar .fc-col-header-cell {
  background-color: #f8f8f8;
}
#sbf-calendar td,
#sbf-calendar th {
  padding: 0;
}
#sbf-calendar .fc-daygrid-day-number {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  line-height: 1.5;
  color: #666;
}
#sbf-calendar .fc-daygrid-day-events {
  display: none;
}
#sbf-calendar .fc-day-sun:not(.fc-day-disabled, .fc-day-past) .fc-daygrid-day-number {
  color: #d3381c;
}
#sbf-calendar .fc-day-sun:not(.fc-day-disabled, .fc-day-past) .fc-col-header-cell-cushion {
  color: #d3381c;
}
#sbf-calendar .fc-day-sat:not(.fc-day-disabled, .fc-day-past) .fc-daygrid-day-number {
  color: #38499e;
}
#sbf-calendar .fc-day-sat:not(.fc-day-disabled, .fc-day-past) .fc-col-header-cell-cushion {
  color: #38499e;
}
#sbf-calendar .fc-day:not(.fc-day-disabled, .fc-col-header-cell, .fc-day-past) {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
#sbf-calendar .fc-day:not(.fc-day-disabled, .fc-col-header-cell, .fc-day-past):hover {
  background-color: #ffeed7;
}

.sbf-step-calendar-choise {
  overflow-x: auto;
}

.sbf-step-calendar-choise-list {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.sbf-step-calendar-choise-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100px;
  height: 200px;
  flex: 0 0 100px;
}
@media (max-width: 768px) {
  .sbf-step-calendar-choise-item {
    flex: 0 0 80px;
    width: 80px;
  }
}
.sbf-step-calendar-choise-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.125rem;
}
.sbf-step-calendar-choise-item__remove {
  background-color: transparent;
  padding: 0;
  margin: 0;
  border: none;
  color: #666;
  cursor: pointer;
}
.sbf-step-calendar-choise-item__date {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
  background-color: transparent;
  display: block;
}
@media (max-width: 768px) {
  .sbf-step-calendar-choise-item__date {
    font-size: 1rem;
  }
}
.sbf-step-calendar-choise-item__times {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  overflow-y: auto;
  flex-grow: 1;
  border: 1px solid #ccc;
}
.sbf-step-calendar-choise-item__time {
  font-size: 1rem;
  background-color: transparent;
  color: #666;
  border: none;
  padding: 0.25rem 0.5rem;
  margin: 0;
  text-align: right;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.sbf-step-calendar-choise-item__time:hover {
  background-color: #f0f0f0;
}
.sbf-step-calendar-choise-item__time.selected {
  background-color: #666;
  color: white;
}

.stepper-wrapper {
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  position: relative;
  margin-bottom: 1em;
}
@media (max-width: 768px) {
  .stepper {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem 0;
  }
}
.stepper > *:last-child {
  border-right: 1px solid #ccc;
}
@media (max-width: 768px) {
  .stepper > *:nth-child(3n+1) {
    border-right: 1px solid #ccc;
  }
}
.stepper__item {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  background: #f0f0f0;
  padding: 0.5rem 0.5rem;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
}
.stepper__item.active {
  background-color: #666;
}
.stepper__item.active .stepper__text {
  color: white;
  font-weight: bold;
}
.stepper__item.completed {
  background-color: #666;
}
.stepper__item.completed .stepper__text {
  color: white;
}
.stepper__text {
  color: #ddd;
}

.step-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

.sbf-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sbf-contact-form__label {
  font-weight: bold;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  line-height: 1;
  display: block;
}
.sbf-contact-form input[type=text],
.sbf-contact-form input[type=email],
.sbf-contact-form input[type=tel],
.sbf-contact-form input[type=number] {
  width: 100%;
  padding: 0.5rem 1rem;
}
.sbf-contact-form input[type=text]:focus:not(.wpcf7-not-valid),
.sbf-contact-form input[type=email]:focus:not(.wpcf7-not-valid),
.sbf-contact-form input[type=tel]:focus:not(.wpcf7-not-valid),
.sbf-contact-form input[type=number]:focus:not(.wpcf7-not-valid) {
  outline: 2px solid #999;
}
.sbf-contact-form .wpcf7-not-valid-tip {
  display: block;
  line-height: 2;
  font-weight: bold;
  color: #d3381c;
}
.sbf-contact-form .wpcf7-not-valid {
  border-color: #d3381c;
}
.sbf-contact-form .wpcf7-not-valid:focus {
  outline: 2px solid #d3381c;
}
.sbf-contact-form__divider {
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .sbf-contact-form__divider {
    margin: 1rem 0;
  }
}

.sbf-contact-form-confirm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sbf-content {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.sbf-action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.sbf-action-buttons__button {
  flex: 1;
}
.sbf-action-buttons__button--next {
  background-color: #666;
  color: white;
}
.sbf-action-buttons__button.disabled {
  background-color: #ccc;
  color: #999;
  cursor: not-allowed;
}
.sbf-action-buttons__button:has(.wpcf7-submit) {
  display: flex;
  align-items: center;
  position: relative;
}
.sbf-action-buttons__button .wpcf7-submit {
  background-color: #666;
  color: white;
  border: none;
  width: 100%;
  text-align: center;
  font-weight: bold;
}
.sbf-action-buttons__button .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(-50%, -50%);
}

.sbf-fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ccc;
  padding: 1rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.sbf-fixed-footer__title {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.sbf-fixed-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  overflow: hidden;
}
@media (max-width: 768px) {
  .sbf-fixed-footer__menu {
    display: none;
  }
}
.sbf-fixed-footer__choice {
  display: none;
}
@media (max-width: 768px) {
  .sbf-fixed-footer__choice {
    display: block;
  }
}
.sbf-fixed-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
@media (max-width: 768px) {
  .sbf-fixed-footer__inner {
    align-items: center;
  }
}
.sbf-fixed-footer__list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  width: 100%;
}
.sbf-fixed-footer__item {
  display: flex;
  flex-direction: column;
  border-radius: 3px;
  padding: 0.5rem;
  background-color: #666;
  color: white;
  width: 100px;
  flex: 0 0 100px;
}
.sbf-fixed-footer__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 0.875rem;
}
.sbf-fixed-footer__total {
  text-align: right;
  font-weight: bold;
  align-self: flex-end;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sbf-fixed-footer__total {
    align-self: center;
  }
}