/* Fallback utilities (in case Tailwind/Perfex TW utilities are not loaded) */
.tw-hidden{display:none !important;}

body {
  background: #FCFCFC !important;
}





/* -------------------------------------------------------------------------
   External booking - header (logo + language selector)
   ------------------------------------------------------------------------- */
.logo-header{
  text-align:center;
  padding:20px 0;
}
.logo-header .logo{
  display:inline-block;
  max-width:200px;
  margin-top:30px;
}
.logo-header .logo img{
  max-height:60px;
  width:auto;
}
.logo-header .logo-text{
  font-size:24px;
  font-weight:700;
  color:#333;
  text-decoration:none;
}
.logo-header .logo-text:hover{ text-decoration:none; color: var(--appointly-accent); }

.language-selector{ z-index:10; }
.language-selector select{
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right .75rem center;
  background-size:16px 12px;
  padding-right:2.5rem;
  transition: all .2s ease;
  font-size:14px;
  cursor:pointer;
}
.language-selector select:hover{
  border-color:var(--appointly-accent);
  box-shadow:0 0 0 1px rgba(var(--appointly-accent-rgb), .55);
}
.language-selector select:focus{
  outline:none;
  border-color:var(--appointly-accent);
  box-shadow:0 0 0 3px rgba(var(--appointly-accent-rgb), 0.10);
}
.language-selector select:disabled{
  opacity:.6;
  cursor:not-allowed;
  background-color:#f7fafc;
}

/* Better mobile responsiveness for the header */
@media (max-width: 768px){
  .appointment-header{
    flex-direction:column;
    align-items:center !important;
    gap:1rem;
  }
  .appointment-header h4{
    order:1;
    text-align:center !important;
  }
  .appointment-header>div:last-child{
    order:2;
    width:100%;
    justify-content:center !important;
  }
  .appointment-header>div:first-child{ display:none; }
  .language-selector{ align-self:flex-end; margin-top:.5rem; }
  .language-selector select{ min-width:100px; }
}


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

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

body .available_time_info {
  background: var(--appointly-accent);
}

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-header {
  display: flex;
  justify-content: center;
}

.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 {
  padding: 25px;
  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 {
}

/* Custom select styling */
.selectpicker {
  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 {
}

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

/* Base styles */
.appointments-external-form {
}

.main_wrapper {
}

/* Header styling */
.appointment-header {
}

.appointment-header h4 {
}

.appointment-header p {
}

.appointment-header hr {
}

/* Form sections */
.form-section {
}

.form-section-title {
}

/* Form controls */
.form-group {
}

.form-group label {
}

.form-group label.error,
.invalid-feedback {
}

/* Add more space below inputs to accommodate error messages */
.form-group {
}

/* Specific styling for select validation */
.bootstrap-select.form-control + .error {
}

/* Error state for inputs */
.form-control.error,
.form-control.is-invalid {
}

/* Error state for select */
.bootstrap-select.is-invalid .dropdown-toggle {
}

.form-control {
  transition: all 0.2s ease;
}

/* Working hours section */
#provider_schedule {
}

.working-hours-title {
}

.working-hours-list {
}

.working-hours-item {
}

/* Submit button */
.btn-primary {
  transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .main_wrapper {
  }

  .form-section {
  }
}

/* Loading states */
.form-loading {
}

/* Success states */
.is-valid {
}

/* Date and Location styling */
.input-group.date {
}

.input-group.date input {
}

.input-group.date .input-group-addon {
}

.calendar-icon {
}

/* Datepicker styling */
.bootstrap-datetimepicker-widget {
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
}

.bootstrap-datetimepicker-widget table td {
}

/* Terms and conditions styling */
.checkbox {
}

.checkbox input[type="checkbox"] {
}

.checkbox label {
}
/* Error state */
.has-error .checkbox input[type="checkbox"] {
}

.has-error .checkbox label {
}

/* Disabled submit button */
.btn-primary:disabled {
}

/* Booking form step by step styling */
.booking-step {
}

.booking-step.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: var(--appointly-accent);
  box-shadow: 0 0 0 4px rgba(var(--appointly-accent-rgb), 0.10);
}

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

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

.step-indicator.active .step-title {
  color: var(--appointly-accent);
  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: var(--appointly-accent); /* 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;
  }
}

/* Service cards styling */
.service-card {
  transition: all 0.2s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.service-card.selected {
  border: 1px solid rgba(var(--appointly-accent-rgb), .32);
  background-color: rgba(var(--appointly-accent-rgb), 0.05);
  border-radius: 6px;
}

/* Provider cards styling */
.provider-card {
  transition: all 0.2s ease;
  cursor: pointer;
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 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(var(--appointly-accent-rgb), 0.08);
  color: var(--appointly-accent);
  border-color: var(--appointly-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(var(--appointly-accent-rgb), 0.20);
}

.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: var(--appointly-accent);
  font-weight: 500;
}

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

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

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

/* Service cards styling */
.service-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Provider cards styling */
.provider-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.provider-card.selected {
  border: 1px solid rgba(var(--appointly-accent-rgb), .32);
  background-color: rgba(var(--appointly-accent-rgb), 0.05);
  border-radius: 6px;
}

/* Disabled provider styling */
.provider-card.disabled-provider {
  opacity: 0.75;
  cursor: not-allowed;
  background-color: rgba(0, 0, 0, 0.03);
}

.provider-card.disabled-provider:hover {
  transform: none;
  box-shadow: none;
  border-color: #e5e7eb;
}

/* Tooltip styling enhancement */
.provider-card[data-toggle="tooltip"] {
  position: relative;
}

/* Make buttons look nice */
.btn-prev-step {
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

/* 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;
}

/* Add tooltip styling for the datepicker - improved version */
.xdsoft_datetimepicker .xdsoft_calendar td {
  position: relative;
}

/* Custom tooltip for blocked dates - simplified version that works with title attributes */
.xdsoft_date[title]:hover:after,
.xdsoft_date.blocked-date[title]:hover:after,
.xdsoft_date.provider-unavailable[title]:hover:after {
  content: attr(title);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10000;
  width: auto;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 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: var(--appointly-accent) !important;
  background-color: rgba(var(--appointly-accent-rgb), 0.08) !important;
  color: var(--appointly-accent) !important;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(var(--appointly-accent-rgb), 0.20),
    0 2px 4px -1px rgba(var(--appointly-accent-rgb), 0.10) !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='%23111827'%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: var(--appointly-accent); /* 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: var(--appointly-accent);
  box-shadow: 0 0 0 4px rgba(var(--appointly-accent-rgb), 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: var(--appointly-accent);
  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;
  }
}



/* --------------------------------------------------------------------------
   External Booking Form - Date/Time (Step 2) redesign
   -------------------------------------------------------------------------- */
.appointly-datetime-panel{
    border-color:var(--appointly-accent) !important; /* orange accent */
}

.appointly-duration-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 14px;
    border-radius:999px;
    border:1px solid #e5e7eb;
    background:#fff;
    font-weight:600;
    font-size:13px;
    cursor:default;
}
.appointly-duration-pill.active{
    border-color:var(--appointly-accent);
    color:var(--appointly-accent);
}

/* Time slots list (right column) */
.appointly-time-slots-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    /* Show ~4 time slots, the rest scroll inside */
    max-height: 272px;
    overflow-y:auto;
    overscroll-behavior: contain;
    padding-right:4px;
}
.appointly-time-slots-list .time-slot-btn{
    min-height:56px;

    width:100%;
    text-align:center;
    padding:14px 12px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    background:#fff;
    font-weight:600;
    font-size:14px;
    transition:all .15s ease-in-out;
}
.appointly-time-slots-list .time-slot-btn:hover{
    border-color:var(--appointly-accent);
    box-shadow:0 4px 14px rgba(0,0,0,.06);
}
.appointly-time-slots-list .time-slot-btn.selected,
.appointly-time-slots-list .time-slot-btn:focus{
    outline:none;
    border-color:var(--appointly-accent);
    box-shadow:0 0 0 3px rgba(var(--appointly-accent-rgb), .18);
}

/* Inline calendar styling (xdsoft datetimepicker) */
.appointly-inline-calendar-wrap .xdsoft_datetimepicker{
    border:none !important;
    box-shadow:none !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
}
.appointly-inline-calendar-wrap .xdsoft_datepicker{
    width:100% !important;
}
.appointly-inline-calendar-wrap .xdsoft_month{
    font-weight:700;
}
.appointly-inline-calendar-wrap .xdsoft_calendar{
    width:100% !important;
}
.appointly-inline-calendar-wrap .xdsoft_calendar th{
    color:#6b7280;
    font-weight:600;
    padding:8px 0;
}
.appointly-inline-calendar-wrap .xdsoft_calendar td{
    padding:6px 0;
}
.appointly-inline-calendar-wrap .xdsoft_calendar td div{
    width:42px;
    height:42px;
    line-height:42px;
    border-radius:999px;
    margin:0 auto;
    font-weight:600;
}
.appointly-inline-calendar-wrap .xdsoft_current{
    background:var(--appointly-accent) !important;
    box-shadow:none !important;
    color:#fff !important;
}
.appointly-inline-calendar-wrap .xdsoft_today{
    border:1px solid rgba(var(--appointly-accent-rgb), .45) !important;
}
.appointly-inline-calendar-wrap .xdsoft_disabled,
.appointly-inline-calendar-wrap .xdsoft_other_month{
    opacity:.35;
}
.appointly-inline-calendar-wrap .xdsoft_prev,
.appointly-inline-calendar-wrap .xdsoft_next{
    opacity:.9;
}
.appointly-inline-calendar-wrap .xdsoft_prev:hover,
.appointly-inline-calendar-wrap .xdsoft_next:hover{
    opacity:1;
}

/* Make the step 2 columns feel like the reference UI */
@media (min-width: 992px){
    #step-2 .tw-col-span-3,
    #step-2 .tw-col-span-6{
        min-height: 620px;
    }
}

/* Improve RTL alignment (Arabic) */
body[dir="rtl"] .appointly-time-slots-list{
    padding-right:0;
    padding-left:4px;
}


/* Hide inputs but keep them available for JS plugins */
.appointly-hidden-input{
    position:absolute !important;
    left:-9999px !important;
    width:1px !important;
    height:1px !important;
    opacity:0 !important;
}


/* ============================================================
   Reference UI – Date/Time step (matches provided screenshot)
   ============================================================ */
:root{
  --appointly-accent:#f97316;
  --appointly-accent-rgb: 249,115,22;
  --appointly-border: rgba(var(--appointly-accent-rgb), .28);
  --appointly-soft: rgba(var(--appointly-accent-rgb), .08);
  --appointly-soft-2: rgba(var(--appointly-accent-rgb), .12);
  --appointly-text:#111827;
  --appointly-muted:#6B7280;
}

/* Step 2 header */
#step-2 .appointly-step2-titlebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px 0;
}
#step-2 .appointly-step2-titlebar{ display:none !important; }
#step-2 .appointly-step2-title{
  flex:1;
  margin:0;
  font-size:20px;
  font-weight:700;
  color:var(--appointly-text);
  text-align:center;
}
#step-2 .appointly-back-link{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--appointly-muted);
  text-decoration:none;
  font-weight:700;
}
#step-2 .appointly-back-link:hover{ color:var(--appointly-accent); }
#step-2 .appointly-back-link .appointly-icon{ width:18px; height:18px; }

/* Main schedule shell */
#step-2 .appointly-schedule-ui{
  border:2px solid var(--appointly-border) !important;
  border-radius:28px;
  background:#fff;
  overflow:hidden;
}

/* Force LTR layout so columns appear: Summary (left) – Calendar – Times (right),
   while the content inside stays RTL. */
#step-2 .appointly-schedule-grid{
  display:grid;
  /* Match the reference proportions: compact services/summary, large calendar, compact times */
  grid-template-columns: 320px 1fr 320px;
  grid-template-areas: "summary calendar times";
  /* Give the widget a consistent vertical rhythm (avoid the "short boxed" look) */
  min-height: 740px;
  height: 740px;
  direction:ltr;
}

#step-2 .appointly-summary-col{ grid-area: summary; }
#step-2 .appointly-calendar-col{ grid-area: calendar; }
#step-2 .appointly-times-col{ grid-area: times; }
#step-2 .appointly-schedule-col{
  padding:34px 30px;
  position:relative;
}
#step-2 .appointly-schedule-col + .appointly-schedule-col{
  border-left:1px solid #ededed;
}

/* Column typography */
#step-2 .appointly-summary-col,
#step-2 .appointly-calendar-col,
#step-2 .appointly-times-col{
  direction:rtl;
  text-align:right;
}
#step-2 .appointly-col-title{
  font-size:20px;
  font-weight:700;
  color:var(--appointly-text);
  margin:0 0 18px 0;
}
#step-2 .appointly-summary-col .appointly-col-title{ text-align:center !important; }
#step-2 .appointly-times-title{ text-align:right; }
#step-2 .appointly-calendar-title{ text-align:center; }



/* Service picker inside the same date/time panel (one-screen layout) */
#step-2 .appointly-service-title{ margin-bottom: 10px; }
#step-2 .appointly-summary-col .appointly-col-title{ text-align:right; }
#step-2 .appointly-service-picker{ max-width: 100%; margin: 0 0 14px 0; }
#step-2 #service-search-wrapper .form-control{ border-radius: 16px; }
#step-2 .appointly-service-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height: 320px;
  overflow:auto;
  padding: 2px;
}
#step-2 .appointly-service-list .service-card{
  width:100%;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:14px 14px;
  cursor:pointer;
  transition:all .15s ease-in-out;
}
#step-2 .appointly-service-list .service-card:hover{ border-color: var(--appointly-accent); box-shadow:0 6px 18px rgba(17,24,39,.06); }
#step-2 .appointly-service-list .service-card.selected{ border-color: var(--appointly-accent); box-shadow:0 0 0 3px rgba(var(--appointly-accent-rgb), .18); }
#step-2 .appointly-service-list .service-details .appointly-service-desc{ display:none !important; }
#step-2 .appointly-summary-title{ font-size:18px; font-weight:700; margin-top: 16px; margin-bottom: 10px; }

/* Customer details modal (RTL) */
#customerDetailsModal .modal-content{ direction: rtl; text-align:right; }
#customerDetailsModal .modal-header{ border-bottom:1px solid #f0f0f0; }
#customerDetailsModal .modal-body{ padding:18px; }
/* Summary card */
#step-2 .appointly-summary-card{
  background:var(--appointly-soft);
  border-radius:18px;
  padding:22px 22px;
  margin:18px auto 26px auto;
  max-width: 100%;
}
#step-2 .appointly-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  border-bottom:1px dashed rgba(var(--appointly-accent-rgb), .25);
}
#step-2 .appointly-summary-row:last-child{ border-bottom:none; }
#step-2 .appointly-summary-label{
  color:#6b7280;
  font-weight:700;
}
#step-2 .appointly-summary-value{
  color:var(--appointly-accent);
  font-weight:700;
}

/* Continue button */
#step-2 .appointly-continue-btn{
  width:100%;
  border:none;
  border-radius:18px;
  padding:16px 18px;
  font-size:18px;
  font-weight:700;
  background: rgba(var(--appointly-accent-rgb), .25);
  color:#fff;
  cursor:not-allowed;
  transition: all .15s ease-in-out;
}
#step-2 .appointly-continue-btn:not(:disabled){
  background: var(--appointly-accent);
  cursor:pointer;
  box-shadow:0 10px 26px rgba(var(--appointly-accent-rgb), .25);
}
#step-2 .appointly-step2-hint{
  margin:14px 0 0 0;
  text-align:center;
  font-size:13px;
  color:#6B7280;
}

/* Loading blocks */
#step-2 .appointly-loading-block{ margin-top:14px; }
#step-2 .appointly-spinner{
  width:34px;
  height:34px;
  margin:0 auto;
  border:2px solid var(--appointly-accent);
  border-top-color:transparent;
  border-radius:999px;
  animation: appointlySpin 1s linear infinite;
}
@keyframes appointlySpin{ to{ transform:rotate(360deg);} }
#step-2 .appointly-loading-text{ margin-top:8px; color:#6b7280; font-size:13px; }

/* Timezone dropdown (external booking): styled like other inputs.
   Scoped to external form so it won't affect Perfex admin theme. */
#step-2 .appointly-timezone-box{
  margin: 0 0 14px 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}
#step-2 .appointly-timezone-label{
  display:block;
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight:700;
  color: var(--appointly-text);
}
#step-2 .appointly-timezone-hint{
  margin-top: 8px;
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

/* Make bootstrap-select match the widget style */
#step-2 .appointly-timezone-box .bootstrap-select{ width:100% !important; }
#step-2 .appointly-timezone-box .bootstrap-select > .dropdown-toggle{
  height: 52px;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
  font-weight:700;
}
#step-2 .appointly-timezone-box .bootstrap-select > .dropdown-toggle:hover{
  border-color: rgba(var(--appointly-accent-rgb), .55) !important;
}
#step-2 .appointly-timezone-box .bootstrap-select.open > .dropdown-toggle,
#step-2 .appointly-timezone-box .bootstrap-select > .dropdown-toggle:focus{
  border-color: var(--appointly-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--appointly-accent-rgb), .18) !important;
}

/* RTL dropdown menu */
#step-2 .appointly-timezone-box .bootstrap-select,
#step-2 .appointly-timezone-box .bootstrap-select .dropdown-toggle,
#step-2 .appointly-timezone-box .bootstrap-select .dropdown-menu{
  direction: rtl;
  text-align: right;
}

/* Ensure bootstrap-select menus appear above the calendar/time slots (schedule shell uses overflow:hidden).
   We also set data-container="body" on the selects, so menus render in a .bs-container in <body>. */
body.appointments-external-form .bs-container{
  z-index: 1049; /* below bootstrap modal (1050), above calendar/cards */
}
body.appointments-external-form .bs-container .dropdown-menu{
  z-index: 1049;
}
body.appointments-external-form .bootstrap-select.open,
body.appointments-external-form .bootstrap-select.show{
  z-index: 1049;
}

/* Time slots refresh UX */
#step-2 .appointly-slots-message{
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--appointly-accent-rgb), .28);
  background: rgba(var(--appointly-accent-rgb), .08);
  color: var(--appointly-text);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}

#step-2 .appointly-slot-skeleton{
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}
#step-2 .appointly-slot-skeleton::after{
  content:'';
  position:absolute;
  top:0;
  left:-60%;
  width:60%;
  height:100%;
  background: linear-gradient(90deg, rgba(243,244,246,0) 0%, rgba(255,255,255,.65) 50%, rgba(243,244,246,0) 100%);
  animation: appointlyShimmer 1.1s infinite;
}
@keyframes appointlyShimmer{
  0%{ left:-60%; }
  100%{ left:120%; }
}

/* Fine-tune bootstrap-select RTL caret + padding so it matches other inputs (external form only) */
body.appointments-external-form[dir="rtl"] #step-2 .appointly-timezone-box .bootstrap-select > .dropdown-toggle{
  padding-left: 44px !important; /* leave room for caret on the left */
}
body.appointments-external-form[dir="rtl"] #step-2 .appointly-timezone-box .bootstrap-select > .dropdown-toggle .filter-option{
  text-align: right;
}
body.appointments-external-form[dir="rtl"] #step-2 .appointly-timezone-box .bootstrap-select > .dropdown-toggle .caret{
  right: auto !important;
  left: 14px !important;
}
#step-2 .appointly-timezone-box .bootstrap-select .dropdown-menu{
  direction: rtl;
  text-align: right;
}

/* Duration pills (right column) */
#step-2 .appointly-duration-pills{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin:0 0 18px 0;
}

/* -------------------------------------------------------------------------
   Service dropdown (bootstrap-select) inside Step 2
   ------------------------------------------------------------------------- */
#step-2 .appointly-service-select-box{
  margin: 0 0 14px 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}
#step-2 .appointly-service-select-label{
  display:block;
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight:700;
  color: var(--appointly-text);
}
#step-2 .appointly-service-select-help{
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 700;
}

/* Make bootstrap-select match the widget style */
#step-2 .appointly-service-select-box .bootstrap-select{ width:100% !important; }
#step-2 .appointly-service-select-box .bootstrap-select > .dropdown-toggle{
  height: 52px;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
  font-weight:700;
}
#step-2 .appointly-service-select-box .bootstrap-select > .dropdown-toggle:hover{
  border-color: rgba(var(--appointly-accent-rgb), .55) !important;
}
#step-2 .appointly-service-select-box .bootstrap-select.open > .dropdown-toggle,
#step-2 .appointly-service-select-box .bootstrap-select > .dropdown-toggle:focus{
  border-color: var(--appointly-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--appointly-accent-rgb), .18) !important;
}

/* RTL dropdown menu */
#step-2 .appointly-service-select-box .bootstrap-select .dropdown-menu{
  direction: rtl;
  text-align: right;
}
#step-2 .appointly-service-select-box .bootstrap-select .dropdown-menu li a{
  padding: 10px 14px;
}
#step-2 .appointly-service-select-box .bootstrap-select .dropdown-menu li a:hover{
  background: #fff7f2;
}
#step-2 .appointly-svc-option-name{
  font-size: 14px;
  font-weight:700;
  color: var(--appointly-text);
}
#step-2 .appointly-svc-option-meta{
  margin-top: 2px;
  font-size: 12px;
  font-weight:700;
  color: var(--appointly-accent);
}

/* Service dropdown option layout (RTL-friendly) */
body.appointments-external-form #step-2 .appointly-svc-option{
  display:flex;
  flex-direction:column;
  width:100%;
  line-height:1.35;
}
body.appointments-external-form[dir="rtl"] #step-2 .appointly-svc-option{
  text-align:right;
  align-items:flex-end;
}
body.appointments-external-form #step-2 .appointly-service-select-box .dropdown-menu li a .text{
  display:block;
  white-space:normal;
}
body.appointments-external-form[dir="rtl"] #step-2 .appointly-service-select-box .filter-option-inner-inner{
  text-align:right;
}

/* Selected service (closed state): show name only (hide meta/description in toggle) */
body.appointments-external-form #step-2 .appointly-service-select-box .bootstrap-select > .dropdown-toggle .appointly-svc-option-meta{
  display:none !important;
}
body.appointments-external-form #step-2 .appointly-service-select-box .bootstrap-select > .dropdown-toggle .appointly-svc-option{
  line-height:1.25;
}

/* Services (right column) – big cards with description (matches the highlighted blue area) */
#step-2 .appointly-services-box{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-end;
  margin:0 0 18px 0;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
}
#step-2 .appointly-services-box .appointly-service-pill{
  flex:1 1 160px;
  min-width:160px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  padding:14px 14px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:stretch;
  text-align:right;
  transition:all .15s ease-in-out;
}
#step-2 .appointly-services-box .appointly-service-pill:hover{
  border-color: var(--appointly-accent);
  box-shadow:0 6px 18px rgba(17,24,39,.06);
}
#step-2 .appointly-services-box .appointly-service-pill.active{
  border:2px solid var(--appointly-accent);
  background:#fff7f2;
  box-shadow:0 0 0 3px rgba(var(--appointly-accent-rgb), .18);
}
#step-2 .appointly-svc-name{
  font-size:15px;
  font-weight:700;
  color:var(--appointly-text);
  width:100%;
  text-align:right;
}
#step-2 .appointly-svc-meta{
  font-size:12px;
  font-weight:700;
  color:var(--appointly-accent);
  width:100%;
  text-align:right;
}
#step-2 .appointly-svc-desc{
  font-size:12px;
  color:#6b7280;
  font-weight:700;
  line-height:1.35;
  max-height:4.1em; /* ~3 lines */
  overflow:hidden;
  width:100%;
  text-align:right;
}
#step-2 .appointly-duration-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 22px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-weight:700;
  font-size:13px;
  color:#111827;
}
#step-2 .appointly-duration-pill.active{
  border:2px solid var(--appointly-accent);
  color:var(--appointly-accent);
}

/* Time slots list */
#step-2 .appointly-time-slots-list{
  display:flex;
  flex-direction:column;
  gap:16px;
  max-height:640px;
  overflow:auto;
  direction:rtl; /* keeps scrollbar on the left in RTL */
  padding-left:6px;
}
#step-2 .appointly-time-slots-list .time-slot-btn{
  width:100%;
  text-align:center;
  padding:18px 12px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  font-weight:700;
  font-size:16px;
  transition:all .15s ease-in-out;
}
#step-2 .appointly-time-slots-list .time-slot-btn:hover{
  border-color: var(--appointly-accent);
  box-shadow:0 6px 18px rgba(17,24,39,.06);
}
#step-2 .appointly-time-slots-list .time-slot-btn.selected{
  background: var(--appointly-accent);
  border-color: var(--appointly-accent);
  color:#fff;
  box-shadow:none;
}

/* Show unavailable slots (grey with an X) */
#step-2 .appointly-time-slots-list .time-slot-btn.busy_time{
  background:#fff;
  color:#9ca3af;
  border-color:#e5e7eb;
  pointer-events:none;
  position:relative;
  opacity:.9;
}
#step-2 .appointly-time-slots-list .time-slot-btn.busy_time::before,
#step-2 .appointly-time-slots-list .time-slot-btn.busy_time::after{
  content:'';
  position:absolute;
  left:18px;
  right:18px;
  top:50%;
  height:2px;
  background:rgba(156,163,175,.55);
}
#step-2 .appointly-time-slots-list .time-slot-btn.busy_time::before{ transform:rotate(10deg); }
#step-2 .appointly-time-slots-list .time-slot-btn.busy_time::after{ transform:rotate(-10deg); }
#step-2 .appointly-time-slots-list .time-slot-btn.selected,
#step-2 .appointly-time-slots-list .time-slot-btn:focus{
  outline:none;
  border-color: var(--appointly-accent);
  box-shadow:0 0 0 3px rgba(var(--appointly-accent-rgb), .18);
}

/* Custom scrollbar (WebKit) */
#step-2 .appointly-time-slots-list::-webkit-scrollbar{ width:6px; }
#step-2 .appointly-time-slots-list::-webkit-scrollbar-track{ background:transparent; }
#step-2 .appointly-time-slots-list::-webkit-scrollbar-thumb{
  background: rgba(var(--appointly-accent-rgb), .35);
  border-radius:999px;
}
#step-2 .appointly-time-slots-list{
  scrollbar-color: rgba(var(--appointly-accent-rgb), .35) transparent;
  scrollbar-width: thin;
}

/* Inline calendar styling (xdsoft datetimepicker) */
#step-2 .appointly-inline-calendar-wrap{
  max-width:100%;
  margin:0 auto;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker{
  border:none !important;
  position:relative !important;
  z-index:1030 !important; /* keep calendar behind dropdown menus */
  box-shadow:none !important;
  width:100% !important;
  padding:0 !important;
  margin:0 !important;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_datepicker{ width:100% !important; }
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar{
  z-index: 0 !important;
}


/* Month header centered with arrows */
#step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  padding:0 52px;
  margin:0 0 18px 0;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_prev,
#step-2 .appointly-inline-calendar-wrap .xdsoft_next{
  position:absolute;
  top:0;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  opacity:1;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_prev{ left:0; right:auto; }
#step-2 .appointly-inline-calendar-wrap .xdsoft_next{ right:0; left:auto; } /* keep centered title */
#step-2 .appointly-inline-calendar-wrap .xdsoft_prev:hover,
#step-2 .appointly-inline-calendar-wrap .xdsoft_next:hover{
  border-color: var(--appointly-accent);
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_label{
  font-weight:700;
  font-size:20px;
  color:var(--appointly-text);
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_label i{ display:none !important; }
/* RTL: keep month/year centered but swap arrow positions */
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .xdsoft_prev{
  right:0;
  left:auto;
}
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .xdsoft_next{
  left:0;
  right:auto;
}


#step-2 .appointly-inline-calendar-wrap .xdsoft_calendar{
  width:100% !important;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_calendar th{
  color:#6b7280;
  font-weight:700;
  padding:10px 0;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td{ padding:8px 0; }
#step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td div{
  width:52px;
  height:52px;
  line-height:52px;
  margin:0 auto;
  border-radius:999px;
  font-weight:700;
  font-size:16px;
  color:#111827;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_disabled,
#step-2 .appointly-inline-calendar-wrap .xdsoft_other_month{
  opacity:.25;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_current{
  background: var(--appointly-accent) !important;
  color:#fff !important;
  box-shadow:none !important;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_today{
  border:1px solid rgba(var(--appointly-accent-rgb), .45) !important;
}

/* Overlay */
#step-2 .appointly-overlay{
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10;
}
#step-2 .appointly-overlay-box{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:18px 18px;
  text-align:center;
  box-shadow: 0 12px 30px rgba(17,24,39,.10);
}

/* Responsive: stack columns on small screens */
@media (max-width: 991px){
  #step-2 .appointly-schedule-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "calendar"
      "times"
      "summary";
    min-height:auto;
    height:auto;
    direction: rtl; /* natural mobile flow */
  }
  #step-2 .appointly-schedule-col + .appointly-schedule-col{
    border-left:none;
    border-top:1px solid #ededed;
  }
  #step-2 .appointly-summary-card{ max-width: 100%; }
}


/* Ensure month navigation arrows are visible */
#step-2 .appointly-inline-calendar-wrap .xdsoft_prev,
#step-2 .appointly-inline-calendar-wrap .xdsoft_next{
  background-image:none !important;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_prev:before{
  content:"‹";
  display:block;
  width:100%;
  height:100%;
  line-height:34px;
  text-align:center;
  font-size:22px;
  font-weight:700;
  color:#9ca3af;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_next:before{
  content:"›";
  display:block;
  width:100%;
  height:100%;
  line-height:34px;
  text-align:center;
  font-size:22px;
  font-weight:700;
  color:#9ca3af;
}
#step-2 .appointly-inline-calendar-wrap .xdsoft_prev:hover:before,
#step-2 .appointly-inline-calendar-wrap .xdsoft_next:hover:before{
  color: var(--appointly-accent);
}

/* Safety: ensure hidden utilities exist even if Tailwind is removed */
.hidden{ display:none !important; }
.tw-hidden{ display:none !important; }

/* Needed for step-2 overlay positioning */
#step-2 .appointly-schedule-ui{ position:relative; }


/* One-page mode: hide old back links (users can scroll) */
#appointment-form .btn-prev-step{ display:none !important; }

/* Booking summary modal */
#bookingSummaryModal .appointly-summary-modal{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  direction: rtl;
  text-align: right;
}
@media (max-width: 768px){
  #bookingSummaryModal .appointly-summary-modal{ grid-template-columns: 1fr; }
}
#bookingSummaryModal .appointly-summary-modal-item{
  background:#ffffff;
  border:1px solid #f0f0f0;
  border-radius:14px;
  padding:12px 14px;
}
#bookingSummaryModal .appointly-summary-modal-label{
  font-size:12px;
  color:#6b7280;
  margin-bottom:4px;
  font-weight:600;
}

/*
  External booking page sizing
  - Keep the widget centered
  - Prevent the "boxed / too narrow" look on wide screens
  - Use the inner orange bordered panel as the primary container
*/
.appointments-external-form .main_wrapper{
  float:none !important;
  width:100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Slight depth to match the reference card feel */
#step-2 .appointly-schedule-ui{
  box-shadow: 0 18px 40px rgba(17,24,39,.08);
}
#bookingSummaryModal .appointly-summary-modal-value{
  font-size:15px;
  color:#111827;
  font-weight:700;
}


/* === Final Boom all-in-one layout tweaks (services pills + modal) === */

/* Summary title centered like the reference */
#step-2 .appointly-summary-col .appointly-col-title{ text-align:center !important; }

/* Services pills: use the same styling as duration pills, but allow horizontal scroll */
#step-2 .appointly-service-pills{
  flex-wrap:nowrap;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
#step-2 .appointly-service-pills::-webkit-scrollbar{ height:6px; }
#step-2 .appointly-service-pills::-webkit-scrollbar-thumb{
  background: rgba(var(--appointly-accent-rgb), .25);
  border-radius:999px;
}
#step-2 .appointly-service-pill{ white-space:nowrap; }

/* Selected time slot: filled orange like the screenshot */
#step-2 .appointly-time-slots-list .time-slot-btn.selected{
  background: var(--appointly-accent);
  border-color: var(--appointly-accent);
  color:#fff;
  box-shadow:0 10px 26px rgba(var(--appointly-accent-rgb), .25);
}
#step-2 .appointly-time-slots-list .time-slot-btn.selected:hover{
  background: var(--appointly-accent);
  border-color: var(--appointly-accent);
}

/* Confirm modal styling (match reference) */
#appointlyConfirmModal .modal-dialog{
  width: 560px;
  max-width: calc(100% - 30px);
  margin: 30px auto;
}
#appointlyConfirmModal .appointly-confirm-modal{
  border-radius: 26px;
  border: none;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}
#appointlyConfirmModal .appointly-modal-close{
  position:absolute;
  left: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(17,24,39,.10);
  font-size: 26px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
}
#appointlyConfirmModal .appointly-modal-close span{ position:relative; top:-1px; }
#appointlyConfirmModal .appointly-confirm-header{
  padding: 26px 26px 10px 26px;
}
#appointlyConfirmModal .appointly-confirm-title{
  text-align:center;
  font-size:28px;
  font-weight:700;
  color: var(--appointly-accent);
}
#appointlyConfirmModal .appointly-confirm-underline{
  width: 150px;
  height: 4px;
  background: rgba(var(--appointly-accent-rgb), .35);
  border-radius: 999px;
  margin: 10px auto 0 auto;
}
#appointlyConfirmModal .appointly-confirm-body{ padding: 14px 26px 10px 26px; }
#appointlyConfirmModal .appointly-confirm-summary{
  background: #fff7f2;
  border: 1px solid rgba(var(--appointly-accent-rgb), .22);
  border-radius: 18px;
  padding: 18px 18px;
  margin-bottom: 18px;
}
#appointlyConfirmModal .appointly-confirm-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(var(--appointly-accent-rgb), .25);
}
#appointlyConfirmModal .appointly-confirm-summary-row:last-child{ border-bottom:none; }
#appointlyConfirmModal .appointly-confirm-summary-label{ color:#6b7280; font-weight:700; }
#appointlyConfirmModal .appointly-confirm-summary-value{ color: var(--appointly-accent); font-weight:700; }

#appointlyConfirmModal .appointly-confirm-field{ margin-top: 14px; }
#appointlyConfirmModal .appointly-confirm-label{ display:block; margin-bottom: 8px; font-weight:700; color:#111827; }
#appointlyConfirmModal .appointly-confirm-input{
  height: 54px !important;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  padding: 14px 16px !important;
}
#appointlyConfirmModal .appointly-confirm-input:focus,
#appointlyConfirmModal .appointly-confirm-textarea:focus{
  border-color: rgba(var(--appointly-accent-rgb), .65) !important;
  box-shadow: 0 0 0 4px rgba(var(--appointly-accent-rgb), .18) !important;
}
#appointlyConfirmModal .appointly-confirm-textarea{
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  padding: 14px 16px !important;
  resize: vertical;
}

#appointlyConfirmModal .appointly-confirm-footer{
  display:flex;
  gap: 12px;
  padding: 18px 26px 26px 26px;
}
#appointlyConfirmModal .appointly-confirm-btn{
  flex:1;
  border:none;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 18px;
  font-weight:700;
  color: #fff;
  background: var(--appointly-accent);
  box-shadow: 0 10px 26px rgba(var(--appointly-accent-rgb), .25);
}
#appointlyConfirmModal .appointly-back-btn{
  width: 140px;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight:700;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
}


#step-2 .appointly-duration-pill.active{ background:#fff !important; }


/* =====================================================================
   STRICT UI FIXES (Container height + dropdown/menu scroll + calendar header)
   Scoped to external booking form only.
   ===================================================================== */
body.appointments-external-form #step-2{
  --appointly-slot-item-h: 56px;
  --appointly-slot-gap: 12px;
  --appointly-dd-item-h: 44px;
  --appointly-dd-items: 5;
}

/* (1) Container height: remove fixed heights, use flex columns, prevent overflow */
body.appointments-external-form #step-2 .appointly-schedule-grid{
  display:flex !important;
  flex-direction:row !important;
  align-items:stretch !important;
  height:auto !important;
  min-height:0 !important;
  direction:ltr !important;
}
body.appointments-external-form #step-2 .appointly-summary-col{ flex:0 0 320px !important; }
body.appointments-external-form #step-2 .appointly-calendar-col{ flex:1 1 auto !important; min-width:0 !important; }
body.appointments-external-form #step-2 .appointly-times-col{ flex:0 0 320px !important; }

body.appointments-external-form #step-2 .appointly-schedule-col{
  padding:28px 26px !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
}

/* Keep dropdowns and long lists clipped inside the booking box */
body.appointments-external-form #step-2 .appointly-schedule-ui{ overflow:hidden !important; }

/* Ensure calendar stays behind dropdowns */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap{ position:relative; z-index:1; }
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker{ position:relative; z-index:1 !important; }

/* Timezone/service controls above calendar */
body.appointments-external-form #step-2 .appointly-timezone-box{ position:relative; z-index:30; }
body.appointments-external-form #step-2 .appointly-timezone-box .dropdown-menu{ z-index:40 !important; }
body.appointments-external-form #step-2 .appointly-service-select-box{ position:relative; z-index:25; }
body.appointments-external-form #step-2 .appointly-service-select-box .dropdown-menu{ z-index:35 !important; }

/* (2) Timezone dropdown: show 5 items then internal scroll */
body.appointments-external-form #step-2 .appointly-timezone-box .bootstrap-select .dropdown-menu.open{ overflow:hidden !important; }
body.appointments-external-form #step-2 .appointly-timezone-box .bootstrap-select .dropdown-menu.open .inner.open,
body.appointments-external-form #step-2 .appointly-timezone-box .bootstrap-select .dropdown-menu.open ul.dropdown-menu.inner{
  max-height: calc(var(--appointly-dd-item-h) * var(--appointly-dd-items)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.appointments-external-form #step-2 .appointly-timezone-box .dropdown-menu.inner li a{
  min-height: var(--appointly-dd-item-h);
  display:flex;
  align-items:center;
  padding:10px 12px;
  white-space: normal;
  line-height: 1.35;
}

/* Make service dropdown scrollable too (prevents exceeding the box) */
body.appointments-external-form #step-2 .appointly-service-select-box .bootstrap-select .dropdown-menu.open{ overflow:hidden !important; }
body.appointments-external-form #step-2 .appointly-service-select-box .bootstrap-select .dropdown-menu.open .inner.open,
body.appointments-external-form #step-2 .appointly-service-select-box .bootstrap-select .dropdown-menu.open ul.dropdown-menu.inner{
  max-height: 280px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* (3) Time slots: show 4 items then internal scroll; fix scroll inside flex */
body.appointments-external-form #step-2 .appointly-times-col{ min-height:0 !important; }
body.appointments-external-form #step-2 #time-slots-section.appointly-times-body{
  flex: 1 1 auto;
  min-height: 0; /* critical for scroll inside flex */
  display:flex;
  flex-direction:column;
}
body.appointments-external-form #step-2 #time-slots-container.appointly-time-slots-list{
  display:flex;
  flex-direction:column;
  gap: var(--appointly-slot-gap);
  /* Show 6 visible slots, then scroll */
  max-height: calc(var(--appointly-slot-item-h) * 6 + var(--appointly-slot-gap) * 5);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-inline-end: 6px;
}
body.appointments-external-form #step-2 #time-slots-container .time-slot-btn{
  height: var(--appointly-slot-item-h);
}

/* (2) Time slots section start spacing (avoid visual overlap with elements above) */
body.appointments-external-form #step-2 #time-slots-section.appointly-times-body{
  margin-top: clamp(10px, 1.2vw, 16px);
}

/* (4) Calendar header: true centering (prev fixed, title flex:1, next fixed) */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_prev,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_next{
  flex: 0 0 44px;
  width:44px !important;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_label{
  flex: 1 1 auto;
  text-align:center !important;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}

/* (4) Calendar header: ROOT centering via DOM wrapper (prev fixed, title flex:1, next fixed)
   This works across xdsoft versions because JS rebuilds the header structure.
*/
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker{
  justify-content:stretch !important;
  gap:0 !important;
  padding:0 !important;
  margin:0 0 18px 0 !important;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav{
  flex: 0 0 40px;
  width: 40px;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_prev,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_next{
  width: 40px !important;
  height: 40px;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-title{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  text-align:center;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-title .xdsoft_label{
  flex: 0 0 auto;
  width: auto !important;
  text-align:center !important;
  justify-content:center !important;
}

/* RTL: keep true centering while swapping prev/next sides */
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker{
  flex-direction: row-reverse;
}

/* Mobile: stack columns without forcing tall height */
@media (max-width: 991px){
  body.appointments-external-form #step-2 .appointly-schedule-grid{
    flex-direction:column !important;
    direction: rtl !important;
  }
  body.appointments-external-form #step-2 .appointly-calendar-col{ order:1; flex: 0 0 auto !important; }
  body.appointments-external-form #step-2 .appointly-times-col{ order:2; flex: 0 0 auto !important; }
  body.appointments-external-form #step-2 .appointly-summary-col{ order:3; flex: 0 0 auto !important; }
}

/* =====================================================================
   CALENDAR REVAMP (Appointly External Booking Form)
   Goals:
   - Pixel-perfect centered month/year header (grid with fixed nav columns)
   - Visible, themed prev/next arrows with proper hit area + hover
   - Modern calendar card styling aligned with Appointly theme + RTL
   Scope: external form only
   ===================================================================== */

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap{
  --appointly-cal-cell: 46px;
  --appointly-cal-cell-mobile: 42px;
  --appointly-cal-radius: 14px;
}

/* Calendar card */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker{
  background:#fff !important;
  border:1px solid rgba(var(--appointly-accent-rgb), .18) !important;
  border-radius:18px !important;
  box-shadow: 0 14px 34px rgba(17,24,39,.06) !important;
  padding: 14px !important;
  overflow: hidden !important;
}

/* Month header: grid ensures true centering regardless of label widths */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker.appointly-cal-header{
  display:grid !important;
  grid-template-columns: 44px 1fr 44px;
  align-items:center;
  gap: 0;
  padding: 0 !important;
  margin: 0 0 14px 0 !important;
  position: relative;
}

/* Swap nav sides in RTL without affecting centering */
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker.appointly-cal-header .appointly-cal-nav--prev{ grid-column: 3; }
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker.appointly-cal-header .appointly-cal-nav--next{ grid-column: 1; }

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
}

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-titlewrap{
  min-width:0;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-titletext{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}

/* Month/year labels (clickable) */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-titletext .xdsoft_label{
  float:none !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap: 6px;
  font-weight: 700;
  font-size: 18px;
  color: var(--appointly-text) !important;
  line-height: 1.2;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-titletext .xdsoft_label i{ display:none !important; }

/* Extras (if any) should not shift centering */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-extras{
  position:absolute;
  inset-inline-end: 0;
  top:50%;
  transform: translateY(-50%);
  display:flex;
  align-items:center;
  gap: 6px;
}

/* Prev/Next buttons: visible + themed + good hit area */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_prev,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_next{
  width:40px !important;
  height:40px !important;
  min-width:40px;
  min-height:40px;
  border-radius: 12px !important;
  border: 1px solid rgba(var(--appointly-accent-rgb), .25) !important;
  background: rgba(255,255,255,.95) !important;
  box-shadow: 0 6px 18px rgba(17,24,39,.06);
  color: var(--appointly-text) !important;
  opacity: 1 !important;
  position: static !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, color .12s ease, background-color .12s ease;
  background-image:none !important;
}

/* Arrow icon via borders (font-independent) */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_prev:before,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_next:before{
  content:"";
  width:10px;
  height:10px;
  border: 2px solid currentColor;
  border-top: none;
  border-right: none;
  display:block;
}
/* LTR: prev=left, next=right */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_prev:before{ transform: rotate(45deg); }
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_next:before{ transform: rotate(-135deg); }
/* RTL: swap arrow directions to match expectations */
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_prev:before{ transform: rotate(-135deg); }
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_next:before{ transform: rotate(45deg); }

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_prev:hover,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .appointly-cal-nav .xdsoft_next:hover{
  border-color: var(--appointly-accent) !important;
  color: var(--appointly-accent) !important;
  box-shadow: 0 10px 26px rgba(var(--appointly-accent-rgb), .14);
  transform: translateY(-1px);
}

/* Weekdays */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar th{
  color: var(--appointly-muted) !important;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 0;
}

/* Day cells */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td{ padding: 6px 0; }
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td div{
  width: var(--appointly-cal-cell);
  height: var(--appointly-cal-cell);
  line-height: var(--appointly-cal-cell);
  margin: 0 auto;
  border-radius: var(--appointly-cal-radius);
  font-weight: 600;
  font-size: 15px;
  color: var(--appointly-text);
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease, transform .12s ease;
}

/* Hover (available days only) */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td:not(.xdsoft_disabled):not(.xdsoft_other_month):hover div{
  background: rgba(var(--appointly-accent-rgb), .10);
}

/* Selected */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_current{
  background: var(--appointly-accent) !important;
  color:#fff !important;
  box-shadow: 0 10px 24px rgba(var(--appointly-accent-rgb), .24) !important;
}

/* Today (if not selected) */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_today:not(.xdsoft_current){
  background: rgba(var(--appointly-accent-rgb), .08) !important;
  color: var(--appointly-text) !important;
  box-shadow: 0 0 0 2px rgba(var(--appointly-accent-rgb), .55) inset !important;
}

/* Disabled/outside month */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_disabled,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_other_month{
  opacity: .38;
}

/* Mobile: shrink cells slightly */
@media (max-width: 480px){
  body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td div{
    width: var(--appointly-cal-cell-mobile);
    height: var(--appointly-cal-cell-mobile);
    line-height: var(--appointly-cal-cell-mobile);
    border-radius: 12px;
  }
}


/* =====================================================================
   CALENDAR CLEAN + THEME REVAMP (External booking form only)
   Purpose:
   - Clean, bug-free calendar UI (no overlaps / clipping)
   - Pixel-perfect centered month+year (no JS required)
   - Prev/Next arrows always visible (font-independent)
   - Slightly wider calendar (comfortable) while staying responsive
   Note: Scoped to the external booking form only.
   ===================================================================== */

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap{
  width: 100%;
  max-width: 100%;
}

/* Calendar card */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;

  background: #fff !important;
  border: 1px solid rgba(var(--appointly-accent-rgb), .18) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(17,24,39,.06) !important;

  padding: 16px 16px 14px !important;
  margin: 0 !important;

  overflow: hidden !important;
  z-index: 1 !important;
}

/* Wider on desktop (without breaking mobile) */
@media (min-width: 992px){
  body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker{
    min-width: 380px;
    padding: 18px 18px 16px !important;
  }
}

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datepicker,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar{
  width: 100% !important;
}

/* Ensure the calendar grid uses the full width evenly */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar table{
  width: 100% !important;
  table-layout: fixed;
}

/* ---------------------------------------------------------------------
   Month header: true centering with fixed nav sides (no DOM hacks)
   Strategy:
   - Header is a centered block with symmetric padding (nav width)
   - Prev/Next are absolutely positioned inside header
   - Month/Year labels are inline-flex and centered by text-align:center
   --------------------------------------------------------------------- */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker{
  position: relative !important;
  display: block !important;
  height: 44px;
  padding: 0 52px !important; /* equals nav width + breathing room */
  margin: 0 0 12px 0 !important;
  text-align: center !important;
  box-sizing: border-box;
}

/* Month/Year labels (clickable) */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker .xdsoft_label{
  float: none !important;
  width: auto !important;
  margin: 0 4px !important;
  padding: 0 !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;

  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--appointly-text) !important;

  vertical-align: middle;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_mounthpicker .xdsoft_label i{
  display:none !important;
}

/* Nav buttons: always visible + good hit area */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_prev,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_next{
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;

  border-radius: 12px !important;
  border: 1px solid rgba(var(--appointly-accent-rgb), .25) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 6px 18px rgba(17,24,39,.06);

  opacity: 1 !important;
  background-image: none !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  color: var(--appointly-text) !important;
  cursor: pointer;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, color .12s ease, background-color .12s ease;
}

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_prev{
  left: 0 !important;
  right: auto !important;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_next{
  right: 0 !important;
  left: auto !important;
}

/* RTL: swap positions so prev sits on the right */
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .xdsoft_prev{
  right: 0 !important;
  left: auto !important;
}
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .xdsoft_next{
  left: 0 !important;
  right: auto !important;
}

/* Arrow icon via borders (font-independent) */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_prev:before,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_next:before{
  content: "" !important;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: none;
  border-right: none;
  display: block;
}

/* LTR: prev=left, next=right */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_prev:before{ transform: rotate(45deg); }
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_next:before{ transform: rotate(-135deg); }

/* RTL: keep intuitive arrow direction */
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .xdsoft_prev:before{ transform: rotate(-135deg); }
body.appointments-external-form[dir="rtl"] #step-2 .appointly-inline-calendar-wrap .xdsoft_next:before{ transform: rotate(45deg); }

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_prev:hover,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_next:hover{
  border-color: var(--appointly-accent) !important;
  color: var(--appointly-accent) !important;
  box-shadow: 0 10px 26px rgba(var(--appointly-accent-rgb), .14);
  transform: translateY(-50%) scale(1.02) !important;
}

/* ---------------------------------------------------------------------
   Calendar grid styling (clean + theme-aligned)
   --------------------------------------------------------------------- */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap{
  --appointly-cal-cell: 46px;
  --appointly-cal-cell-mobile: 42px;
  --appointly-cal-radius: 14px;
}

/* Weekdays */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar th{
  color: var(--appointly-muted) !important;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 0;
}

/* Day cells */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td{
  padding: 6px 0;
}
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td div{
  width: var(--appointly-cal-cell);
  height: var(--appointly-cal-cell);
  line-height: var(--appointly-cal-cell);
  margin: 0 auto;

  border-radius: var(--appointly-cal-radius);
  font-weight: 600;
  font-size: 15px;

  color: var(--appointly-text) !important;
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease, transform .12s ease;
}

/* Hover (available days only) */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td:not(.xdsoft_disabled):not(.xdsoft_other_month):hover div{
  background: rgba(var(--appointly-accent-rgb), .10);
}

/* Selected */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_current{
  background: var(--appointly-accent) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(var(--appointly-accent-rgb), .24) !important;
}

/* Today (if not selected) */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap td.xdsoft_today:not(.xdsoft_current) div,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_today:not(.xdsoft_current) div{
  background: rgba(var(--appointly-accent-rgb), .08) !important;
  color: var(--appointly-text) !important;
  box-shadow: 0 0 0 2px rgba(var(--appointly-accent-rgb), .55) inset !important;
}

/* Disabled/outside month */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_disabled,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_other_month{
  opacity: .38;
}

/* Mobile: shrink cells slightly */
@media (max-width: 480px){
  body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_calendar td div{
    width: var(--appointly-cal-cell-mobile);
    height: var(--appointly-cal-cell-mobile);
    line-height: var(--appointly-cal-cell-mobile);
    border-radius: 12px;
  }
}

/* =====================================================
   FINAL, COERCIVE CALENDAR HEADER FIX (UI ONLY)
   - Supports xdsoft variants: .xdsoft_mounthpicker and .xdsoft_monthpicker
   - Centers month+year controls as one group (via JS titlewrap)
   - Nudges nav arrows slightly downward
   Scope: External booking form only
   ===================================================== */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker .xdsoft_mounthpicker.appointly-cal-fixed,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker .xdsoft_monthpicker.appointly-cal-fixed{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  position: relative !important;
}

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker .appointly-cal-fixed .appointly-cal-titlewrap{
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  min-width: 0 !important;
}

body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker .appointly-cal-fixed .appointly-cal-titlewrap .xdsoft_label{
  float: none !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Nav buttons: fixed hit-area + pushed slightly down */
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker .appointly-cal-fixed .xdsoft_prev,
body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker .appointly-cal-fixed .xdsoft_next{
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: translateY(6px) !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 576px){
  body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker .appointly-cal-fixed .xdsoft_prev,
  body.appointments-external-form #step-2 .appointly-inline-calendar-wrap .xdsoft_datetimepicker .appointly-cal-fixed .xdsoft_next{
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    transform: translateY(4px) !important;
  }
}
