/* Global Styles */
.bookingpro-form {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #000000;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 5px 1px #949494;
}


/* Progress Steps */

.bookingpro-progress-steps {
    display: flex
;
    justify-content: space-between;
    margin-bottom: 45px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.bookingpro-progress-steps .step {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #aaa;
  position: relative;
}

.bookingpro-progress-steps .step.active {
  color: #0073aa;
}

.bookingpro-progress-steps .step.completed {
  color: #28a745;
}

.bookingpro-progress-steps .step::after {
  content: '';
  height: 3px;
  background: #ccc;
  display: block;
  margin: 6px auto 0;
  width: 60%;
  border-radius: 2px;
}

.bookingpro-progress-steps .step.active::after {
  background: #0073aa;
}

.bookingpro-progress-steps .step.completed::after {
  background: #28a745;
}

/* Form Steps */
.bookingpro-step {
  display: none;
  animation-duration: 0.4s;
}

.bookingpro-step.slide-in-right {
  animation-name: slideInRight;
}

.bookingpro-step.slide-in-left {
  animation-name: slideInLeft;
}

@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.bookingpro-step.slide-in-left h3 {
  text-align: center;
}

/* Form Group */
.form-group {
  margin-bottom: 6px;
}

.form-group label {
  font-weight: 550;
  display: flex;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #0073aa;
  outline: none;
}

/* Service Checkbox List - Updated (kept this as priority) */
.bookingpro-service-checkbox {
  display: flex;
  align-items: center;
  padding-block: 6px;
  padding-inline: 8px;
  margin-bottom: 16px;
  border-radius: 8px;
  background-color: #f6faff;
  border: 1px solid #d4e1f3;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  font-size: 15px;
  font-weight: 500;
  gap: 8px;
  line-height: 1.5;
}

.bookingpro-service-checkbox:hover {
  background-color: #e7f3ff;
  border-color: #aacbeb;
}

.bookingpro-service-checkbox input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #0073aa;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 0;
  margin-right: 1px;
  display: inline-block;
}

.bookingpro-service-checkbox input[type="checkbox"]:checked::after {
content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #007bff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bookingpro-service-checkbox span {
  display: inline-block;
  color: #333;
  vertical-align: middle;
  flex: 1;
  margin: 0;
  text-align: left;
  letter-spacing: 1px;
}

/* Preview List */
.bookingpro-preview-list {
  list-style: disc inside;
  padding-left: 0;
  margin-top: 10px;
}

.bookingpro-preview-list li {
  margin-bottom: 6px;
}

/* Buttons */
#bookingpro-back,
#bookingpro-next,
#bookingpro-submit {
  padding: 8px 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  margin-right: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  margin-bottom: 10px;
}

#bookingpro-back {
  background-color: #ccc;
  color: #333;
}

#bookingpro-back:hover {
  background-color: #bbb;
}

#bookingpro-next {
  background-color: #fff;
  color: #32373c;
  border: solid rgb(217 156 0);
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.33);
}

#bookingpro-next:hover {
    background-color: rgb(255 105 0 / 10%);
        box-shadow: none;
}

#bookingpro-submit {
  background-color: #28a745;
  color: white;
}

#bookingpro-submit:hover {
  background-color: #218838;
}

#bookingpro-back::after,
#bookingpro-next::after {
  display: none !important;
}

/* Success Overlay */
#bookingpro-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

.bookingpro-success-popup {
  background: #fff;
  padding: 20px 28px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
width: 85%;
}

.bookingpro-success-popup strong {
  display: block;
  font-size: 18px;
  margin-bottom: 15px;
  color: #28a745;
}

.bookingpro-success-popup p {
  color: #444;
  margin-top: 12px;
  font-size: 15px;
}

.bookingpro-close-button {
    background-color: #ffffff;
    color: #2c3338;
    padding: 6px 40px;
    border-radius: 4px;
    border: solid #28a745;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
    box-shadow: 1px 0px 4px 1px rgba(0, 0, 0, 0.33);
}

.bookingpro-close-button:hover {
  background-color: #28a74526;
  color: #000;

}

/* Loading Overlay */
#bookingpro-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
}

.bookingpro-loading-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #0073aa;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Progress Bar */
.bookingpro-progress-bar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: #f0f0f0;
  z-index: 9999;
  display: none;
}

.bookingpro-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #0073aa;
  transition: width 5s linear;
}

.bookingpro-inner-progress-wrapper {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 15px;
}

.bookingpro-inner-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #28a745;
  transition: width 5s linear;
}

/* Modern Select */
.bookingpro-modern-select {
  margin-bottom: 1.5rem;
}

.bookingpro-label {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}

.bookingpro-select-wrapper {
  position: relative;
}

.bookingpro-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.3s;
}

.bookingpro-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  outline: none;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .bookingpro-form {
    padding: 15px;
  }

  .bookingpro-progress-steps .step {
    font-size: 13px;
  }

  .bookingpro-service-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-block: 6px;
  }

  .bookingpro-service-checkbox input[type="checkbox"] {
    margin-right: 0;
  }

  .bookingpro-service-checkbox span {
    width: 100%;
  }

  #bookingpro-back,
  #bookingpro-next,
  #bookingpro-submit {
    width: 100%;
    margin-bottom: 10px;
  }
}

.bookingpro-service-list {
  display: grid;
  gap: 14px;
}

@media (max-width: 768px) {
  .form-group label {
    display: flex !important;
  }

  .bookingpro-service-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: #fff;
    margin-right: 1px;
    position: relative;
  }

  .bookingpro-service-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #007bff;
    border-width: 0px 2px 2px 0px;
    transform: rotate(45deg);
  
}


ul#bookingpro-preview {
    margin: 5px;
    text-align: left;
      font-size: 12px;
}




.form-group {
      margin-top: 32px;
}

p#bookingpro-weekday {
    margin-top: 12px;
    text-align: left;
    color: #0073aa;
    font-weight: 600;
}










/* Booking preview list */
ul#bookingpro-preview {
  list-style: decimal;
  padding: 0;
  margin-top: 15px;
  margin-left: 16px;
}

/* Preview items */
ul#bookingpro-preview li {
    padding: 2px 8px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 3px;
    background: #fff;
    font-size: 14px;
    color: #32373c;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;

}



.bookingpro-service-checkbox { display: flex; align-items: flex-start; gap: 8px; }
.bookingpro-service-content { display: flex; flex-direction: column; width: 100%; }
.bookingpro-service-note { align-self: flex-end; font-size: 12px; color: #666;     margin-top: 5px;
    margin-bottom: 5px; }


span.bookingpro-service-note {
    text-align: left !important;
    align-self: flex-start !important;
       margin-top: 5px;
    margin-bottom: 5px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
        letter-spacing: 1px; /* add spacing between letters */

}

/* ===== PROMO CODE FRONTEND ===== */
.bookingpro-promo-wrapper {
  margin-top: 15px;
  padding: 12px;
  background: #f9f9ff;
  border: 1px solid #ccd6e0;
  border-radius: 6px;
}

.bookingpro-promo-wrapper label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.bookingpro-promo-input {
  display: flex;
  gap: 6px;
}

.bookingpro-promo-input input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.bookingpro-promo-input button {
padding: 5px 40px;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    border: solid #139d2d;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.33);
}

.bookingpro-promo-input button:hover {
  background: #28a7452e;
   color: #139d2d;
       box-shadow: none;
}

.bookingpro-promo-message {
  margin-top: 6px;
  font-size: 13px;
  font-style: italic;
  color: #28a745; /* success color */
}

.bookingpro-promo-message.error {
  color: #d93025; /* error color */
}

/* Discounted price style inside preview list */
.bookingpro-preview-list .bookingpro-old-price {
  color: #999;
}

.bookingpro-preview-list .bookingpro-new-price {
  color: #28a745;
  font-weight: 600;
}


/* === ADDED: Keep discounted price inline; keep note on its own line === */
ul#bookingpro-preview br {
  display: none; /* hide the line breaks inserted by JS */
}

ul#bookingpro-preview li > div {
  display: inline;         /* discount block sits inline with service name */
  margin-left: 6px;        /* small gap before the discount block */
}

ul#bookingpro-preview li > div .bookingpro-old-price {
  text-decoration: line-through;
  color: #999;
  margin: 0 4px 0 6px;     /* spacing around old price */
}

ul#bookingpro-preview li > div .bookingpro-new-price {
  color: #28a745;
  font-weight: 600;
}

ul#bookingpro-preview li small.bookingpro-service-note {
  display: block;          /* ensure note appears on the next line */
  margin-top: 6px;
}
/* === END ADDED === */

.form-group h4 {
    font-size: 18px !important;
}