html,
body.appointments-external-form {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body {
  background: #e2e7ed !important;
}

body .label {
  font-size: 13px;
}

body .busy_time_info {
  margin-left: 10px;
  background: #fb4862;
}

body .available_time_info {
  background: #2663eb;
}

body .go_back_button {
  font-weight: 500;
  font-size: 16px;
}

body .busy_time_info_google {
  background: #fb4862;
}

body .busy_time {
  background: #fb4862 !important;
  color: #fff !important;
  pointer-events: none;
}

body .has-error .form-control:focus {
  border-color: #ff0300 !important;
  box-shadow: none !important;
}

body .busy_google_time {
  background: #fb4862 !important;
  color: #fff !important;
  font-weight: 300 !important;
  pointer-events: none;
}

.appointment_logo img {
  max-width: 150px;
  height: auto;
  float: left;
}

.logo.img-responsive.navbar-brand.logo {
  margin-bottom: 0;
  margin-left: -20px;
}

.logo.img-responsive.navbar-brand.logo {
  margin-bottom: 0;
  margin-left: -20px;
}

.datetimepicker {
  background: #fff !important;
}

.mtop6 {
  margin-top: 6px !important;
}

.mtop35 {
  margin-top: 35px;
}

.appointment_type_holder .appointment_color_type {
  height: 30px;
  width: 30px;
  margin-top: 3px;
}

.appointment_type_holder .dropdown-menu li a:hover,
.appointment_type_holder .dropdown-menu li a {
  border: none !important;
  border-radius: 0px !important;
  padding: 8px 20px;
}

.appointment_type_holder .bootstrap-select {
  float: left;
}

.main_wrapper {
  box-shadow: 0px 0px 0px 1px rgb(1 1 1 / 8%);
  background: #fff;
}

.hwp {
  border-radius: 4px;
  padding: 4px 10px;
  color: #fff;
}

body input {
  height: 38px !important;
}

body textarea,
body input {
  border: 1px solid #ececec !important;
}

.hours_wrapper {
  display: flex;
  margin-top: 20px !important;
}

@media only screen and (max-device-width: 360px) and (-webkit-device-pixel-ratio: 3) {
  .xdsoft_datetimepicker {
    left: 2px !important;
  }

  .btn {
    width: 100%;
  }
}

/* Fix progress steps mobile overflow - MINIMAL FIX */
@media (max-width: 640px) {
  .progress-steps-container {
    padding: 0 4px !important;
  }

  .step-indicator {
    min-width: 50px !important;
    flex: 1 !important;
  }

  .step-indicator .step-title {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  .step-indicator .step-number {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
  }

  .step-line {
    margin: 0 2px !important;
    top: -14px !important;
  }
}

/* Blocked dates in calendar */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled {
  background: #ffeeee !important;
  /* Light red background */
  color: #ff0000 !important;
  /* Red text */
  opacity: 0.6;
}

/* Current date when it's blocked */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled.xdsoft_current {
  background: #ff0000 !important;
  color: #ffffff !important;
  box-shadow: #ff0000 0 1px 3px 0 inset;
}

/* Hover effect on blocked dates */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover {
  background: #ffcccc !important;
  color: #ff0000 !important;
}

/* Busy times in time picker */
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.busy_time {
  background: #ffeeee !important;
  color: #ff0000 !important;
}

.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.busy_time:hover {
  background: #ffcccc !important;
  color: #ff0000 !important;
}

/* Improved header styling */
.appointments-external-form .main_wrapper {
  @apply tw-bg-white tw-rounded-xl tw-shadow-md;
}

/* Custom select styling */
.selectpicker {
  @apply tw-appearance-none tw-bg-white tw-cursor-pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

/* Disabled select styling */
.selectpicker:disabled {
  @apply tw-bg-neutral-50 tw-cursor-not-allowed tw-opacity-75;
}

/* Remove default select arrow in IE/Edge */
.selectpicker::-ms-expand {
  display: none;
}

/* Base styles */
.appointments-external-form {
  @apply tw-bg-neutral-50;
}

.main_wrapper {
  @apply tw-bg-white tw-rounded-xl tw-shadow-md tw-max-w-3xl tw-mx-auto;
}

/* Form sections */
.form-section {
  @apply tw-mb-8 tw-p-6 tw-bg-neutral-50 tw-rounded-lg tw-border tw-border-neutral-200;
}

.form-section-title {
  @apply tw-text-lg tw-font-semibold tw-text-neutral-800 tw-mb-4;
}

/* Form controls */
.form-group {
  @apply tw-relative tw-mb-6;
}

.form-group label {
  @apply tw-block tw-text-sm tw-font-medium tw-text-neutral-700 tw-mb-2;
}

.form-group label.error,
.invalid-feedback {
  @apply tw-absolute tw-text-sm tw-text-red-600 tw-mt-1 tw-left-0 tw-bottom-0 tw-translate-y-full;
}

/* Add more space below inputs to accommodate error messages */
.form-group {
  @apply tw-mb-6;
}

/* Specific styling for select validation */
.bootstrap-select.form-control+.error {
  @apply tw-mt-1 tw-block tw-static tw-text-sm tw-text-red-600;
}

/* Error state for inputs */
.form-control.error,
.form-control.is-invalid {
  @apply tw-border-red-500 focus:tw-border-red-500 focus:tw-ring-red-500;
}

/* Error state for select */
.bootstrap-select.is-invalid .dropdown-toggle {
  @apply tw-border-red-500;
}

.form-control {
  @apply tw-w-full tw-rounded-lg tw-border-neutral-300 tw-shadow-sm;
  @apply focus:tw-ring-2 focus:tw-ring-primary-500 focus:tw-border-primary-500;
  @apply hover:tw-border-neutral-400;
  transition: all 0.2s ease;
}

/* Working hours section */
#provider_schedule {
  @apply tw-mt-6 tw-p-6 tw-bg-neutral-50 tw-rounded-lg tw-border tw-border-neutral-200;
}

.working-hours-title {
  @apply tw-text-sm tw-font-medium tw-text-neutral-700 tw-mb-4;
}

.working-hours-list {
  @apply tw-space-y-3;
}

.working-hours-item {
  @apply tw-flex tw-justify-between tw-items-center tw-text-sm tw-text-neutral-600;
}

/* Submit button */
.btn-primary {
  @apply tw-bg-primary-600 tw-text-white tw-font-medium tw-px-6 tw-py-3 tw-rounded-lg tw-shadow-sm;
  @apply hover:tw-bg-primary-700 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-offset-2 focus:tw-ring-primary-500;
  @apply disabled:tw-opacity-50 disabled:tw-cursor-not-allowed;
  transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .form-section {
    @apply tw-p-4;
  }
}

/* Loading states */
.form-loading {
  @apply tw-opacity-50 tw-pointer-events-none;
}

/* Success states */
.is-valid {
  @apply tw-border-green-500 focus:tw-border-green-500 focus:tw-ring-green-500;
}

/* Date and Location styling */
.input-group.date {
  @apply tw-flex tw-items-center tw-w-full tw-relative;
}

.input-group.date input {
  @apply tw-rounded-lg tw-border-neutral-300 tw-pr-10;
}

.input-group.date .input-group-addon {
  @apply tw-absolute tw-right-3 tw-top-1/2 tw-transform -tw-translate-y-1/2 tw-pointer-events-none tw-text-neutral-500;
}

.calendar-icon {
  @apply tw-text-lg;
}

/* Datepicker styling */
.bootstrap-datetimepicker-widget {
  @apply tw-bg-white tw-shadow-lg tw-rounded-lg tw-border tw-border-neutral-200 !important;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  @apply tw-bg-primary-600 tw-text-white !important;
}

.bootstrap-datetimepicker-widget table td {
  @apply tw-text-center tw-p-2 tw-cursor-pointer hover:tw-bg-neutral-100 tw-rounded;
}

/* Terms and conditions styling */
.checkbox {
  @apply tw-relative;
}

.checkbox input[type="checkbox"] {
  @apply tw-h-4 tw-w-4 tw-rounded tw-border-neutral-300 tw-text-primary-600;
  @apply focus:tw-ring-primary-500;
}

.checkbox label {
  @apply tw-ml-2 tw-block tw-text-sm tw-font-medium tw-text-neutral-700;
}

/* Error state */
.has-error .checkbox input[type="checkbox"] {
  @apply tw-border-red-500;
}

.has-error .checkbox label {
  @apply tw-text-red-600;
}

/* Disabled submit button */
.btn-primary:disabled {
  @apply tw-opacity-50 tw-cursor-not-allowed;
}

/* Booking form step by step styling */
.booking-step {
  @apply tw-transition-opacity tw-duration-150 tw-ease-in-out;
}

.booking-step.tw-opacity-0 {
  @apply tw-opacity-0;
}

.form-booking-steps .step-indicator {
  position: relative;
  z-index: 5;
}

.form-booking-steps .progress-bar {
  transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Step indicator styles */
.step-indicator .step-number {
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.step-indicator.active .step-number {
  background-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.step-indicator.completed .step-number {
  background-color: #10b981;
}

.step-indicator .step-title {
  transition: color 0.3s ease;
}

.step-indicator.active .step-title {
  color: #3b82f6;
  font-weight: 500;
}

.step-indicator.completed .step-title {
  color: #10b981;
  font-weight: 500;
}

/* Connecting lines between steps - MUCH MORE VISIBLE */
.connecting-line {
  height: 4px !important;
  /* Thicker line */
  background-color: #e5e7eb;
  transition: background-color 0.5s ease;
  position: relative;
  margin: 0 8px;
  top: 16px;
  /* Align with the middle of the circles */
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Active connecting line */
#connecting-line-1-2.active,
#connecting-line-2-3.active,
#connecting-line-3-4.active {
  background-color: #3b82f6;
  /* Blue for active */
  height: 4px !important;
}

/* Completed connecting line */
#connecting-line-1-2.completed,
#connecting-line-2-3.completed,
#connecting-line-3-4.completed {
  background-color: #10b981;
  /* Green for completed */
  height: 4px !important;
}

/* Mobile responsive adjustments for connecting lines */
@media (max-width: 768px) {
  .connecting-line {
    margin: 0 4px;
  }

  .step-indicator .step-number {
    width: 28px !important;
    height: 28px !important;
  }

  .step-indicator .step-title {
    font-size: 0.7rem;
  }
}

.appointly-booking-service-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  isolation: isolate;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f3f6f9;
  border: 1px solid #e5e7eb;
}

.appointly-booking-service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons styling */
.btn-prev-step {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.btn-prev-step i {
  margin-right: 0.5rem;
}

.btn-next-step:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Custom time slots */
.time-slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .time-slots-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .time-slots-container {
    grid-template-columns: 1fr;
  }
}

.time-slot {
  padding: 12px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: white;
  font-weight: 500;
}

.time-slot:hover:not(.selected):not(.busy) {
  background-color: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.time-slot.selected {
  background-color: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);
}

.time-slot.busy {
  background-color: #fee2e2;
  color: #b91c1c;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Animation for transitions */
.step-indicator.completed .step-number {
  background-color: #10b981;
}

.step-indicator .step-title {
  color: #6b7280;
}

.step-indicator.active .step-title {
  color: #0284c7;
  font-weight: 500;
}

.step-indicator.completed .step-title {
  color: #10b981;
  font-weight: 500;
}

/* Form Steps */
.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
}

/* Fix for time picker display */
.xdsoft_datetimepicker .xdsoft_timepicker {
  width: 100px;
}

/* Blocked days styling - make it more obvious */
.xdsoft_date.blocked-date,
td.xdsoft_date.xdsoft_disabled.blocked-date {
  background: #ffebee !important;
  color: #c62828 !important;
  position: relative !important;
  cursor: not-allowed !important;
}

.xdsoft_date.blocked-date:before,
td.xdsoft_date.xdsoft_disabled.blocked-date:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c62828'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636'%3E%3C/path%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
  opacity: 0.7;
  z-index: 10;
}

.xdsoft_datetimepicker .xdsoft_calendar td {
  position: relative;
}

/* Busy times styling */
.xdsoft_time.busy_time {
  background: #f8d7da !important;
  color: #721c24 !important;
}

/* Time slots styling */
.time-slot-btn {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px 16px;
  background-color: white;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.time-slot-btn:hover:not(.selected) {
  transform: translateY(-1px);
  border-color: #d1d5db;
  background-color: #f9fafb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.time-slot-btn.selected {
  border-color: #0284c7 !important;
  background-color: rgba(2, 132, 199, 0.08) !important;
  color: #0284c7 !important;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2),
    0 2px 4px -1px rgba(2, 132, 199, 0.1) !important;
  transform: translateY(-1px);
}

.time-slot-btn.selected::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230284c7'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px;
}

/* Custom styles */
.ui-datepicker-unselectable {
  opacity: 0.5;
}

.xdsoft_disabled.blocked-date {
  background-color: #ffdddd !important;
  color: #999 !important;
}

.xdsoft_disabled.provider-unavailable {
  background-color: #ffe8cc !important;
  color: #999 !important;
}

/* Date picker legend styles */
.date-picker-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.legend-color.blocked {
  background-color: #ffdddd;
}

.legend-color.unavailable {
  background-color: #ffe8cc;
}

.legend-color.available {
  background-color: #fff;
  border: 1px solid #ddd;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .form-booking-steps .step-title {
    font-size: 0.75rem;
  }

  .time-slots-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-booking-steps .step-indicator:not(:last-child)::after {
    display: none;
  }
}

.step-indicator {
  min-width: 80px;
  /* Ensure steps have minimum width */
}

/* Animate step transitions */
.booking-step.hidden {
  opacity: 0;
  display: none;
}

.booking-step.active {
  opacity: 1;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.progress-steps-container {
  margin-bottom: -3px;
}

/* Step line styling - VERY PROMINENT */
.step-line {
  height: 6px !important;
  background-color: #e5e7eb;
  border-radius: 3px;
  position: relative;
  transition: background-color 0.5s ease, height 0.3s ease;
  top: -25px;
  /* Position lines to align with the middle of circles */
}

/* Step lines styling for active and completed steps */
#line-1-2.active,
#line-2-3.active,
#line-3-4.active {
  background-color: #3b82f6;
  /* Blue for active */
}

#line-1-2.completed,
#line-2-3.completed,
#line-3-4.completed {
  background-color: #10b981;
  /* Green for completed */
}

/* Step number styling */
.step-number {
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 10;
  /* Ensure circles appear above lines */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Step indicator styling */
.step-indicator {
  min-width: 90px;
  position: relative;
  z-index: 5;
}

.step-indicator.active .step-number {
  background-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.step-indicator.completed .step-number {
  background-color: #10b981;
}

.step-indicator .step-title {
  transition: color 0.3s ease;
}

.step-indicator.active .step-title {
  color: #3b82f6;
  font-weight: 500;
}

.step-indicator.completed .step-title {
  color: #10b981;
  font-weight: 500;
}

/* Progress bar styling */
.progress-bar {
  transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .step-line {
    top: -20px;
    height: 4px !important;
  }

  .step-number {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px;
  }

  .step-indicator .step-title {
    font-size: 0.7rem;
  }
}

/* Modern booking experience */
.appointly-modern-booking {
  --appointly-ink: #172033;
  --appointly-muted: #667085;
  --appointly-soft: #f6f8fb;
  --appointly-line: #d9e1ec;
  --appointly-primary: #2663eb;
  --appointly-primary-dark: #1d4ed8;
  --appointly-success: #0f9f6e;
  --appointly-coral: #f97362;
  color-scheme: light dark;
  background: #fff !important;
  color: var(--appointly-ink);
}

@media (prefers-color-scheme: dark) {
  .appointly-modern-booking {
    background: #000 !important;
  }
}

.appointly-booking-shell,
body.appointments-external-form #wrapper {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  z-index: 1;
}

body.appointments-external-form #content {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  flex: 0 1 auto !important;
}

/* Remove square grid pattern completely */
.appointly-booking-shell::before {
  display: none !important;
  content: none !important;
}

/* Page background with blurred service image */
.appointly-page-bg {
  position: fixed;
  inset: -60px;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(42px) saturate(1.35);
  transform: scale(1.15);
  transition: opacity 0.6s ease, background-image 0.6s ease;
}

.appointly-page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.appointly-modern-booking .container {
  width: 100% !important;
  max-width: 1180px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 auto !important;
  min-height: 0 !important;
}

.appointly-modern-booking #appointment-form {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.appointly-modern-booking #appointment-form>.row {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 0 !important;
}

.appointly-modern-booking .main_wrapper,
.appointly-modern-booking .appointly-booking-panel,
.appointly-booking-panel {
  width: 100% !important;
  max-width: 1120px !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 36px) !important;
  height: min(560px, calc(100dvh - 36px)) !important;
  overflow-y: auto;
  overflow-x: hidden;
  float: none !important;
  margin: 0 auto !important;
  padding: 24px 34px !important;
  border: none !important;
  outline: none !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  position: relative;
}

.appointly-modern-booking .appointly-booking-panel[data-preset-mode="1"],
.appointly-modern-booking .appointly-booking-panel:has(.appointly-two-pane),
.appointly-modern-booking .appointly-booking-panel:has(#step-3.active),
.appointly-modern-booking .appointly-booking-panel:has(#step-4.active),
.appointly-modern-booking .appointly-booking-panel.appointly-has-two-pane {
  max-width: 960px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: none !important;
  outline: none !important;
  height: min(560px, calc(100dvh - 36px)) !important;
  background: linear-gradient(to right, #182234 280px, #ffffff 280px) !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

[dir="rtl"] .appointly-modern-booking .appointly-booking-panel[data-preset-mode="1"],
[dir="rtl"] .appointly-modern-booking .appointly-booking-panel:has(.appointly-two-pane),
[dir="rtl"] .appointly-modern-booking .appointly-booking-panel:has(#step-3.active),
[dir="rtl"] .appointly-modern-booking .appointly-booking-panel:has(#step-4.active),
body.appointments-external-form[dir="rtl"] .appointly-booking-panel[data-preset-mode="1"],
body.appointments-external-form[dir="rtl"] .appointly-booking-panel:has(.appointly-two-pane) {
  background: linear-gradient(to left, #182234 280px, #ffffff 280px) !important;
}

.appointly-modern-booking .appointly-booking-panel[data-preset-mode="1"] .booking-step,
.appointly-modern-booking .appointly-booking-panel .booking-step:has(.appointly-two-pane),
.appointly-modern-booking .appointly-booking-panel #step-3,
.appointly-modern-booking .appointly-booking-panel #step-4 {
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

/* Custom sleek scrollbars inside the booking card */
.appointly-modern-booking .appointly-booking-panel::-webkit-scrollbar,
.appointly-modern-booking .appointly-two-pane-main::-webkit-scrollbar,
.appointly-modern-booking .appointly-two-pane-sidebar::-webkit-scrollbar,
.appointly-modern-booking .appointly-schedule-right::-webkit-scrollbar,
.appointly-modern-booking .time-slots-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.appointly-modern-booking .appointly-booking-panel::-webkit-scrollbar-track,
.appointly-modern-booking .appointly-two-pane-main::-webkit-scrollbar-track,
.appointly-modern-booking .appointly-two-pane-sidebar::-webkit-scrollbar-track,
.appointly-modern-booking .appointly-schedule-right::-webkit-scrollbar-track,
.appointly-modern-booking .time-slots-container::-webkit-scrollbar-track {
  background: transparent;
}

.appointly-modern-booking .appointly-booking-panel::-webkit-scrollbar-thumb,
.appointly-modern-booking .appointly-two-pane-main::-webkit-scrollbar-thumb,
.appointly-modern-booking .appointly-two-pane-sidebar::-webkit-scrollbar-thumb,
.appointly-modern-booking .appointly-schedule-right::-webkit-scrollbar-thumb,
.appointly-modern-booking .time-slots-container::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.28);
  border-radius: 999px;
}

.appointly-modern-booking .appointly-booking-panel::-webkit-scrollbar-thumb:hover,
.appointly-modern-booking .appointly-two-pane-main::-webkit-scrollbar-thumb:hover,
.appointly-modern-booking .appointly-two-pane-sidebar::-webkit-scrollbar-thumb:hover,
.appointly-modern-booking .appointly-schedule-right::-webkit-scrollbar-thumb:hover,
.appointly-modern-booking .time-slots-container::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.48);
}

.appointly-modern-booking .appointly-booking-panel,
.appointly-modern-booking .appointly-two-pane-main,
.appointly-modern-booking .appointly-two-pane-sidebar,
.appointly-modern-booking .appointly-schedule-right,
.appointly-modern-booking .time-slots-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.28) transparent;
}

.appointly-modern-booking .booking-step {
  /* JS fully manages opacity/transform via inline styles for each transition.
     We just set up the structural defaults here. */
  display: none;
  min-height: 0;
  flex-direction: column;
  contain: layout style;
}

.appointly-modern-booking .booking-step.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.appointly-modern-booking .booking-step.active>.tw-flex.tw-justify-end,
.appointly-modern-booking .appointly-two-pane-main>.tw-flex.tw-justify-end {
  margin-top: auto !important;
  padding-top: 26px;
}

.appointly-modern-booking hr {
  border-color: rgba(217, 225, 236, 0.85) !important;
}

.appointly-modern-booking .language-selector select {
  border: 1px solid var(--appointly-line);
  border-radius: 999px;
  background-color: #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

.appointly-modern-booking .progress-steps-container {
  padding: 8px 6px 0;
  margin-bottom: 4px;
}

.appointly-modern-booking .step-indicator {
  min-width: 112px;
}

.appointly-modern-booking .step-number {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #d6deea !important;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.12);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.appointly-modern-booking .step-indicator.active .step-number {
  background: var(--appointly-primary) !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 6px rgba(38, 99, 235, 0.12), 0 16px 34px rgba(38, 99, 235, 0.28);
}

.appointly-modern-booking .step-indicator.completed .step-number {
  background: var(--appointly-success) !important;
}

.appointly-modern-booking .step-title {
  max-width: 130px;
  color: var(--appointly-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.appointly-modern-booking .step-line {
  top: -23px !important;
  height: 3px !important;
  background: #d7dfeb !important;
  border-radius: 999px;
  box-shadow: none;
}

.appointly-modern-booking #line-1-2.active,
.appointly-modern-booking #line-2-3.active,
.appointly-modern-booking #line-3-4.active,
.appointly-modern-booking #line-1-2.completed,
.appointly-modern-booking #line-2-3.completed,
.appointly-modern-booking #line-3-4.completed {
  background: var(--appointly-primary) !important;
}

.appointly-modern-booking .progress-bar {
  background: linear-gradient(90deg, var(--appointly-primary), var(--appointly-success)) !important;
  box-shadow: 0 8px 20px rgba(38, 99, 235, 0.24);
}

.appointly-step-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.appointly-step-heading h4,
.appointly-modern-booking .booking-step>div>h4,
.appointly-modern-booking .booking-step>h4 {
  margin: 0;
  color: var(--appointly-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.appointly-step-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--appointly-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointly-modern-booking .booking-step.active {
  animation: appointlyStepIn 0.25s ease both;
}

@keyframes appointlyStepIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Ensure service card images load statically without movement or jumpy animations */
.appointly-booking-service-image,
.appointly-booking-service-image img {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}

.appointly-modern-booking .service-card:hover .appointly-booking-service-image,
.appointly-modern-booking .service-card:hover .appointly-booking-service-image img {
  transform: none !important;
  transition: none !important;
}

.appointly-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

@media (min-width: 768px) {

  .appointly-service-grid.appointly-services-columns-2,
  .appointly-service-grid.appointly-services-columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .appointly-service-grid.appointly-services-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.appointly-modern-booking .service-card,
.appointly-modern-booking .provider-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--appointly-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.appointly-modern-booking .service-card {
  display: flex;
  flex-direction: column;
  padding: 14px !important;
}

.appointly-modern-booking .service-card::before,
.appointly-modern-booking .provider-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--appointly-primary), var(--appointly-coral));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.appointly-modern-booking .service-card:hover,
.appointly-modern-booking .provider-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 99, 235, 0.55) !important;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.13);
}

.appointly-modern-booking .service-card.selected,
.appointly-modern-booking .provider-card.selected {
  border-color: rgba(38, 99, 235, 0.38) !important;
  background: #f8fbff !important;
  box-shadow: 0 16px 42px rgba(38, 99, 235, 0.14);
}

.appointly-modern-booking .service-card.selected::before,
.appointly-modern-booking .provider-card.selected::before {
  opacity: 0.72;
}

.appointly-card-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--appointly-primary);
  box-shadow: 0 10px 20px rgba(38, 99, 235, 0.25);
  opacity: 0;
  transform: scale(0.76);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.appointly-card-check::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 9px;
  height: 13px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.service-card.selected .appointly-card-check,
.provider-card.selected .appointly-card-check {
  opacity: 1;
  transform: scale(1);
}

.appointly-booking-service-image {
  border: 0;
  border-radius: 14px;
  margin-bottom: 16px;
  background: #eaf0f7;
}

.appointly-booking-service-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 18% 20%, rgba(38, 99, 235, 0.14), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(16, 185, 129, 0.14), transparent 34%),
    linear-gradient(135deg, #f9fbff 0%, #eef5ff 48%, #f7fbf9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.appointly-booking-service-image-empty::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px dashed rgba(100, 116, 139, 0.2);
  border-radius: 12px;
}

.appointly-booking-service-image-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.76), transparent 74%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.76), transparent 74%);
}

.appointly-service-placeholder-mark {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78));
  color: var(--appointly-service-color, var(--appointly-primary));
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.1);
}

.appointly-service-placeholder-mark::before,
.appointly-service-placeholder-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(38, 99, 235, 0.12);
}

.appointly-service-placeholder-mark::before {
  width: 88px;
  height: 88px;
  z-index: -1;
}

.appointly-service-placeholder-mark::after {
  right: 10px;
  bottom: 10px;
  width: 8px;
  height: 8px;
  background: var(--appointly-service-color, var(--appointly-primary));
}

.appointly-service-placeholder-mark i {
  color: inherit;
  font-size: 25px;
  opacity: 0.82;
}

.appointly-modern-booking .service-header {
  gap: 12px;
  margin-bottom: 12px !important;
}

.appointly-modern-booking .service-header h5 {
  margin: 0;
  color: var(--appointly-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.appointly-modern-booking .service-details {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.appointly-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.appointly-service-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--appointly-soft);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.appointly-modern-booking .service-details p {
  color: var(--appointly-muted) !important;
  line-height: 1.55;
}

.appointly-modern-booking .provider-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
}

.appointly-modern-booking .provider-card[data-toggle="tooltip"] {
  position: relative;
}

.appointly-provider-avatar {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--appointly-soft);
}

.appointly-provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appointly-provider-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.appointly-provider-topline h5 {
  margin: 0;
  color: var(--appointly-ink);
  font-size: 17px;
  font-weight: 800;
}

.appointly-provider-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.appointly-provider-status.is-available {
  background: rgba(15, 159, 110, 0.1);
  color: var(--appointly-success);
}

.appointly-provider-status.is-unavailable {
  background: rgba(249, 115, 98, 0.12);
  color: #c24135;
}

.appointly-provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--appointly-muted);
  font-size: 13px;
}

.appointly-modern-booking .view-provider-details {
  border-radius: 999px !important;
  padding: 9px 14px !important;
  white-space: nowrap;
}

.appointly-modern-booking .disabled-provider {
  opacity: 0.68;
  filter: grayscale(0.2);
}

.appointly-modern-booking .tw-bg-white.tw-border,
.appointly-modern-booking .tw-bg-white.tw-rounded-lg {
  border-color: var(--appointly-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
}

.appointly-modern-booking .form-control,
.appointly-modern-booking .bootstrap-select .dropdown-toggle {
  min-height: 46px;
  border: 1px solid var(--appointly-line) !important;
  border-radius: 12px !important;
  background-color: #fff !important;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.appointly-modern-booking input.form-control,
.appointly-modern-booking select.form-control {
  height: 46px !important;
}

.appointly-modern-booking textarea.form-control {
  min-height: 112px;
  height: auto !important;
}

.appointly-modern-booking textarea.form-control#notes {
  min-height: 72px;
}

.appointly-modern-booking .form-control:focus,
.appointly-modern-booking .bootstrap-select.open .dropdown-toggle {
  border-color: var(--appointly-primary) !important;
  box-shadow: 0 0 0 4px rgba(38, 99, 235, 0.12) !important;
}

/* Phone field's country-code dropdown (intl-tel-input) */
.appointly-modern-booking .iti {
  display: block;
  width: 100%;
}

.appointly-modern-booking .iti__selected-flag {
  border-radius: 12px 0 0 12px;
}

.appointly-modern-booking .iti input.form-control {
  width: 100%;
}

.appointly-modern-booking .iti--container {
  z-index: 10000;
}

.appointly-modern-booking .bootstrap-select .dropdown-toggle,
.appointly-modern-booking .bootstrap-select .dropdown-toggle:hover,
.appointly-modern-booking .bootstrap-select .dropdown-toggle:focus,
.appointly-modern-booking .bootstrap-select.open .dropdown-toggle,
.appointly-modern-booking .bootstrap-select.open .dropdown-toggle:hover,
.appointly-modern-booking .bootstrap-select.open .dropdown-toggle:focus {
  background-color: #fff !important;
  background-image: none !important;
  color: #344054 !important;
}

.appointly-modern-booking .btn-next,
.appointly-modern-booking .view-provider-details,
.appointly-modern-booking .select-provider,
.appointly-modern-booking .btn-primary:not(.dropdown-toggle),
.appointly-modern-booking #book-appointment-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--appointly-primary), #4f7df3) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 14px 30px rgba(38, 99, 235, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.appointly-modern-booking .btn-next:hover,
.appointly-modern-booking .view-provider-details:hover,
.appointly-modern-booking .select-provider:hover,
.appointly-modern-booking .btn-primary:not(.dropdown-toggle):hover,
.appointly-modern-booking #book-appointment-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--appointly-primary-dark), var(--appointly-primary)) !important;
  box-shadow: 0 18px 38px rgba(38, 99, 235, 0.28);
}

.appointly-modern-booking .btn-next::after,
.appointly-modern-booking #book-appointment-btn::after {
  content: "\2192";
  font-size: 15px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.appointly-modern-booking .btn-next:hover::after,
.appointly-modern-booking #book-appointment-btn:hover::after {
  transform: translateX(2px);
}

.appointly-modern-booking #book-appointment-btn {
  border-radius: 10px !important;
}

.appointly-modern-booking .btn-next,
.appointly-modern-booking #book-appointment-btn {
  font-weight: 400 !important;
}

.appointly-modern-booking .btn-next:disabled,
.appointly-modern-booking .btn-primary:not(.dropdown-toggle):disabled {
  transform: none;
  box-shadow: none;
  opacity: 0.58;
}

.appointly-modern-booking .btn-prev-step {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(217, 225, 236, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--appointly-primary) !important;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.05);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.appointly-modern-booking .btn-prev-step:hover {
  border-color: rgba(38, 99, 235, 0.34);
  background: #fff !important;
  color: var(--appointly-primary-dark) !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.08);
}

.appointly-modern-booking .btn-prev-step svg {
  width: 16px;
  height: 16px;
  margin-right: 0 !important;
  transition: transform 0.18s ease;
}

.appointly-modern-booking .btn-prev-step:hover svg {
  transform: translateX(-2px);
}

.appointly-modern-booking .time-slot-btn {
  min-height: 44px;
  overflow: visible;
  border-radius: 12px;
  border: 1px solid #d9e1ec !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none !important;
}

.appointly-modern-booking .time-slot-btn:hover:not(.selected) {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
  transform: none;
}

.appointly-modern-booking .time-slot-btn.selected {
  border-color: var(--appointly-primary) !important;
  background: #eff6ff !important;
  color: var(--appointly-primary) !important;
}

.appointly-modern-booking .time-slot-btn.selected::after {
  top: 50%;
  right: -10px;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  background-color: var(--appointly-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
  background-size: 13px;
  box-shadow: 0 8px 18px rgba(38, 99, 235, 0.28);
  transform: translateY(-50%);
}

.appointly-modern-booking #time-slots-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow-y: auto;
  padding: 4px 6px 16px 4px;
  margin-bottom: 0 !important;
  gap: 12px;
  transition: opacity 0.2s ease;
}

/* While a new date's slots are being fetched, dim the previously-shown slots
   instead of clearing the container — avoids a blank/skeleton gap when
   switching between two dates that both already have rendered content. */
.appointly-modern-booking #time-slots-container.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* Skeleton placeholder slots when loading */
.appointly-modern-booking .appointly-slot-skeleton {
  height: 46px;
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f8fafc 25%, #eef2f6 50%, #f8fafc 75%);
  background-size: 200% 100%;
  animation: appointly-skeleton-shimmer 1.5s infinite;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

@keyframes appointly-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.appointly-modern-booking #slot-loading {
  display: none !important;
}

.appointly-modern-booking .modal-content {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.22);
}

.appointly-modern-booking .modal-header {
  border-bottom-color: var(--appointly-line);
  background: var(--appointly-soft);
}

.appointly-modern-booking #providerDetailsModal .modal-dialog {
  width: min(620px, calc(100% - 28px));
  margin-top: 5vh;
}

.appointly-modern-booking #providerDetailsModal .modal-content {
  border: 1px solid rgba(217, 225, 236, 0.82);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(23, 32, 51, 0.24);
}

.appointly-modern-booking #providerDetailsModal .modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--appointly-line);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.94)),
    #fff;
}

.appointly-modern-booking #providerDetailsModal .modal-title {
  color: var(--appointly-ink);
  font-size: 14px;
  font-weight: 800;
}

.appointly-modern-booking #providerDetailsModal .close {
  color: #667085;
  font-size: 30px;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.appointly-modern-booking #providerDetailsModal .close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.appointly-modern-booking #providerDetailsModal .modal-body {
  padding: 22px 20px 18px;
}

.appointly-provider-modal-profile {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(217, 225, 236, 0.86);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.07);
}

.appointly-provider-modal-avatar {
  width: 86px;
  height: 86px;
  padding: 4px;
  border: 1px solid rgba(217, 225, 236, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.1);
}

.appointly-provider-modal-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.appointly-provider-modal-copy h5 {
  margin: 0 0 6px;
  color: var(--appointly-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.16;
}

.appointly-provider-modal-copy p {
  margin: 2px 0;
  color: var(--appointly-muted);
  font-size: 13px;
  line-height: 1.35;
}

.appointly-modern-booking #providerDetailsModal .provider-schedule {
  padding: 16px;
  border: 1px solid rgba(217, 225, 236, 0.86);
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.72);
}

.appointly-modern-booking #providerDetailsModal .provider-schedule h6 {
  margin: 0 0 12px;
  color: var(--appointly-ink);
  font-size: 14px;
  font-weight: 900;
}

.appointly-modern-booking #providerDetailsModal .schedule-list {
  display: grid;
  gap: 8px;
  max-height: min(360px, 46vh);
  overflow-y: auto;
  padding-right: 4px;
}

.appointly-schedule-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 225, 236, 0.78);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.04);
}

.appointly-schedule-day {
  color: var(--appointly-ink);
  font-size: 14px;
  font-weight: 800;
}

.appointly-schedule-time {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 159, 110, 0.1);
  color: var(--appointly-success);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.appointly-modern-booking #providerDetailsModal .modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 20px 20px;
  border-top: 0;
}

.appointly-modern-booking #providerDetailsModal .btn-default {
  border: 1px solid rgba(217, 225, 236, 0.95) !important;
  background: #fff !important;
  color: var(--appointly-ink) !important;
  box-shadow: none;
}

.appointly-success-page {
  min-height: 100vh;
  color: var(--appointly-ink);
}

.appointly-success-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.appointly-success-panel {
  width: min(560px, 100%);
  padding: 44px 40px;
  border: 1px solid var(--appointly-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.1);
  text-align: center;
}

.appointly-success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: rgba(15, 159, 110, 0.12);
  color: var(--appointly-success);
}

.appointly-success-check svg {
  width: 28px;
  height: 28px;
}

.appointly-success-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
}

.appointly-success-subtitle {
  margin: 0 0 20px;
  color: var(--appointly-muted);
  font-size: 15px;
  line-height: 1.6;
}

.appointly-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.appointly-success-badge svg {
  width: 15px;
  height: 15px;
}

.appointly-success-badge.is-confirmed {
  background: rgba(15, 159, 110, 0.1);
  color: var(--appointly-success);
}

.appointly-success-badge.is-pending {
  background: rgba(217, 148, 12, 0.12);
  color: #b45309;
}

.appointly-success-card {
  padding: 22px 24px;
  border: 1px solid var(--appointly-line);
  border-radius: 16px;
  background: var(--appointly-soft);
  text-align: left;
}

.appointly-success-card-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.appointly-success-card .appointly-side-row {
  margin-bottom: 12px;
  color: var(--appointly-ink);
}

.appointly-success-card .appointly-side-row:last-child {
  margin-bottom: 0;
}

.appointly-success-card .appointly-side-icon {
  color: var(--appointly-muted);
  stroke: var(--appointly-muted);
}

.appointly-success-link {
  display: block;
  margin-top: 20px;
  color: var(--appointly-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.appointly-success-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--appointly-primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(38, 99, 235, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.appointly-success-again:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(38, 99, 235, 0.28);
}

.appointly-client-meeting-page {
  min-height: 100vh;
}

.appointly-client-meeting-shell {
  min-height: 100vh;
  padding: 32px 0 !important;
}

.appointly-client-meeting-container {
  width: min(1120px, calc(100% - 28px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.appointly-client-meeting-card {
  overflow: hidden;
  border: 1px solid rgba(217, 225, 236, 0.9) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.14) !important;
  backdrop-filter: blur(14px);
}

.appointly-client-meeting-card>div:first-child {
  padding: 34px !important;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98) 54%, rgba(240, 253, 249, 0.86)),
    #fff !important;
}

.appointly-client-meeting-card h1 {
  color: var(--appointly-ink) !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.appointly-public-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px !important;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98) 54%, rgba(240, 253, 249, 0.9)),
    #fff !important;
}

.appointly-public-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--appointly-primary), #0ea5e9 48%, var(--appointly-success));
}

.appointly-public-heading {
  min-width: 0;
}

.appointly-public-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 9px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: var(--appointly-primary);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.appointly-public-heading h1 {
  margin: 0;
  overflow-wrap: anywhere;
}

.appointly-public-heading>p {
  margin: 10px 0 0;
  color: #5b6780;
  font-size: 15px;
  font-weight: 600;
}

.appointly-public-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.appointly-public-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 750;
}

.appointly-public-meta i {
  color: var(--appointly-primary);
}

.appointly-public-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.appointly-public-status-blue {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.appointly-public-status-green {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.appointly-public-status-amber {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.appointly-public-status-danger {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.appointly-public-status-neutral {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.appointly-public-content {
  padding: 26px 34px 34px !important;
}

.appointly-public-service-card>.tw-flex {
  gap: 18px;
}

.appointly-public-service-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.appointly-public-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 8px;
}

.appointly-public-service-image {
  display: block;
  width: 128px;
  height: 72px;
  flex: 0 0 128px;
  object-fit: cover;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.1);
}

.appointly-public-service-meta {
  flex: 0 0 auto;
}

.appointly-client-meet-dialog {
  margin-top: 80px;
}

.appointly-client-meet-content {
  overflow: hidden;
  border: 1px solid #dbe5f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24) !important;
}

.appointly-client-meet-header {
  background:
    linear-gradient(135deg, #eff6ff 0%, #ffffff 62%, #ecfdf5 100%),
    #fff !important;
}

.appointly-public-action-row {
  justify-content: flex-end;
  align-items: center;
}

.appointly-public-action-btn {
  width: auto !important;
  min-width: 0;
  flex: 0 0 auto !important;
  white-space: nowrap;
}

body.appointments-external-form[dir="rtl"] .appointly-public-hero,
body.appointments-external-form[dir="rtl"] .appointly-public-meta,
body.appointments-external-form[dir="rtl"] .appointly-public-service-main,
body.appointments-external-form[dir="rtl"] .appointly-client-meet-content {
  direction: rtl;
}

body.appointments-external-form[dir="rtl"] .appointly-public-service-meta {
  text-align: right !important;
}

.appointly-client-meeting-card h3,
.appointly-client-meeting-card h4 {
  color: var(--appointly-ink) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.appointly-client-meeting-card hr {
  border-color: rgba(217, 225, 236, 0.82) !important;
}

.appointly-client-meeting-card .tw-bg-white.tw-rounded-lg,
.appointly-client-meeting-card .tw-bg-white.tw-rounded-md {
  border-color: rgba(217, 225, 236, 0.86) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96)),
    #fff !important;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06) !important;
}

.appointly-client-meeting-card .tw-bg-neutral-50,
.appointly-client-meeting-card .tw-bg-neutral-100 {
  background: rgba(248, 251, 255, 0.88) !important;
}

.appointly-client-meeting-card .tw-rounded-full {
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);
}

.appointly-client-meeting-card button,
.appointly-client-meeting-card a[class*="tw-bg-blue"],
.appointly-client-meeting-card a[class*="tw-bg-green"],
.appointly-client-meeting-card a[class*="tw-bg-danger"],
.appointly-client-meeting-card a[href^="sms:"],
.appointly-client-meeting-card a[href^="tel:"] {
  border-radius: 999px !important;
  font-weight: 800 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.appointly-client-meeting-card button:hover,
.appointly-client-meeting-card a[class*="tw-bg-blue"]:hover,
.appointly-client-meeting-card a[class*="tw-bg-green"]:hover,
.appointly-client-meeting-card a[class*="tw-bg-danger"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(38, 99, 235, 0.18) !important;
}

.appointly-client-meeting-page .appointment_logo,
.appointly-client-meeting-page .tw-flex-shrink-0.tw-p-4 {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
}

@media (max-width: 768px) {
  .appointly-client-meeting-card h1 {
    font-size: 28px !important;
  }

  .appointly-public-hero {
    flex-direction: column;
    padding: 24px !important;
  }

  .appointly-public-status {
    width: 100%;
    justify-content: center;
  }

  .appointly-public-content {
    padding: 20px !important;
  }

  .appointly-public-service-card>.tw-flex,
  .appointly-public-service-main {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .appointly-public-service-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex-basis: auto;
  }

  .appointly-public-service-meta {
    width: 100%;
    text-align: left !important;
  }

  .appointly-public-action-row {
    align-items: flex-end;
  }

  .appointly-client-meet-dialog {
    margin-top: 24px;
  }
}

.appointly-modern-booking .progress-steps-container {
  padding: 14px;
  border: 1px solid rgba(212, 222, 236, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.86)),
    radial-gradient(circle at 20% 10%, rgba(38, 99, 235, 0.08), transparent 32%);
  box-shadow: 0 16px 48px rgba(23, 32, 51, 0.08);
}

.appointly-modern-booking .progress-steps-container>.tw-flex {
  gap: 12px;
  align-items: center !important;
}

.appointly-modern-booking .step-indicator {
  display: flex !important;
  flex: 0 0 auto;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  min-width: 0;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(212, 222, 236, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
  transition: border-color 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.appointly-modern-booking .step-indicator.active {
  border-color: rgba(38, 99, 235, 0.34);
  background: #fff;
  transform: none;
}

.appointly-modern-booking .step-indicator.completed {
  border-color: rgba(15, 159, 110, 0.22);
  background: rgba(240, 253, 249, 0.94);
}

.appointly-modern-booking .step-number {
  width: 38px !important;
  height: 38px !important;
  margin: 0 10px 0 0 !important;
  flex: 0 0 38px;
  transform: none !important;
}

.appointly-modern-booking .step-indicator.active .step-number {
  transform: none !important;
  box-shadow: 0 0 0 7px rgba(38, 99, 235, 0.13), 0 12px 24px rgba(38, 99, 235, 0.24);
}

.appointly-modern-booking .step-indicator.completed .step-number {
  transform: none !important;
  box-shadow: 0 0 0 7px rgba(15, 159, 110, 0.1), 0 10px 22px rgba(15, 159, 110, 0.16);
}

.appointly-modern-booking .step-title {
  max-width: none;
  white-space: nowrap;
}

.appointly-modern-booking .step-line {
  position: relative;
  top: auto !important;
  flex: 1 1 42px !important;
  min-width: 36px;
  height: 4px !important;
  margin: 0 !important;
  background: linear-gradient(90deg, #d7dfeb, #e8eef7) !important;
  overflow: hidden;
}

.appointly-modern-booking .step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--appointly-primary), #5b8df9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.34s ease;
}

.appointly-modern-booking .step-line.active::after,
.appointly-modern-booking .step-line.completed::after {
  transform: scaleX(1);
}

.appointly-modern-booking .progress-steps-container+.tw-mt-6 {
  height: 4px !important;
  margin-top: 14px !important;
  background: rgba(215, 223, 235, 0.7) !important;
}

.appointly-modern-booking .appointly-provider-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
}

.appointly-modern-booking .appointly-provider-actions .appointly-card-check {
  top: 6px;
  right: 5px;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  transform: scale(0.76);
  box-shadow: 0 10px 22px rgba(38, 99, 235, 0.22);
}

.appointly-modern-booking .appointly-provider-actions .appointly-card-check::after {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 13px;
  transform: translate(-50%, -58%) rotate(45deg);
}

.appointly-modern-booking .provider-card.selected .appointly-provider-actions .appointly-card-check {
  transform: scale(1);
}

/* Wraps the schedule grid so it fills whatever vertical space the step has,
   letting the calendar/time-slot divider run the full height of the card. */
.appointly-modern-booking .appointly-schedule-wrap {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

/* Calendar (left) + time-slot list (right) layout */
.appointly-modern-booking .appointly-schedule-grid {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 20px;
  height: 100%;
  min-height: 0;
}

.appointly-modern-booking .appointly-schedule-left {
  flex: 0 0 370px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.appointly-modern-booking .appointly-schedule-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin-right: 0 !important;
  padding-right: 0 !important;
  overflow: hidden;
}

/* .appointly-schedule-right's own "display: flex" (2 classes) otherwise outranks
   Tailwind's single-class ".tw-hidden", so the section stayed visible-but-empty
   before a date was picked. */
.appointly-modern-booking .appointly-schedule-right.tw-hidden {
  display: none !important;
}

.appointly-modern-booking #time-slots-selected-date {
  display: flex !important;
  align-items: center !important;
  height: 32px !important;
  line-height: 32px !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  font-size: 15px;
  font-weight: 700;
  color: var(--appointly-ink);
  box-sizing: border-box !important;
}

.appointly-modern-booking #time-slots-selected-date:empty {
  visibility: hidden;
}

@media (min-width: 701px) {
  .appointly-modern-booking .appointly-booking-panel {
    min-height: 0;
    height: min(560px, calc(100dvh - 36px));
    max-height: calc(100dvh - 36px);
  }

  .appointly-modern-booking #step-3 .appointly-two-pane,
  .appointly-modern-booking #step-4 .appointly-two-pane {
    min-height: 0;
    height: 100%;
    max-height: 100%;
  }

  .appointly-modern-booking .appointly-schedule-right {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
  }
}

@media (max-width: 900px) {
  .appointly-modern-booking .appointly-schedule-right {
    margin-right: -22px;
  }
}

@media (max-width: 700px) {
  .appointly-modern-booking .appointly-schedule-grid {
    flex-direction: column;
  }

  .appointly-modern-booking .appointly-schedule-left {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .appointly-modern-booking .appointly-schedule-right {
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    padding-top: 20px;
  }
}

/* Inline calendar (visible date grid instead of a dropdown) */
.appointly-modern-booking .appointly-inline-calendar-wrap {
  position: relative;
}

.appointly-modern-booking #date_loading {
  position: absolute;
  top: 3px;
  right: 32px;
  z-index: 10;
}

.appointly-modern-booking #appointment-date {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0 !important;
}

.appointly-modern-booking .xdsoft_datetimepicker.xdsoft_inline {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_datepicker {
  width: 100%;
  margin-left: 0;
  float: none;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar {
  width: 100%;
  /* Isolate calendar repaints — prevents date clicks from reflowing the rest of the page */
  contain: layout style;
  will-change: transform;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar table {
  width: 100%;
  /* Prevent table layout shifts from propagating */
  table-layout: fixed;
}

/* While xdsoft is regenerating the calendar (re-classing all cells after an
   onGenerate callback), suppress transitions so no cell flickers */
.appointly-modern-booking .xdsoft_datetimepicker.appointly-generating .xdsoft_calendar td > div {
  transition: none !important;
}

/* Selected cell: make the filled circle feel instant and confident */
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current > div,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default > div {
  transition: background 0s, color 0s, box-shadow 0.15s ease !important;
}

/* Month/year header, stripped down to Calendly's plain "‹ Month Year ›" */
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_today_button {
  display: none;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_monthpicker {
  display: flex !important;
  align-items: center !important;
  height: 32px !important;
  line-height: 32px !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  position: relative;
  text-align: left;
  box-sizing: border-box !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  width: auto;
  height: 32px !important;
  line-height: 32px !important;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--appointly-ink);
  background: transparent;
  float: none;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_label i {
  opacity: 0.35;
}

/* Plain line-chevron arrows instead of the plugin's default sprite icons */
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_prev,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_next {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  opacity: 0.55;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  float: none;
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_next {
  margin-inline-start: auto !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_prev:hover,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_next:hover {
  opacity: 1;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475467'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19l-7-7 7-7'/%3E%3C/svg%3E") !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475467'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_prev:hover,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_next:hover {
  opacity: 1;
}

/* Weekday header row, plain muted text instead of a shaded box */
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar th {
  height: 32px;
  background: transparent !important;
  border: 0 !important;
  color: #64748b !important;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Day cells: transparent grid, the day number itself becomes a circular badge */
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td {
  height: 48px;
  background: transparent !important;
  border: 0 !important;
  text-align: center;
  vertical-align: middle;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td>div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  padding: 0 !important;
  border-radius: 999px;
  color: #0f172a !important;
  font-size: 14px;
  font-weight: 700;
  /* Only transition individual hovered cells, NOT on generate (see .appointly-generating above) */
  transition: background 0.15s ease, color 0.15s ease;
  /* Promote each cell to its own compositing layer — eliminates cross-cell repaint */
  will-change: background-color;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td:not(.xdsoft_disabled):hover>div {
  background: #eff6ff !important;
  color: #2563eb !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today>div {
  border: 1.5px solid #2563eb !important;
  color: #2563eb !important;
  background: transparent !important;
  box-shadow: none !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current>div,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default>div {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 0 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month>div {
  color: #8392a5 !important;
  opacity: 0.45;
  font-weight: 500;
}

/* Unavailable / blocked days: clearly visible as muted text, not washed out or invisible */
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.blocked-date,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.provider-unavailable,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.no-slots-date {
  cursor: not-allowed;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled>div,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.blocked-date>div,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.provider-unavailable>div,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.no-slots-date>div {
  background: transparent !important;
  color: #8392a5 !important;
  opacity: 0.65;
  font-weight: 500;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.blocked-date:before,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.provider-unavailable:before,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.no-slots-date:before {
  content: none !important;
}

.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover>div,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.blocked-date:hover>div,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.provider-unavailable:hover>div,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.no-slots-date:hover>div {
  background: transparent !important;
  color: #8392a5 !important;
}

/* Neutralize the legacy full-cell red flood styling (base rules earlier in this file) */
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled.xdsoft_current,
.appointly-modern-booking .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

/* Time slot list (vertical, scrollable) instead of a grid of tiles */
.appointly-modern-booking .appointly-time-list .time-slot-btn {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

/* The step's real submit trigger stays off-screen; the inline "Next" below is what users see/click */
.appointly-modern-booking .appointly-sr-next {
  display: none !important;
}

/* Selecting a time slot morphs its row into [time | Next], Calendly-style */
.appointly-modern-booking .appointly-time-slot-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.appointly-modern-booking .appointly-time-slot-row .time-slot-btn {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
}

.appointly-modern-booking .appointly-time-slot-row.is-selected .time-slot-btn.selected::after {
  display: none;
}

/* Hidden by collapsing to zero width instead of display:none, so it can slide/fade into view */
.appointly-modern-booking .appointly-inline-next-btn {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  padding: 0;
  margin-left: 0;
  border: 0;
  border-radius: 14px;
  background: var(--appointly-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(38, 99, 235, 0.28);
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
  transition: max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    margin-left 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease;
}

.appointly-modern-booking .appointly-inline-next-btn:hover {
  background: #1d4fd1;
}

.appointly-modern-booking .appointly-time-slot-row.is-selected .appointly-inline-next-btn {
  max-width: 140px;
  padding: 0 20px;
  margin-left: 8px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.appointly-modern-booking .input-group {
  display: flex;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.02);
}

.appointly-modern-booking .input-group .input-group-addon {
  display: inline-flex;
  width: 48px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--appointly-line) !important;
  border-right: 0 !important;
  border-radius: 12px 0 0 12px !important;
  background: #fff !important;
  color: var(--appointly-muted);
}

.appointly-modern-booking .input-group .bootstrap-select {
  width: calc(100% - 48px) !important;
}

.appointly-modern-booking .input-group .bootstrap-select .dropdown-toggle {
  min-height: 46px;
  margin: 0 !important;
  outline: 0 !important;
  border-left: 0 !important;
  border-radius: 0 12px 12px 0 !important;
  box-shadow: none !important;
}

/* Small, Calendly-style compact timezone dropdown (globe icon + current zone) */
.appointly-modern-booking .appointly-timezone-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.appointly-modern-booking .appointly-timezone-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--appointly-muted);
  color: var(--appointly-muted);
  display: block;
}

.appointly-modern-booking .appointly-timezone-select .bootstrap-select {
  width: auto !important;
  max-width: 100%;
  display: inline-flex !important;
  align-items: center !important;
}

.appointly-modern-booking .appointly-timezone-select .bootstrap-select .dropdown-toggle,
.bootstrap-select.appointly-timezone-picker .dropdown-toggle {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 2px 22px 2px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #344054 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}

.appointly-modern-booking .appointly-timezone-select .bootstrap-select .filter-option,
.appointly-modern-booking .appointly-timezone-select .bootstrap-select .filter-option-inner,
.appointly-modern-booking .appointly-timezone-select .bootstrap-select .filter-option-inner-inner,
.bootstrap-select.appointly-timezone-picker .filter-option,
.bootstrap-select.appointly-timezone-picker .filter-option-inner,
.bootstrap-select.appointly-timezone-picker .filter-option-inner-inner {
  color: #344054 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px !important;
  height: auto !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.appointly-modern-booking .appointly-timezone-select .bootstrap-select .dropdown-toggle .caret,
.bootstrap-select.appointly-timezone-picker .dropdown-toggle .caret {
  position: absolute !important;
  top: 50% !important;
  right: 4px !important;
  margin-top: -2px !important;
  vertical-align: middle !important;
  border: solid var(--appointly-muted, #64748b) !important;
  border-width: 0 1.5px 1.5px 0 !important;
  padding: 2.5px !important;
  transform: rotate(45deg) !important;
  transition: transform 0.2s ease, margin-top 0.2s ease;
}

.appointly-modern-booking .appointly-timezone-select .bootstrap-select.open .dropdown-toggle .caret,
.bootstrap-select.appointly-timezone-picker.open .dropdown-toggle .caret {
  margin-top: 1px !important;
  transform: rotate(-135deg) !important;
}

.appointly-modern-booking .appointly-timezone-select .bootstrap-select .dropdown-toggle:hover,
.appointly-modern-booking .appointly-timezone-select .bootstrap-select .dropdown-toggle:focus {
  color: var(--appointly-primary) !important;
}

.appointly-modern-booking .appointly-timezone-select .bootstrap-select.open .dropdown-toggle,
.appointly-modern-booking .appointly-timezone-select .bootstrap-select.open .dropdown-toggle:focus {
  border-color: var(--appointly-primary) !important;
  box-shadow: 0 0 0 3px rgba(38, 99, 235, 0.1) !important;
}

.appointly-modern-booking .input-group .bootstrap-select.open .dropdown-toggle,
.appointly-modern-booking .input-group:focus-within .input-group-addon {
  border-color: var(--appointly-primary) !important;
}

.appointly-modern-booking .input-group .bootstrap-select.open .dropdown-toggle {
  border-color: var(--appointly-line) !important;
  box-shadow: none !important;
}

.appointly-modern-booking .input-group .bootstrap-select.open .dropdown-toggle:focus {
  box-shadow: none !important;
}

.appointly-modern-booking .bootstrap-select.open,
.appointly-modern-booking .bootstrap-select.open .dropdown-menu {
  z-index: 30;
}

/* The timezone picker is initialized with container:'body' so its dropdown
   menu escapes the booking card's overflow-y:auto clipping; that moves the
   whole .bootstrap-select wrapper (and its classes) out from under
   .appointly-modern-booking, so it needs its own unscoped rules. */
.bootstrap-select.appointly-timezone-picker .dropdown-toggle {
  min-height: 0;
  padding: 4px 28px 4px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #344054 !important;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none !important;
}

.bootstrap-select.appointly-timezone-picker .filter-option,
.bootstrap-select.appointly-timezone-picker .filter-option-inner,
.bootstrap-select.appointly-timezone-picker .filter-option-inner-inner {
  color: #344054 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.bootstrap-select.appointly-timezone-picker .dropdown-toggle:hover,
.bootstrap-select.appointly-timezone-picker .dropdown-toggle:focus {
  color: var(--appointly-primary) !important;
}

.bootstrap-select.appointly-timezone-picker.open,
.bootstrap-select.appointly-timezone-picker .dropdown-menu {
  z-index: 1060;
}

.bootstrap-select.appointly-timezone-picker .dropdown-menu {
  border: 1px solid rgba(217, 225, 236, 0.95);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.16);
}

.bootstrap-select.appointly-timezone-picker .dropdown-menu .bs-searchbox {
  padding: 10px;
}

.bootstrap-select.appointly-timezone-picker .dropdown-menu .bs-searchbox input {
  box-sizing: border-box !important;
  height: 38px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid var(--appointly-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-size: 13px;
}

.bootstrap-select.appointly-timezone-picker .dropdown-menu .bs-searchbox input:focus {
  border-color: var(--appointly-primary) !important;
  box-shadow: 0 0 0 3px rgba(38, 99, 235, 0.1) !important;
}

.appointly-modern-booking .bootstrap-select.dropup .dropdown-menu,
.appointly-modern-booking .input-group .bootstrap-select.dropup .dropdown-menu,
.appointly-modern-booking #step-3 .bootstrap-select .dropdown-menu {
  top: calc(100% + 8px) !important;
  bottom: auto !important;
}

.appointly-modern-booking .bootstrap-select .dropdown-menu {
  border: 1px solid rgba(217, 225, 236, 0.95);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.16);
}

.appointly-modern-booking .bootstrap-select .dropdown-menu .bs-searchbox {
  padding: 10px;
}

.appointly-modern-booking .bootstrap-select .dropdown-menu .bs-searchbox input {
  box-sizing: border-box !important;
  height: 38px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid var(--appointly-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-size: 13px;
}

.appointly-modern-booking .bootstrap-select .dropdown-menu .bs-searchbox input:focus {
  border-color: var(--appointly-primary) !important;
  box-shadow: 0 0 0 3px rgba(38, 99, 235, 0.1) !important;
}

.appointly-modern-booking .appointly-final-step {
  padding-top: 2px;
}

.booking-step.step-4-content {
  padding-bottom: 0;
}

/* ─── Persistent two-pane layout ────────────────────────────────────────────
   The outer wrapper is now a simple flex row.
   .appointly-shared-sidebar — always in the DOM, never hidden/shown.
   .appointly-steps-main-area — contains the .booking-step divs that fade. */
.appointly-modern-booking .appointly-two-pane {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0 !important;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: linear-gradient(to right, #182234 280px, #ffffff 280px) !important;
  border: none !important;
  outline: none !important;
  isolation: isolate;
  clip-path: inset(0 round 24px);
}

/* When neither step 3 nor 4 is active (e.g. on steps 1 or 2), hide the two-pane wrapper */
.appointly-modern-booking .appointly-two-pane:not(:has(.booking-step.active)) {
  display: none !important;
}

/* The shared persistent sidebar — permanently in the DOM */
.appointly-modern-booking .appointly-shared-sidebar {
  position: relative;
  flex: 0 0 280px;
  max-width: 280px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top-left-radius: 24px !important;
  border-bottom-left-radius: 24px !important;
  background: #182234 !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  color: #ffffff;
}

.appointly-modern-booking .appointly-shared-sidebar.has-service-bg-image {
  background-image:
    linear-gradient(180deg, rgba(20, 28, 45, 0.72) 0%, rgba(20, 28, 45, 0.58) 40%, rgba(20, 28, 45, 0.88) 100%),
    var(--appointly-side-bg-image) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* The steps main area — flex-fills the space to the right of the sidebar */
.appointly-modern-booking .appointly-steps-main-area {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff !important;
  border-top-right-radius: 24px !important;
  border-bottom-right-radius: 24px !important;
}

/* Individual booking steps inside the steps main area */
.appointly-modern-booking .appointly-steps-main-area .booking-step {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border-radius: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Rows that appear only on step 4 — smooth height and opacity transitions */
.appointly-modern-booking .appointly-side-row-datetime,
.appointly-modern-booking .appointly-side-row-timezone {
  display: flex !important;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              margin-bottom 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.appointly-modern-booking .appointly-side-row-datetime.row-hidden,
.appointly-modern-booking .appointly-side-row-timezone.row-hidden {
  opacity: 0 !important;
  max-height: 0 !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transform: translateY(-6px);
  pointer-events: none !important;
}

.appointly-modern-booking .appointly-side-row-datetime.row-visible,
.appointly-modern-booking .appointly-side-row-timezone.row-visible {
  opacity: 1 !important;
  max-height: 48px !important;
  margin-bottom: 12px !important;
  transform: translateY(0);
  pointer-events: auto !important;
}


[dir="rtl"] .appointly-modern-booking .appointly-two-pane,
body.appointments-external-form[dir="rtl"] .appointly-two-pane {
  background: linear-gradient(to left, #182234 280px, #ffffff 280px) !important;
}

.appointly-modern-booking .appointly-two-pane-sidebar {
  position: relative;
  flex: 0 0 280px;
  max-width: 280px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top-left-radius: 24px !important;
  border-bottom-left-radius: 24px !important;
  background: #182234 !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  color: #ffffff;
  /* Note: no 'contain' here — the parent .appointly-two-pane clips overflow via
     overflow:hidden + mask-image, and we need JS opacity transitions to work freely. */
}

/* Sidebar text elements update instantly — no transitions, no fades */

[dir="rtl"] .appointly-modern-booking .appointly-two-pane-sidebar,
body.appointments-external-form[dir="rtl"] .appointly-two-pane-sidebar {
  border-right: none !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 24px !important;
  border-bottom-right-radius: 24px !important;
}

.appointly-modern-booking .appointly-two-pane-sidebar.has-service-bg-image {
  background-image:
    linear-gradient(180deg, rgba(20, 28, 45, 0.72) 0%, rgba(20, 28, 45, 0.58) 40%, rgba(20, 28, 45, 0.88) 100%),
    var(--appointly-side-bg-image) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.appointly-modern-booking .appointly-side-service-thumb {
  display: none !important;
}

/* "Powered by Connex" — pinned to the bottom of the sidebar via margin-top:auto,
   falling below the meta block instead when the sidebar content overflows and scrolls. */
.appointly-modern-booking .appointly-side-powered-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  flex-shrink: 0;
}

.appointly-modern-booking .appointly-side-powered-by:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.appointly-modern-booking .appointly-side-powered-by-logo {
  height: 14px;
  width: auto;
  /* Source logo is black-on-transparent; invert so it reads on the dark sidebar */
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.appointly-modern-booking .appointly-side-powered-by:hover .appointly-side-powered-by-logo {
  opacity: 1;
}

.appointly-modern-booking .appointly-two-pane-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 32px 28px 28px 32px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #ffffff !important;
  border-top-right-radius: 24px !important;
  border-bottom-right-radius: 24px !important;
}

[dir="rtl"] .appointly-modern-booking .appointly-two-pane-main,
body.appointments-external-form[dir="rtl"] .appointly-two-pane-main {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top-left-radius: 24px !important;
  border-bottom-left-radius: 24px !important;
}

.appointly-modern-booking #step-3 .appointly-two-pane-main {
  padding: 32px 28px 0 32px !important;
  overflow: hidden !important;
}

/* Back button slot in the shared sidebar: a fixed-size, always-in-flow box that
   permanently reserves the button's 40px × 40px (+18px margin) footprint. The
   button itself is absolutely positioned inside it and only its opacity/
   visibility toggle between steps — so nothing below it ever shifts, on
   Step 3 (button invisible) or Step 4 (button visible). */
.appointly-modern-booking .appointly-side-back-slot {
  position: relative;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.appointly-modern-booking .appointly-side-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  cursor: pointer;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  outline: none;
  padding: 0;
  z-index: 2;
}

.appointly-modern-booking .appointly-side-back.btn-back-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.92);
}

.appointly-modern-booking .appointly-side-back.btn-back-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: scale(1);
}

.appointly-modern-booking .appointly-side-back svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2.3px;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.2s ease;
}

.appointly-modern-booking .appointly-side-back:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff !important;
  box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.3);
  transform: translateX(-3px);
}

.appointly-modern-booking .appointly-side-back:hover svg {
  stroke: #ffffff;
  transform: translateX(-1px);
}

.appointly-modern-booking .appointly-side-back:active {
  transform: translateX(-1px) scale(0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.appointly-modern-booking .appointly-side-back:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.appointly-modern-booking .appointly-side-provider {
  margin: 0 0 4px;
  color: #94a3b8 !important;
  font-size: 13.5px;
  font-weight: 600;
}

.appointly-modern-booking .appointly-side-title {
  margin: 0 0 12px;
  color: #ffffff !important;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.appointly-modern-booking .appointly-side-price {
  color: #f8fafc !important;
  font-weight: 400 !important;
  font-size: 14.5px;
}

.appointly-modern-booking .appointly-side-note:empty {
  display: none;
}

/* Service description, shown right under the title with clear gap below */
.appointly-modern-booking .appointly-shared-sidebar .appointly-side-description,
.appointly-modern-booking .appointly-shared-sidebar .appointly-side-note.appointly-side-description {
  margin: 0 0 24px !important;
  color: #cbd5e1 !important;
  font-size: 13.5px;
  line-height: 1.55;
  display: block;
}

.appointly-modern-booking .appointly-side-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Location row is explicitly visible on left */
.appointly-modern-booking .appointly-shared-sidebar .appointly-side-row-location {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  color: #cbd5e1 !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.appointly-modern-booking .appointly-shared-sidebar .appointly-side-row:has(.appointly-side-price:empty) {
  display: none;
}

/* Shared layout for icon + text rows, used both in the dark persistent sidebar
   and in light-background reuses of the same markup (e.g. the success page
   summary card). Color is set separately per background. */
.appointly-modern-booking .appointly-side-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

/* Sidebar rows are on a dark panel, so their text needs light colors — scoped to
   the shared sidebar so it doesn't bleed onto light-background reuses of the
   same .appointly-side-row markup (e.g. the success page summary card). */
.appointly-modern-booking .appointly-shared-sidebar .appointly-side-row {
  color: #f1f5f9 !important;
}

.appointly-modern-booking .appointly-shared-sidebar .appointly-side-duration,
.appointly-modern-booking .appointly-shared-sidebar .appointly-side-location,
.appointly-modern-booking .appointly-shared-sidebar .appointly-side-price {
  font-weight: 400;
  color: #f8fafc !important;
}

.appointly-modern-booking .appointly-side-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.appointly-modern-booking .appointly-shared-sidebar .appointly-side-icon {
  color: #93c5fd !important;
  stroke: #93c5fd !important;
  stroke-width: 2px;
}

.appointly-modern-booking .appointly-shared-sidebar .appointly-side-note {
  margin: 14px 0 0;
  color: #94a3b8 !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 900px) {

  .appointly-modern-booking .appointly-booking-panel,
  .appointly-modern-booking .appointly-booking-panel[data-preset-mode="1"],
  .appointly-modern-booking .appointly-booking-panel:has(.appointly-two-pane),
  .appointly-modern-booking .appointly-booking-panel:has(#step-3.active),
  .appointly-modern-booking .appointly-booking-panel:has(#step-4.active),
  .appointly-modern-booking .appointly-booking-panel.appointly-has-two-pane {
    position: fixed !important;
    inset: 10px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    overflow-y: auto !important;
    padding: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.35) !important;
    background: #182234 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  [dir="rtl"] .appointly-modern-booking .appointly-booking-panel,
  [dir="rtl"] .appointly-modern-booking .appointly-booking-panel[data-preset-mode="1"],
  [dir="rtl"] .appointly-modern-booking .appointly-booking-panel:has(.appointly-two-pane),
  [dir="rtl"] .appointly-modern-booking .appointly-booking-panel:has(#step-3.active),
  [dir="rtl"] .appointly-modern-booking .appointly-booking-panel:has(#step-4.active),
  body.appointments-external-form[dir="rtl"] .appointly-booking-panel[data-preset-mode="1"],
  body.appointments-external-form[dir="rtl"] .appointly-booking-panel:has(.appointly-two-pane) {
    background: #182234 !important;
  }

  .appointly-modern-booking .appointly-two-pane {
    flex-direction: column;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    margin: 0;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .appointly-modern-booking .appointly-two-pane-sidebar,
  .appointly-modern-booking .appointly-shared-sidebar {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 22px 18px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 0 !important;
  }

  .appointly-modern-booking .appointly-two-pane-main,
  .appointly-modern-booking #step-3 .appointly-two-pane-main {
    flex: 1 0 auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 22px 18px 24px !important;
    border-radius: 0 !important;
  }

  .appointly-modern-booking .appointly-steps-main-area {
    flex: 1 0 auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
  }

  .appointly-modern-booking .appointly-steps-main-area .booking-step {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

.appointly-modern-booking .appointly-detail-panel {
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96)),
    #fff !important;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.07) !important;
}

.appointly-modern-booking .appointly-detail-panel-plain {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.appointly-modern-booking .appointly-detail-panel>.tw-flex:first-child>div {
  background: linear-gradient(135deg, var(--appointly-primary), #5b8df9) !important;
  box-shadow: 0 10px 22px rgba(38, 99, 235, 0.22);
}

/* "Add guests" pill toggle button */
.appointly-modern-booking .appointly-add-guests-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--appointly-primary);
  background: #fff;
  color: var(--appointly-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.appointly-modern-booking .appointly-add-guests-btn:hover {
  background: #eff6ff;
}

.appointly-modern-booking label .fa-circle-info {
  margin-left: 4px;
  cursor: help;
  font-size: 12px;
}


@media (max-width: 900px) {

  .appointly-modern-booking .main_wrapper,
  .appointly-modern-booking .appointly-booking-panel,
  .appointly-booking-panel {
    padding: 0 18px !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .appointly-modern-booking .step-indicator {
    padding: 7px;
  }

  .appointly-modern-booking .step-number {
    width: 34px !important;
    height: 34px !important;
    margin-right: 0 !important;
    flex-basis: 34px;
  }

  .appointly-modern-booking .step-title {
    display: none;
  }

  .appointly-modern-booking .step-line {
    min-width: 16px;
  }
}

@media (max-width: 640px) {
  .appointly-modern-booking .container {
    width: min(100% - 18px, 100%);
  }

  .appointly-modern-booking .service-card {
    padding: 12px !important;
  }

  .appointly-modern-booking .provider-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .appointly-modern-booking .appointly-provider-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }

  .appointly-modern-booking .provider-card .view-provider-details {
    flex: 1;
  }

  .appointly-provider-avatar {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .appointly-provider-modal-profile {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .appointly-provider-modal-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .appointly-provider-modal-avatar img {
    border-radius: 14px;
  }
}

/* RTL (Persian, Arabic, etc.) */
body.appointments-external-form[dir="rtl"] .step-indicator,
[dir="rtl"] .appointly-modern-booking .step-indicator {
  direction: rtl;
  padding: 9px 9px 9px 13px;
}

body.appointments-external-form[dir="rtl"] .step-number,
[dir="rtl"] .appointly-modern-booking .step-number {
  margin: 0 0 0 10px !important;
}

body.appointments-external-form[dir="rtl"] .step-line::after,
[dir="rtl"] .appointly-modern-booking .step-line::after {
  transform-origin: right;
}

body.appointments-external-form[dir="rtl"] .progress-bar,
[dir="rtl"] .appointly-modern-booking .progress-bar {
  left: auto !important;
  right: 0 !important;
  background: linear-gradient(270deg, var(--appointly-primary), var(--appointly-success)) !important;
}

body.appointments-external-form[dir="rtl"] .appointly-card-check,
[dir="rtl"] .appointly-modern-booking .appointly-card-check {
  right: auto;
  left: 14px;
}

body.appointments-external-form[dir="rtl"] .appointly-provider-actions,
[dir="rtl"] .appointly-modern-booking .appointly-provider-actions {
  justify-content: flex-start;
}

body.appointments-external-form[dir="rtl"] .appointly-provider-actions .appointly-card-check,
[dir="rtl"] .appointly-modern-booking .appointly-provider-actions .appointly-card-check {
  right: auto;
  left: 5px;
}

body.appointments-external-form[dir="rtl"] .appointly-provider-topline,
body.appointments-external-form[dir="rtl"] .appointly-provider-meta,
body.appointments-external-form[dir="rtl"] .appointly-service-meta,
body.appointments-external-form[dir="rtl"] .appointly-schedule-row,
body.appointments-external-form[dir="rtl"] .appointly-provider-modal-profile,
[dir="rtl"] .appointly-modern-booking .appointly-provider-topline,
[dir="rtl"] .appointly-modern-booking .appointly-provider-meta,
[dir="rtl"] .appointly-modern-booking .appointly-service-meta,
[dir="rtl"] .appointly-modern-booking .appointly-schedule-row,
[dir="rtl"] .appointly-modern-booking .appointly-provider-modal-profile {
  direction: rtl;
}

body.appointments-external-form[dir="rtl"] .appointly-provider-meta span,
body.appointments-external-form[dir="rtl"] .appointly-provider-modal-copy p,
[dir="rtl"] .appointly-modern-booking .appointly-provider-meta span,
[dir="rtl"] .appointly-modern-booking .appointly-provider-modal-copy p {
  unicode-bidi: plaintext;
}

body.appointments-external-form[dir="rtl"] .btn-prev-step,
[dir="rtl"] .appointly-modern-booking .btn-prev-step {
  flex-direction: row-reverse;
}

body.appointments-external-form[dir="rtl"] .btn-prev-step svg,
[dir="rtl"] .appointly-modern-booking .btn-prev-step svg {
  transform: rotate(180deg);
}

body.appointments-external-form[dir="rtl"] .btn-prev-step:hover svg,
[dir="rtl"] .appointly-modern-booking .btn-prev-step:hover svg {
  transform: rotate(180deg) translateX(-2px);
}

body.appointments-external-form[dir="rtl"] .appointly-side-back:hover,
[dir="rtl"] .appointly-modern-booking .appointly-side-back:hover {
  transform: translateX(3px);
}

body.appointments-external-form[dir="rtl"] .appointly-side-back:hover svg,
[dir="rtl"] .appointly-modern-booking .appointly-side-back:hover svg {
  transform: rotate(180deg) translateX(-1.5px);
}

body.appointments-external-form[dir="rtl"] .btn-next::after,
body.appointments-external-form[dir="rtl"] #book-appointment-btn::after,
[dir="rtl"] .appointly-modern-booking .btn-next::after,
[dir="rtl"] .appointly-modern-booking #book-appointment-btn::after {
  content: "\2190";
}

body.appointments-external-form[dir="rtl"] .btn-next:hover::after,
body.appointments-external-form[dir="rtl"] #book-appointment-btn:hover::after,
[dir="rtl"] .appointly-modern-booking .btn-next:hover::after,
[dir="rtl"] .appointly-modern-booking #book-appointment-btn:hover::after {
  transform: translateX(-2px);
}

body.appointments-external-form[dir="rtl"] .time-slot-btn.selected::after,
[dir="rtl"] .appointly-modern-booking .time-slot-btn.selected::after {
  right: auto;
  left: -10px;
}

body.appointments-external-form[dir="rtl"] .form-control,
body.appointments-external-form[dir="rtl"] .bootstrap-select .filter-option,
body.appointments-external-form[dir="rtl"] .bootstrap-select .dropdown-menu li a,
[dir="rtl"] .appointly-modern-booking .form-control,
[dir="rtl"] .appointly-modern-booking .bootstrap-select .filter-option,
[dir="rtl"] .appointly-modern-booking .bootstrap-select .dropdown-menu li a {
  text-align: right;
}

body.appointments-external-form[dir="rtl"] .bootstrap-select.btn-group .dropdown-toggle .caret,
[dir="rtl"] .appointly-modern-booking .bootstrap-select.btn-group .dropdown-toggle .caret {
  right: auto;
  left: 12px;
}

body.appointments-external-form[dir="rtl"] .input-group .input-group-addon,
[dir="rtl"] .appointly-modern-booking .input-group .input-group-addon {
  border-right: 1px solid var(--appointly-line) !important;
  border-left: 0 !important;
  border-radius: 0 12px 12px 0 !important;
}

body.appointments-external-form[dir="rtl"] .input-group .bootstrap-select .dropdown-toggle,
[dir="rtl"] .appointly-modern-booking .input-group .bootstrap-select .dropdown-toggle {
  border-right: 0 !important;
  border-left: 1px solid var(--appointly-line) !important;
  border-radius: 12px 0 0 12px !important;
}

body.appointments-external-form[dir="rtl"] #providerDetailsModal .schedule-list,
[dir="rtl"] .appointly-modern-booking #providerDetailsModal .schedule-list {
  padding-right: 0;
  padding-left: 4px;
}

body.appointments-external-form[dir="rtl"] #providerDetailsModal .close,
[dir="rtl"] .appointly-modern-booking #providerDetailsModal .close {
  float: left;
}

@media (prefers-reduced-motion: reduce) {

  .appointly-modern-booking *,
  .appointly-modern-booking *::before,
  .appointly-modern-booking *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}