/* === VARIABLES === */
:root {
  --primary-blue: #4a90e8;
  --darker-blue: #357abd;
  --primary-blue-rgb: 74, 144, 232; /* RGB version of --primary-blue */
  --primary-blue-lighter: #eaf4fe; /* For slot button backgrounds, spinner */
  --primary-blue-focus-ring: #a3bffa; /* For selected slot button shadow */
  --text-dark: #2d3748;
  --text-dark-rgb: 45, 55, 72; /* RGB version of --text-dark */
  --text-medium: #4a5568;
  --text-light: #718096;
  --text-disabled: #a0adb8;
  --bg-white: #ffffff;
  --bg-light-gray: #f7fafc;
  --bg-disabled: #edf2f7;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e0;
  --error-red: #e53e3e;
  --error-red-light: #fee2e2;
  --success-green: #10b981;
  --shadow-color-rgb: 44, 62, 80; /* For general subtle shadows */
  --bg-error-very-light: #fef2f2; /* Lighter than --error-red-light, for backgrounds */
  --text-weekend: #2563eb;
  --shadow-inset-light-rgb: 0, 0, 0; /* For inset shadows */
  --transition: 0.2s ease;
}

/* === MAIN CONTAINER === */
body,
.sab-booking-bg {
  background: var(--bg-light-gray);
  min-height: 100vh;
}

.sab-booking-widget {
  background: var(--bg-white);
  /* border-radius: 24px; */
  /* box-shadow: 0 8px 32px rgba(var(--text-dark-rgb), 0.09); Changed to use text-dark-rgb */
  max-width: 520px;
  margin: 3.5rem auto;
  padding: 2.7rem 2.5rem 2.2rem 2.5rem;
  font-family: "Inter", Arial, sans-serif;
  position: relative;
}

#sab-booking-form {
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(var(--text-dark-rgb), 0.07); /* Changed to use text-dark-rgb */
  max-width: 95%;
  margin: 1rem auto;
  padding: 1rem 1rem;
  font-family: "Inter", Arial, sans-serif;
}

/* === STEPPER STYLES === */
.sab-stepper {
  width: 100%;
  margin: 0 0 32px 0;
  padding-top: 8px;
}

.sab-stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 90%;
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
}

.sab-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.sab-stepper-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-light);
  border: 2px solid var(--border-light);
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border var(--transition),
    color var(--transition);
  box-sizing: border-box;
}

.sab-stepper-circle.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--bg-white);
}

.sab-stepper-circle.completed {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--bg-white);
}

.sab-stepper-number {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 28px;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  transition: color var(--transition);
}

.sab-stepper-connector {
  flex: 1 1 0;
  height: 4px;
  background: var(--border-light);
  margin: 0 -4px;
  z-index: 1;
  border-radius: 2px;
  transition: background var(--transition);
}

.sab-stepper-connector.completed {
  background: var(--primary-blue);
}

.sab-stepper-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 0;
  width: 100%;
}

.sab-stepper-label {
  width: 80px; /* important for equal spacing between steps */
  text-align: center;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 400;
  margin-top: 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition), font-weight var(--transition);
}

.sab-stepper-label.active {
  color: var(--primary-blue);
  font-weight: 700;
}

.sab-stepper-label.completed {
  color: var(--primary-blue);
  font-weight: 500;
}

/* === FORM STRUCTURE === */
.sab-form-group {
  margin-bottom: 24px;
}

.sab-field-label {
  display: block;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.sab-field-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
  font-style: italic;
}

.sab-field-optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: 14px;
}

.sab-field-helper {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.sab-field-helper::before {
  content: "ℹ️";
  font-size: 12px;
  opacity: 0.7;
}

.required {
  color: var(--error-red);
  font-size: 1.1em;
  margin-left: 0.2em;
}

/* === FORM INPUTS === */
.sab-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-light-gray);
  color: var(--text-dark);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  box-sizing: border-box;
  height: 46px; /* Explicit height for consistency */
}

.sab-form-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(var(--primary-blue-rgb), 0.1);
}

.sab-form-input:hover {
  border-color: var(--border-medium);
}

.sab-form-input::placeholder {
  color: var(--text-disabled);
}

.sab-form-input:disabled {
  background: var(--bg-disabled);
  color: var(--text-disabled);
  cursor: not-allowed;
}

/* === SELECT STYLING === */
select.sab-form-input {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-light-gray)
    url('data:image/svg+xml;utf8,<svg fill="%23718096" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 8l3 3 3-3" stroke="%23718096" stroke-width="2" fill="none"/></svg>')
    no-repeat right 12px center/16px 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* === VALIDATION STATES === */
.sab-form-input.valid {
  border-color: var(--success-green) !important;
  background: var(--bg-white) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3e%3cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 44px;
}

.sab-form-input.invalid,
.sab-form-input.sab-error-border {
  border-color: var(--error-red) !important;
  background: var(--bg-error-very-light) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23E53E3E'%3e%3cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 44px;
}

.sab-success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.sab-success-icon {
  font-size: 64px; /* Increased airplane icon size */
  color: #2563eb; /* Blue color, similar to stepper */
  margin-bottom: 20px;
}

.sab-success-message h2 {
  font-size: 1.8em;
  color: #333; /* Darker text color */
  margin-bottom: 10px;
}

.sab-success-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 8px;
}

.sab-success-text:last-child {
  margin-bottom: 0;
}

/* Field-level Validation Success Message */
.sab-field-validation-success {
  color: var(--success-green);
  font-size: 13px; /* Or 0.85em or similar */
  margin-top: 6px;
  display: flex; /* To align icon and text if you add an icon */
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Optional: Add a checkmark icon to field-level success messages */
.sab-field-validation-success::before {
  content: "✓";
  font-weight: bold;
  font-size: 14px; /* Adjust as needed */
}

/* === CALENDAR STYLES === */
.sab-calendar {
  position: relative;
  background: var(--bg-white);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(var(--text-dark-rgb), 0.07); /* Changed to use text-dark-rgb */
  padding: 1.3rem 1.1rem 1.5rem 1.1rem;
  max-width: 420px;
  margin: 0.7rem auto 1.2rem auto;
  min-height: 300px;
}

.sab-calendar-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 0.98em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 10;
}

.sab-calendar-content-wrapper {
  width: 100%;
  min-height: 250px;
}

.sab-calendar-content {
  width: 100%;
  opacity: 1;
  transition: opacity var(--transition);
}

/* Show/hide logic */
.sab-calendar:not(.loaded) .sab-calendar-loading {
  display: flex;
}

.sab-calendar.loaded .sab-calendar-loading {
  display: none;
}

.sab-calendar:not(.loaded) .sab-calendar-content {
  opacity: 0.3;
  pointer-events: none;
}

.sab-calendar.loaded .sab-calendar-content {
  opacity: 1;
  pointer-events: all;
}

.sab-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--text-medium);
}

.sab-calendar-header button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-blue-rgb), 0.3);
  background: var(--darker-blue);
}

.sab-calendar-header button {
  background: var(--primary-blue);
  color: var(--bg-white);
  border: none;
  border-radius: 10px;
  font-size: 1.3rem;
  padding: 0.2em 1.1em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 2px 8px rgba(var(--primary-blue-rgb), 0.07);
}

.sab-calendar-header button:disabled {
  background: var(--bg-disabled);
  color: var(--text-disabled);
  cursor: not-allowed;
  opacity: 0.5;
}

.sab-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35em;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.sab-cal-dayname {
  text-align: center;
  font-size: 0.96rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.2em;
  letter-spacing: 0.01em;
}

.sab-cal-cell {
  text-align: center;
  font-size: 1.01rem;
  padding: 0.2em 0em;
  border-radius: 9px;
  background: var(--bg-light-gray);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border var(--transition);
  min-width: 2.5em;
  min-height: 2.5em;
  margin: 0.1em 0;
  user-select: none;
  color: var(--text-disabled);
  border: 2px solid transparent;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sab-cal-cell.available {
  color: var(--primary-blue);
  background: var(--bg-white);
  font-weight: 600;
  border: 2px solid var(--primary-blue);
  cursor: pointer;
}

.sab-cal-cell.available:hover {
  border: 2px solid var(--primary-blue-hover);
  background: var(--border-light);
  color: var(--primary-blue-hover);
}

.sab-cal-cell.selected {
  background: var(--primary-blue) !important;
  color: var(--bg-white) !important;
  font-weight: 700;
  border: 2px solid var(--darker-blue) !important;
  z-index: 2;
}

.sab-cal-cell.disabled {
  background: var(--bg-light-gray);
  /* color: var(--border-medium); */
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.6;
}

.sab-cal-cell.empty {
  background: transparent;
  cursor: default;
  border: none;
}

.sab-cal-cell.today {
  border: 2px solid var(--text-dark);
  font-weight: 700;
  background-color: var(--bg-white);
  color: var(--text-dark);
  text-decoration: none;
  opacity: 1;
}

.sab-cal-cell.sab-weekend {
  background: var(
    --primary-blue-lighter
  ); /* Changed to use primary-blue-lighter */
  color: var(--text-weekend);
}

.sab-cal-cell.sab-weekend.disabled {
  background: var(--bg-light-gray);
  color: var(--border-medium);
}

.sab-cal-cell.fully-booked {
  color: var(--text-disabled);
  /* Same text color as available */
  text-decoration: line-through;
  background: var(--bg-light-gray);
  /* Different background */
  font-weight: 600;
  /* Same font weight */
  border: 2px solid var(--primary-blue);
  /* Same border */
  cursor: not-allowed;
}

.sab-cal-cell.fully-booked:hover {
  border: 2px solid var(--primary-blue-hover);
  background: var(--border-light); /* Similar hover to available */
  color: var(--primary-blue-hover);
}

/* === TIMESLOTS === */
.sab-timeslots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.sab-slot-btn {
  padding: 10px 16px;
  border: 2px solid var(--primary-blue);
  border-radius: 9px;
  background: var(--primary-blue-lighter);
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
}

.sab-slot-btn:hover {
  background: var(--border-light);
  color: var(--darker-blue);
  border-color: var(--darker-blue);
}

.sab-slot-btn.selected {
  background: var(--primary-blue) !important;
  color: var(--bg-white) !important;
  border: 2px solid var(--darker-blue);
  box-shadow: 0 0 0 2px var(--primary-blue-focus-ring);
}

.sab-slot-btn.available {
  background: var(--bg-white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.sab-slot-btn.available:hover {
  border: 2px solid var(--darker-blue);
  background: var(--border-light);
}

.sab-timeslot-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 0.98em;
  margin: 1.2em 0;
  min-height: 2.5em;
  grid-column: 1 / -1;
}

.sab-no-timeslots {
  display: block;
  text-align: center;
  color: var(--primary-blue);
  font-size: 0.98em;
  margin: 1.2em 0;
  grid-column: 1 / -1;
}

/* === SPINNER === */
.sab-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--primary-blue-lighter);
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  animation: sab-spin 1s linear infinite;
  margin-right: 0.7em;
  flex-shrink: 0;
  /* Prevent flexbox from squashing it */
  display: inline-block;
  /* Ensure it maintains its dimensions */
}

@keyframes sab-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* === PHONE INPUT === */
.sab-phone-input-container {
  display: flex !important;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.sab-phone-input-container .sab-form-input {
  width: auto !important;
}

.sab-country-code {
  flex: 0 0 110px !important;
  max-width: 110px !important;
  width: 110px !important;
  font-size: 14px;
  padding: 12px 8px;
  box-sizing: border-box;
}

.sab-phone-number {
  flex: 1 !important;
  min-width: 0;
  width: auto !important;
  box-sizing: border-box;
}

/* === CONTACT PREFERENCES === */
.sab-contact-preferences {
  margin: 24px 0;
  padding: 16px;
  background: var(--bg-light-gray);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.sab-radio-group {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.sab-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color var(--transition);
}

.sab-radio-label:hover {
  background: var(--bg-disabled);
}

.sab-radio-input {
  display: none;
}

.sab-radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  background: var(--bg-white);
  position: relative;
  transition: all var(--transition);
}

.sab-radio-input:checked + .sab-radio-custom {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
}

.sab-radio-input:checked + .sab-radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-white);
}

.sab-radio-text {
  color: var(--text-dark);
  font-weight: 500;
}

/* === TEXTAREA === */
.sab-textarea-container {
  position: relative;
}

.sab-form-textarea {
  padding-right: 80px !important;
  resize: vertical;
  min-height: 80px;
}

/* === PRIVACY CHECKBOX === */
.sab-privacy-checkbox-container {
  margin-top: 20px;
  margin-bottom: 8px;
}

.sab-checkbox-label {
  display: flex;
  align-items: flex-start;
  /* gap: 8px; */
  cursor: pointer;
  font-size: 12px;
  line-height: 1.4;
}

.sab-privacy-checkbox {
  margin-top: 2px;
  flex-shrink: 0;
}

.sab-checkbox-text {
  color: var(--text-light);
  flex: 1;
}

.sab-privacy-link {
  color: var(--primary-blue);
  text-decoration: underline;
}

.sab-privacy-link:hover {
  color: var(--darker-blue);
}

.sab-privacy-checkbox-container.error .sab-checkbox-text {
  color: var(--error-red);
}

/* === PROGRESS STEPS === */
.progress-steps {
  margin-bottom: 32px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  font-size: 13px;
}

.progress-title {
  font-weight: 600;
  color: var(--text-dark);
}

.progress-time {
  color: var(--text-light);
  font-style: italic;
}

.form-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-light-gray);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(var(--shadow-inset-light-rgb), 0.1);
}

.form-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--darker-blue));
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

/* === BUTTONS === */
.sab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  min-width: 140px;
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.sab-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.sab-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-blue-rgb), 0.3);
}

.sab-btn.primary {
  background: var(--primary-blue);
  color: var(--bg-white);
  box-shadow: 0 2px 8px rgba(var(--primary-blue-rgb), 0.07);
}

.sab-btn.primary:hover:not(:disabled) {
  background: var(--darker-blue);
}

.sab-btn.secondary {
  background: var(--bg-disabled);
  color: var(--text-dark);
  border: 1.5px solid var(--border-medium);
  justify-content: flex-start;
}

.sab-btn.secondary:hover:not(:disabled) {
  background: var(--border-light);
  border-color: var(--border-medium);
}

.sab-button-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* Align .sab-next or .sab-submit to the right if it's the only child in the row */
.sab-button-row > .sab-btn.sab-next:only-child,
.sab-button-row > .sab-btn.sab-submit:only-child {
  margin-left: auto;
}

.sab-arrow {
  display: inline-block;
  font-size: 1em;
  pointer-events: none;
}

.sab-arrow-left::before {
  content: "\2190";
  margin-right: 0.3em;
}

.sab-arrow-right::after {
  content: "\2192";
  margin-left: 0.3em;
}

/* === APPOINTMENT SUMMARY === */
.sab-appointment-summary {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.sab-appointment-summary h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 16px 0;
  text-align: center;
}

.sab-step-2 h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 16px 0;
}

.sab-step-2 h3:first-of-type {
  margin-top: 0;
}

.sab-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  /* margin-bottom: 10px; */
  font-size: 0.9rem;
}

.sab-summary-item:last-child {
  margin-bottom: 0;
}

.sab-summary-label {
  color: var(--text-medium);
  font-weight: 500;
  flex-basis: 40%;
  flex-shrink: 1;
  margin-right: 10px;
}

.sab-summary-value {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
  flex-basis: 60%;
  flex-shrink: 0;
}

.sab-selected-price-value {
  color: var(--text-dark);
  font-weight: 600;
}

.sab-selected-service {
  color: var(--text-dark);
  font-weight: 600;
}

.sab-selected-date {
  color: var(--text-dark);
  font-weight: 600;
}

/* === ERROR SUMMARY === */
.sab-error-summary {
  background: var(--bg-error-very-light);
  border: 2px solid var(--error-red-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.sab-error-summary h3 {
  color: var(--error-red);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sab-error-summary h3::before {
  content: "⚠️";
  font-size: 18px;
}

.sab-error-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sab-error-list li {
  color: var(--error-red);
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-white);
  border-radius: 6px;
  border-left: 4px solid var(--error-red);
  cursor: pointer;
}

.sab-error-list li::before {
  content: "•";
  color: var(--error-red);
  font-weight: bold;
  margin-top: 2px;
}

.sab-error {
  color: var(--error-red);
  font-size: 0.86em;
  min-height: 1.2em;
  margin-top: 0.1em;
  transition: color var(--transition);
}

/* === CONFIRMATION === */
.sab-step-4 {
  animation: fadeInUp 0.5s ease-out;
  text-align: center;
  padding: 32px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sab-confirmation-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.sab-confirmation-subtitle {
  font-size: 1rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.5;
}

/* === LOADING STATES === */
.button-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.button-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bg-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: sab-spin 1s linear infinite;
}

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === FOCUS STATES === */
.sab-form-input:focus-visible,
.sab-btn:focus-visible,
.sab-radio-input:focus-visible + .sab-radio-custom,
.sab-privacy-checkbox:focus-visible + .sab-checkbox-custom,
.sab-slot-btn:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* === UTILITY CLASSES === */
.pulse {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  #sab-booking-form {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
  }

  .sab-booking-widget {
    margin: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sab-phone-input-container {
    flex-direction: column;
  }

  .sab-country-code {
    flex: none;
    width: 100%;
  }

  .sab-radio-group {
    flex-direction: column;
    gap: 8px;
  }

  .progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .sab-textarea-icons {
    bottom: 8px;
    right: 8px;
  }

  .sab-textarea-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .sab-stepper-circle {
    width: 28px;
    height: 28px;
  }

  .sab-stepper-number {
    line-height: 24px;
    font-size: 14px;
  }

  .sab-stepper-label {
    font-size: 11px;
    width: 60px;
  }

  .sab-stepper-connector {
    height: 3px;
  }

  .sab-timeslots {
    grid-template-columns: repeat(2, 1fr);
  }

  .sab-button-row {
    flex-direction: column;
    gap: 8px;
  }

  .sab-btn {
    min-width: auto;
    width: 100%;
  }
}

/* === HIGH CONTRAST / ACCESSIBILITY === */
@media (prefers-contrast: high) {
  .sab-form-input.valid,
  .sab-form-input.invalid {
    border-width: 3px;
  }

  .sab-radio-custom,
  .sab-checkbox-custom {
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-progress-fill,
  .sab-textarea-icon,
  .sab-btn,
  .sab-radio-custom,
  .sab-checkbox-custom,
  .sab-cal-cell,
  .sab-slot-btn {
    transition: none;
  }

  .sab-error-summary {
    animation: none;
  }
}

.sab-step-4 i.fa-paper-plane {
  font-size: 4em; /* Adjust as needed */
  color: var(--primary-blue);
  margin-bottom: 15px;
  display: block;
  flex-shrink: 0;
}

.sab-timeslot-label {
  display: none;
}

/* Style for field-specific errors, e.g., privacy checkbox */
.sab-field-error {
  color: var(--error-red);
  font-size: 0.9rem;
  margin-top: 0.5em; /* Or adjust as needed for specific context */
  /* You might want to add other properties like display: block; if needed */
}

.sab-form-input:focus,
.sab-form-input:active {
  border-color: #0056b3; /* Darker blue for focus */
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Focus ring */
}
