/* Progress Bar Styling */
.booking-progress-bar {
  margin-bottom: 2rem;
}

.booking-choice-actions,
.questionnaire-assignment-list {
    display: grid;
    gap: 0.75rem;
}

.booking-choice-actions {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.booking-experience-back,
.questionnaire-card {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.questionnaire-question {
    border: 0;
    padding: 0;
}

.questionnaire-options {
    display: flex;
    gap: 0.75rem;
}

.questionnaire-options-vertical {
    flex-direction: column;
}

.questionnaire-options-horizontal {
    flex-flow: row wrap;
}

.questionnaire-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
}

.questionnaire-option:has(input:checked) {
    border-color: #198754;
    background: #f2fbf6;
}

.questionnaire-slider-selected {
    min-height: 1.5rem;
    font-weight: 600;
}

.questionnaire-slider-labels {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.questionnaire-slider-label {
    flex: 1 1 0;
    color: #6c757d;
    font-size: 0.875rem;
    text-align: center;
}

.questionnaire-slider-label:first-child {
    text-align: left;
}

.questionnaire-slider-label:last-child {
    text-align: right;
}

.questionnaire-save-status {
    min-height: 1.5rem;
}

.questionnaire-receipt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    color: #fff;
    background: #198754;
    font-size: 2rem;
}

@media (max-width: 575.98px) {
    .questionnaire-header {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.75rem;
    }
}

.progress {
  height: 0.8rem;
  border-radius: 1rem;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: #7cc68d !important; /* Green progress bar */
}

.progress-step {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  text-align: center;
  width: 25%;
}

.progress-step.active {
  color: #7cc68d; /* Green active step */
  font-weight: 700;
}

.progress-step.completed {
  color: #7cc68d; /* Green completed steps */
}

/* Form styling */
.form-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.card {
  border: none;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
}

.card-header {
  font-weight: 500;
  background-color: rgba(33, 40, 50, 0.03);
}

/* Button Styling */
.btn-primary {
  background-color: #7cc68d !important; /* Green primary buttons */
  border-color: #7cc68d !important;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
  background-color: #619c6f !important; /* Darker green on hover */
  border-color: #619c6f !important;
}

.btn-outline-primary {
  color: #7cc68d !important; /* Green outline buttons */
  border-color: #7cc68d !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #7cc68d !important;
  color: white !important;
}

/* Success button - already green */
.btn-success {
  background-color: #7cc68d !important;
  border-color: #7cc68d !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: #619c6f !important;
  border-color: #619c6f !important;
}

/* Time Selection Styling */
#booking_time_select .form-check {
  margin-bottom: 0.5rem;
}

#booking_time_select .form-check-input {
  display: none;
}

#booking_time_select .form-check-label {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid #7cc68d; /* Green border */
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#booking_time_select .form-check-input:checked + .form-check-label {
  background-color: #7cc68d; /* Green background when selected */
  color: white;
}

/* Color overrides for Bootstrap components */
.text-primary {
  color: #7cc68d !important; /* Make text-primary green instead of blue */
}

.bg-primary {
  background-color: #7cc68d !important; /* Make bg-primary green instead of blue */
}

.border-primary {
  border-color: #7cc68d !important; /* Make border-primary green instead of blue */
}

.alert-primary {
  color: #fff;
  background-color: #7cc68d !important; /* Make alert-primary green instead of blue */
  border-color: #619c6f !important;
}

.spinner-border.text-primary {
  color: #7cc68d !important; /* Make spinner green */
}

/* Validation Styling */
.is-invalid {
  border-color: #dc3545 !important; /* Keep error states red for visibility */
  padding-right: calc(1.5em + 0.75rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Doctor and Appointment Type Selection */
#doctor-options-container .form-check-input:checked + .form-check-label,
#booking_type_select .form-check-input:checked + .form-check-label {
  color: #7cc68d; /* Green text for selected options */
  font-weight: 500;
}

/* Alerts that might still be blue */
.alert-info {
  color: #0c5460;
  background-color: #d1e7dd !important; /* Light green background */
  border-color: #7cc68d !important; /* Green border */
}

/* Override any remaining blue focus outlines */
.form-control:focus {
  border-color: #7cc68d !important;
  box-shadow: 0 0 0 0.25rem rgba(124, 198, 141, 0.25) !important;
}

/* Flatpickr calendar styling overrides */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
  background-color: #7cc68d !important;
  border-color: #7cc68d !important;
}

.flatpickr-day.today {
  border-color: #7cc68d !important;
}

/* Other possible color overrides */
a {
  color: #7cc68d !important;
}

a:hover {
  color: #619c6f !important;
}

/* Width helpers */
.w-70 {
  width: 70% !important;
}

/* Doctor and Appointment Type Selection as Buttons */
#doctor-options-container .form-check,
#booking_type_select .form-check {
    margin-bottom: 0.5rem;
}

/* Hide the default radio buttons */
#doctor-options-container .form-check-input,
#booking_type_select .form-check-input {
    display: none;
}

/* Style the labels as buttons */
#doctor-options-container .form-check-label,
#booking_type_select .form-check-label {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #7cc68d;
    border-radius: 0.35rem;
    background-color: white;
    color: #7cc68d;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

/* Hover state */
#doctor-options-container .form-check-label:hover,
#booking_type_select .form-check-label:hover {
    background-color: rgba(124, 198, 141, 0.1);
}

/* Selected state */
#doctor-options-container .form-check-input:checked + .form-check-label,
#booking_type_select .form-check-input:checked + .form-check-label {
    background-color: #7cc68d;
    color: white;
    font-weight: 500;
}

/* Add a subtle shadow for better depth */
#doctor-options-container .form-check-label,
#booking_type_select .form-check-label {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Selected state with shadow */
#doctor-options-container .form-check-input:checked + .form-check-label,
#booking_type_select .form-check-input:checked + .form-check-label {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Adjust spacing for doctor prefix */
#doctor-options-container .form-check-label .prefix {
    font-weight: normal;
    color: inherit;
}

/* Style time selection to match */
#booking_time_select .form-check-label {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid #7cc68d;
    border-radius: 0.35rem;
    background-color: white;
    color: #7cc68d;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#booking_time_select .form-check-label:hover {
    background-color: rgba(124, 198, 141, 0.1);
}

#booking_time_select .form-check-input:checked + .form-check-label {
    background-color: #7cc68d;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* Responsive adjustments */
@media (max-width: 767.98px) {
  #booking_time_select .form-check-label {
      width: 100%;
      margin-right: 0;
      text-align: center;
  }
}

/* Flow date picker styling */
#flow_date_picker {
  cursor: pointer;
}

#flow_date_picker:focus {
  border-color: #7cc68d !important;
  box-shadow: 0 0 0 0.25rem rgba(124, 198, 141, 0.25) !important;
}

.date-question-info {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.date-question-info .fa-info-circle {
  color: #fd7e14;
}
/* Booking UI polish */
#client-overview {
  color: #24323d;
  font-size: 16px;
  line-height: 1.55;
}

#client-overview .booking-progress-bar {
  margin-bottom: 1.5rem;
}

#client-overview .progress {
  height: 0.7rem;
  background-color: #edf3ee;
}

#client-overview .progress-bar {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#client-overview .progress-step {
  font-size: 0.74rem;
  font-weight: 600;
  color: #7c8793;
}

#client-overview .card {
  border: 1px solid rgba(51, 65, 77, 0.08);
  border-radius: 1rem;
  box-shadow: 0 14px 36px rgba(36, 50, 61, 0.08);
}

#client-overview .card.text-center {
  text-align: left !important;
}

#client-overview .card-body {
  padding: 1.5rem;
}

#client-overview .card-header {
  padding: 1rem 1.25rem;
}

#client-overview .card-title,
#client-overview h4,
#client-overview h5 {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.35rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

#client-overview .card-header h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}

#client-overview .text-muted {
  color: #5f6b76 !important;
}

#client-overview p {
  margin-bottom: 1rem;
}

#client-overview .form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #33414d;
  margin-bottom: 0.4rem;
}

#client-overview .form-control {
  min-height: 3rem;
  border-radius: 0.75rem;
  border-color: #d7e1d9;
  padding: 0.7rem 0.9rem;
  font-size: 0.97rem;
  line-height: 1.45;
  color: #24323d;
}

#client-overview .form-control.text-center {
  text-align: left !important;
}

#client-overview textarea.form-control {
  min-height: 7rem;
  resize: vertical;
}

#client-overview .btn {
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.78rem 1.1rem;
}

#client-overview .btn.w-100 {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

#client-overview .alert {
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.94rem;
  line-height: 1.45;
}

#client-overview .small.text-muted {
  font-size: 0.82rem !important;
}

#doctor-options-container .form-check-label,
#booking_type_select .form-check-label {
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 767.98px) {
  #client-overview {
    font-size: 15px;
  }

  #client-overview .card-body {
    padding: 1.15rem;
  }

  #client-overview .btn {
    width: 100%;
  }

  #client-overview .d-flex.justify-content-between {
    gap: 0.75rem;
    flex-direction: column;
  }
}

#client-overview .flow-question-title {
  font-size: clamp(0.98rem, 0.95rem + 0.18vw, 1.14rem);
  line-height: 1.48;
  font-weight: 500;
  letter-spacing: 0;
  max-width: 42rem;
  text-transform: none;
}

.booking-account-panel {
  background: #f7faf8;
  border: 1px solid #dce9df;
  border-radius: 0.85rem;
  padding: 1rem;
}

.booking-panel-heading h5,
.booking-family-header h5 {
  font-size: 1rem !important;
  margin-bottom: 0;
}

.booking-contact-tile {
  background: #fff;
  border: 1px solid #e1e8e3;
  border-radius: 0.55rem;
  height: 100%;
  padding: 0.85rem;
}

.booking-contact-label {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.booking-contact-field {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.booking-contact-field .form-control {
  background: #fff;
  border: 1px solid #d8e6dc;
  border-radius: 0.55rem !important;
  box-shadow: none;
  min-height: 2.95rem;
}

.booking-contact-field .form-control[readonly] {
  background: #fbfdfc;
  color: #1d2a33;
}

.booking-icon-action.booking-contact-action {
  border-color: #b9d9c0;
  color: #3f8b52;
  flex: 0 0 2.95rem;
  height: 2.95rem;
  width: 2.95rem;
}

.booking-icon-action.booking-contact-action:hover,
.booking-icon-action.booking-contact-action:focus {
  background: #eef7f1;
  border-color: #7cc68d;
  color: #2f7d45;
}

.verified-badge,
.unverified-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.32rem 0.5rem;
}

.verified-badge {
  background: #dff3e4;
  color: #2f7d45;
}

.unverified-badge {
  background: #fff3cd;
  color: #7a5a00;
}

.booking-verification-panel {
  border-top: 1px solid #edf2ee;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}

.booking-family-picker {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.booking-person-option {
  align-items: center;
  background: #fff;
  border: 1px solid #dce9df;
  border-radius: 0.55rem;
  display: flex;
  gap: 0.7rem;
  margin: 0;
  min-height: 4.25rem;
  padding: 0.7rem 0.8rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.booking-person-option:hover {
  background: #fbfdfb;
  border-color: #b9d6c1;
}

.booking-person-option-selected,
.booking-person-option:has(input:checked) {
  background: #fbfefc;
  border-color: #7cc68d;
  box-shadow: inset 3px 0 0 #7cc68d, 0 0 0 0.12rem rgba(124, 198, 141, 0.12);
}

.booking-person-label {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex: 1;
  gap: 0.7rem;
  margin: 0;
  min-width: 0;
}

.booking-person-label input {
  flex: 0 0 auto;
  margin: 0;
  margin-top: 0.08rem;
}

.booking-person-option strong,
.booking-person-option small {
  display: block;
}

.booking-person-content {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 0.75rem;
  justify-content: space-between;
  min-width: 0;
}

.booking-person-main {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  min-width: 0;
}

.booking-person-avatar {
  align-items: center;
  background: #eef7f1;
  border: 1px solid #d9eadf;
  border-radius: 50%;
  color: #3f8b52;
  display: inline-flex;
  flex: 0 0 2.2rem;
  height: 2.2rem;
  justify-content: center;
  width: 2.2rem;
}

.booking-person-text {
  min-width: 0;
}

.booking-person-text strong,
.booking-person-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-person-option small {
  color: #5f6b76;
  font-size: 0.8rem;
}

.booking-person-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.25rem;
}

.booking-icon-action {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  color: #4f5f6a;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  width: 2rem;
}

.booking-icon-action:hover,
.booking-icon-action:focus {
  background: #eef4f0;
  border-color: #d5e4da;
  color: #26333d;
  outline: none;
}

.booking-icon-action-danger {
  color: #a04545;
}

.booking-icon-action-danger:hover,
.booking-icon-action-danger:focus {
  background: #fff1f1;
  border-color: #f1caca;
  color: #842b2b;
}

@media (max-width: 767.98px) {
  .booking-account-panel {
    padding: 0.85rem;
  }

  .booking-family-header {
    align-items: stretch !important;
    flex-direction: column;
  }

  .booking-family-header .btn {
    width: 100%;
  }

  .booking-person-option {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .booking-person-label {
    align-items: flex-start;
  }

  .booking-person-content {
    align-items: flex-start;
  }

  .booking-person-main {
    align-items: flex-start;
  }

  .booking-person-actions {
    align-self: flex-start;
    justify-content: flex-start;
  }
}
