/* Online booking start form (T-493): the services Forms tab picker + rules,
   and the form shown first on the customer portal. */

.sf-section {
  margin-top: 8px;
}

.sf-select,
.sf-number {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.875rem;
  background: #fff;
}

.sf-select {
  min-width: 220px;
  max-width: 100%;
}

.sf-number {
  width: 90px;
}

.sf-status {
  margin-top: 6px;
}

.sf-rules {
  margin-top: 12px;
}

.sf-enable {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.sf-rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.sf-rule-list.sf-disabled {
  opacity: 0.5;
}

.sf-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
}

.sf-rule-label {
  flex: 0 0 200px;
  font-size: 0.875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.sf-rule-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.sf-option {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.sf-hint {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* Custom hours (T-471): the question that takes them, and up to how many */
.sf-hours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 0.875rem;
}

.sf-hours label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.sf-hours .sf-number {
  width: 70px;
}

.sf-hours .sf-hint {
  flex-basis: 100%;
}

/* Customer portal: laid out like the usual landing page ("Our Favorites" heading,
   white cards, full-width button) below the "Your next appointment" card. */
.portal-start-form {
  /* Padding, not margin: a margin would collapse into the card's own bottom margin. */
  padding-top: 16px;
  text-align: left;
}

/* Beats #upcoming-appointment-section's negative top margin, which pulls the card
   12px under the usual "Book Your Service" title. */
.portal-start-form-active #upcoming-appointment-section {
  margin-top: 6px;
}

.portal-start-form-title {
  margin: 0 0 8px;
}

@media (max-width: 767px) {
  .portal-start-form {
    padding-top: 26px;
  }
}

.portal-start-form-description {
  margin: 0 0 16px;
  color: #555;
}

.portal-start-form-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  box-shadow:
    rgba(14, 63, 126, 0.06) 0px 0px 0px 1px,
    rgba(42, 51, 70, 0.04) 0px 2px 2px -1px,
    rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px;
}

.portal-start-form-card .cf-form {
  margin: 0;
}

.portal-start-form .portal-start-form-continue {
  width: 100%;
  height: 48px;
  margin-top: 16px;
}

.portal-start-form-all {
  display: block;
  margin: 12px auto 0;
  padding: 4px 8px;
  border: none;
  background: none;
  color: inherit;
  text-decoration: underline;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Custom hours box next to the "Custom hours" answer */
.cf-form .cf-radio-option.psf-hours-option label {
  flex: 0 1 auto;
}

.psf-hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  font-size: 0.9rem;
}

.psf-hours-input {
  width: 72px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
