/**
 * One-Step Form Styles
 * 
 * Styles for the one-step booking form template
 * 
 * @package RK_Booking_Form
 * @since 2.3.0
 */

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */

.rk-service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.rk-service-card {
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.rk-service-card:hover {
  border-color: #007cba;
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
  transform: translateY(-2px);
}

.rk-service-card.selected {
  border-color: #007cba;
  background: #f0f8ff;
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

.rk-service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.rk-service-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.rk-service-header input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #007cba;
}

.rk-service-description {
  margin-bottom: 1rem;
}

.rk-service-description p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.rk-service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.rk-service-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #007cba;
}

.rk-duration-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rk-duration-options label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #666;
  cursor: pointer;
}

.rk-duration-options input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #007cba;
}

.rk-loading-services {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* ==========================================================================
   ONE-STEP FORM LAYOUT
   ========================================================================== */

.rk-template-one-step {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Override multi-step form styles for one-step template */
.rk-template-one-step .rk-form {
  overflow: auto !important;
  min-height: auto !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  position: static !important;
  scroll-behavior: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scrollbar-color: transparent transparent !important;
  contain: none !important;
}

/* Override any section-specific styles from multi-step */
.rk-template-one-step .rk-section {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  width: 100% !important;
  min-width: auto !important;
  min-height: auto !important;
  height: auto !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  transition: none !important;
  contain: none !important;
  will-change: auto !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

/* Override any hidden class from multi-step */
.rk-template-one-step .rk-hidden {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* One-step form uses CSS Grid for layout */
.rk-template-one-step .rk-field-group {
  display: grid;
  gap: 1.5rem;
}

.rk-template-one-step .rk-input-wrap {
  width: 100%;
  box-sizing: border-box;
}

/* Override any fieldset styles that might be causing issues */
.rk-template-one-step .rk-input-wrap fieldset {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Override any input styles that might be causing issues */
.rk-template-one-step .rk-input-wrap input,
.rk-template-one-step .rk-input-wrap select,
.rk-template-one-step .rk-input-wrap textarea {
  width: 100% !important;
  min-width: 0 !important;
  border: none !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.rk-one-step-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   FORM HEADER (REMOVED)
   ========================================================================== */

/* ==========================================================================
   FORM SECTIONS
   ========================================================================== */

.rk-form-section {
  /* background: #fafafa; */
  border-radius: 6px;
  padding: 1rem;
  /* border: 1px solid #e9ecef; */
}

/* Compact row layout for desktop optimization */
.rk-form-section.rk-compact-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem;
}

.rk-form-section.rk-compact-row > div {
  flex: 1;
  min-width: 0;
}

/* Personal info and service selection in row */
.rk-form-section.rk-compact-row .rk-personal-info {
  flex: 1.2;
}

.rk-form-section.rk-compact-row .rk-service-selection {
  flex: 0.8;
}

/* Schedule section in compact row */
.rk-form-section.rk-compact-row .rk-scheduling {
  flex: 0.8;
}

/* Additional info section in compact row */
.rk-form-section.rk-compact-row .rk-additional-info {
  flex: 1.2;
}

/* Time slots section - full width below compact row */
.rk-form-section.rk-time-slots {
  width: 100%;
  padding: 1.5rem;
  margin-top: 1rem;
  clear: both;
  position: relative;
}

.rk-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e2e4c;
  margin: 0 0 3rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6ac2b7;
  display: inline-block;
}

/* ==========================================================================
   FIELD GRIDS
   ========================================================================== */

.rk-field-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

.rk-field-grid .rk-input-wrap {
  width: 100%;
  box-sizing: border-box;
}

/* Grid layouts */
.rk-template-one-step .rk-field-grid.rk-two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.rk-template-one-step .rk-field-grid.rk-single-column {
  grid-template-columns: 1fr;
}

.rk-template-one-step .rk-field-grid.rk-three-columns {
  grid-template-columns: repeat(3, 1fr);
}

/* Date and Timezone Column */
.rk-scheduling .rk-date-timezone-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.rk-scheduling .rk-date-timezone-column .rk-input-wrap {
  width: 100%;
}

.rk-scheduling .rk-date-wrap {
  width: 100%;
}

.rk-scheduling .rk-timezone-wrap {
  width: 100%;
}

/* Time Selection Container */
.rk-scheduling .rk-time-selection-container {
  margin-top: 1.5rem;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #e0e6ef;
  overflow: hidden;
}

.rk-scheduling .rk-time-selection-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #6ac2b7 0%, #8ad6c0 100%);
  color: white;
  text-align: center;
}

.rk-scheduling .rk-time-selection-header p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Time Selection Tabs */
.rk-scheduling .rk-time-selection-tabs {
  display: flex;
  background-color: #f8fafc;
  border-bottom: 1px solid #e0e6ef;
}

.rk-scheduling .rk-tab-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.rk-scheduling .rk-tab-btn input[type="radio"] {
  display: none;
}

.rk-scheduling .rk-tab-btn.active input[type="radio"] {
  display: block;
  appearance: none;
  border-radius: 50%;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1rem;
  height: 1rem;
  opacity: 1;
  pointer-events: auto;
  border: 3px solid #6ac2b7;
  background-color: #95e091;
}

.rk-scheduling .rk-tab-btn:hover {
  background-color: #f1f5f9;
}

.rk-scheduling .rk-tab-btn.active {
  background-color: #fff;
  color: #1e2e4c;
  border-bottom: 3px solid #6ac2b7;
}

.rk-scheduling .rk-tab-btn:not(.active) {
  color: #64748b;
}

.rk-scheduling .rk-tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.rk-scheduling .rk-tab-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
}

.rk-scheduling .rk-tab-subtext {
  font-size: 0.75rem;
  opacity: 0.7;
  line-height: 1;
}

/* Tab Content */
.rk-scheduling .rk-tab-content {
  display: none;
  padding: 1.5rem;
}

.rk-scheduling .rk-tab-content.active {
  display: block;
}

/* Available Slots Content */
.rk-scheduling .rk-available-slots-container {
  min-height: 150px;
  max-height: none;
  contain: layout style paint;
}

.rk-scheduling .rk-slots-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  color: #64748b;
}

.rk-scheduling .rk-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e0e6ef;
  border-top: 3px solid #6ac2b7;
  border-radius: 50%;
  animation: rk-spin 1s linear infinite;
  margin-bottom: 1rem;
}

.rk-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  /* margin-top: 1rem; */
  /* padding: 1rem; */
  /* background: #f8f9fa; */
  /* border-radius: 8px; */
  /* border: 1px solid #e9ecef; */
}
.rk-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem !important;
  gap: 1rem;
  flex-wrap: wrap;
}

.rk-booking-ribbon {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 400;
  white-space: nowrap;
  /* margin: 0 0 1.5rem 0; */
}
.rk-slot-item {
  /* reduce the button padding */
  padding: 0.4rem 0.5rem;
  background-color: #fff;
  border: 2px solid #e0e6ef;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e2e4c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 45px;
}

.rk-slot-item:hover {
  border-color: #6ac2b7;
  background-color: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(106, 194, 183, 0.2);
}

.rk-slot-item.selected {
  border-color: #6ac2b7;
  background-color: #6ac2b7;
  color: white;
  box-shadow: 0 4px 12px rgba(106, 194, 183, 0.3);
  transform: translateY(-1px);
}

.rk-slot-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f1f5f9;
  color: #6c757d;
  transform: none;
  box-shadow: none;
}

.rk-scheduling .rk-slot-time {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: inherit;
}

.rk-scheduling .rk-slot-duration {
  font-size: 0.75rem;
  opacity: 0.8;
  color: inherit;
}

.rk-scheduling .rk-no-slots-message {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: #64748b;
}

/* Custom Time Content */
.rk-scheduling .rk-custom-time-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 300px;
  min-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.rk-scheduling .rk-custom-time-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #0369a1;
}

.rk-scheduling .rk-notice-icon {
  font-size: 1.125rem;
  line-height: 1;
  margin-top: 0.125rem;
}

.rk-scheduling .rk-notice-content strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.rk-scheduling .rk-notice-content p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}
/* Responsive for Date/Timezone Column */
@media (max-width: 768px) {
  .rk-scheduling .rk-date-timezone-column {
    gap: 1rem;
  }

  .rk-scheduling .rk-date-wrap,
  .rk-scheduling .rk-timezone-wrap {
    width: 100%;
  }

  .rk-scheduling .rk-time-selection-tabs {
    flex-direction: column;
  }

  .rk-scheduling .rk-tab-btn {
    padding: 0.75rem 1rem;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
  }

  .rk-scheduling .rk-tab-icon {
    font-size: 1.125rem;
  }

  .rk-scheduling .rk-tab-text {
    font-size: 0.8rem;
  }

  .rk-scheduling .rk-tab-subtext {
    font-size: 0.7rem;
  }

  .rk-scheduling .rk-tab-content {
    padding: 1rem;
  }

  .rk-slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
  }

  .rk-slot-item {
    /* reduce the button padding */
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    min-height: 40px;
  }

  .rk-scheduling .rk-slot-time {
    font-size: 0.75rem;
  }

  .rk-scheduling .rk-slot-duration {
    font-size: 0.6rem;
  }
}

/* Additional Information - 2 columns for company fields */
.rk-additional-info .rk-field-grid.rk-three-columns {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Responsive adjustments for additional info */
@media (max-width: 1024px) {
  .rk-additional-info .rk-field-grid.rk-three-columns {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 900px) {
  /* Adjust flex ratios for medium screens */
  .rk-form-section.rk-compact-row .rk-scheduling {
    flex: 1.4;
  }

  .rk-form-section.rk-compact-row .rk-additional-info {
    flex: 0.6;
  }

  /* Service cards responsive */
  /* .rk-service-cards.rk-compact-layout .rk-service-card {
    flex: 0 1 280px;
    min-width: 220px;
  } */
}

@media (max-width: 768px) {
  .rk-additional-info .rk-field-grid.rk-three-columns {
    grid-template-columns: 1fr !important;
  }

  /* On mobile, make the compact row stack vertically */
  .rk-form-section.rk-compact-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .rk-form-section.rk-compact-row .rk-scheduling,
  .rk-form-section.rk-compact-row .rk-additional-info {
    flex: none;
    width: 100%;
  }

  /* Section header responsive */
  .rk-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* .rk-booking-ribbon {
    font-size: 0.8rem;
  } */
}

.rk-additional-info .rk-field-grid.rk-three-columns .rk-input-wrap {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  grid-column: auto !important;
}

/* Responsive breakpoints */
/* Responsive grid layouts */
@media (max-width: 1024px) {
  .rk-template-one-step .rk-field-grid.rk-three-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rk-template-one-step .rk-field-grid.rk-two-columns,
  .rk-template-one-step .rk-field-grid.rk-three-columns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INPUT STYLES (Updated to match search form plugin)
   ========================================================================== */

.rk-input-wrap {
  position: relative;
}

/* Fieldset container - matching search form style */
.rk-input-wrap fieldset {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  position: relative;
  transition: border-color 0.3s ease;
  background: #fff;
  margin: 0;
}

.rk-input-wrap fieldset:focus-within {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

/* Input wrapper */
.rk-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.rk-input-wrapper input,
.rk-input-wrapper textarea,
.rk-input-wrapper select {
  width: 100%;
  padding: 4px 2px 4px 0;
  font-size: 0.9rem;
  border: none !important;
  background: transparent;
  outline: none;
  color: #233963;
}

/* Legend base - floating label style */
.rk-input-wrapper legend {
  position: absolute;
  top: 50%;
  left: 0;
  font-size: 0.9rem;
  font-weight: 200;
  color: #233963;
  transform: translateY(-50%);
  pointer-events: none;
  transition: all 0.2s ease;
  background: #fff;
  padding: 0 0.3rem;
  z-index: 1;
}

/* Bump size + color when input focused */
.rk-input-wrap fieldset:focus-within legend {
  font-size: 1.5rem;
  color: #233963;
}

/* Floating effect when input is focused */
.rk-input-wrapper input:focus + legend,
.rk-input-wrapper textarea:focus + legend,
.rk-input-wrapper select:focus + legend {
  top: -15px;
  font-size: 1.2rem;
  font-weight: 300;
  color: #1e2e4c;
  border-radius: 20px;
  padding: 0 6px;
  overflow: hidden;
}

/* Keep legend floated if input has value */
.rk-input-wrapper input.has-value + legend,
.rk-input-wrapper textarea.has-value + legend,
.rk-input-wrapper select.has-value + legend {
  top: -12px;
  font-size: 1rem;
  font-weight: 300;
  color: #1e2e4c;
  border-radius: 20px;
  padding: 0 4px;
  overflow: hidden;
}

/* Special handling for timezone input group */
.rk-timezone-input-group input:focus ~ legend,
.rk-timezone-input-group select:focus ~ legend {
  top: -15px;
  font-size: 1.2rem;
  font-weight: 300;
  color: #1e2e4c;
  border-radius: 20px;
  padding: 0 6px;
  overflow: hidden;
}

.rk-timezone-input-group input.has-value ~ legend,
.rk-timezone-input-group select.has-value ~ legend {
  top: -12px !important;
  font-size: 1rem !important;
  font-weight: 300 !important;
  color: #1e2e4c !important;
  border-radius: 20px;
  padding: 0 4px;
  overflow: hidden;
}

/* More specific selector for timezone select - legend is sibling of input-wrapper */
.rk-timezone-wrap .rk-input-wrapper:has(select.has-value) legend {
  top: -12px !important;
  font-size: 1rem !important;
  font-weight: 300 !important;
  color: #1e2e4c !important;
  border-radius: 20px;
  padding: 0 4px;
  overflow: hidden;
}

/* Fallback for browsers that don't support :has() */
.rk-timezone-wrap .rk-input-wrapper select.has-value ~ legend {
  top: -12px !important;
  font-size: 1rem !important;
  font-weight: 300 !important;
  color: #1e2e4c !important;
  border-radius: 20px;
  padding: 0 4px;
  overflow: hidden;
}

/* Special handling for timezone select - ensure options are always visible in dropdown */
.rk-timezone-input-group select option {
  color: #233963;
  background: #fff;
}

.rk-input-wrap input::placeholder,
.rk-input-wrap textarea::placeholder {
  color: #95a5a6;
  font-style: italic;
}

.rk-input-wrap textarea {
  resize: vertical;
  min-height: 80px;
}

/* ==========================================================================
   ERROR MESSAGES
   ========================================================================== */

.rk-error-msg {
  font-size: 0.85rem;
  color: #e74c3c;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.rk-error-msg.rk-show-error {
  opacity: 1;
  transform: translateY(0);
}

.rk-input-wrap input.rk-invalid,
.rk-input-wrap textarea.rk-invalid,
.rk-input-wrap select.rk-invalid {
  border-color: #e74c3c;
}

.rk-input-wrap input.rk-invalid + fieldset,
.rk-input-wrap textarea.rk-invalid + fieldset,
.rk-input-wrap select.rk-invalid + fieldset {
  border-color: #e74c3c;
}

/* ==========================================================================
   SERVICE CARDS (COMPACT)
   ========================================================================== */
.rk-service-selection p.rk-section-subtext {
  font-size: small;
}
.rk-service-card {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.rk-service-card:hover {
  border-color: #6ac2b7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 194, 183, 0.15);
}

.rk-service-card input[type="radio"]:checked + .rk-service-header {
  background: #6ac2b7;
  color: #fff;
}

.rk-service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 1rem; */
  /* padding: 0.5rem; */
  border-radius: 6px;
  transition: all 0.3s ease;
}

.rk-service-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #1e2e4c;
}

.rk-service-description {
  margin-bottom: 1rem;
}

.rk-service-description p {
  font-size: 0.95rem;
  color: #7f8c8d;
  line-height: 1.4;
  margin: 0;
}

.rk-service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.rk-service-footer span {
  font-weight: 600;
  color: #18a57b;
  font-size: 1.1rem;
}

/* Compact service cards when description/price are hidden */
.rk-service-card.rk-compact {
  padding: 1rem;
}
/* 
.rk-service-card.rk-compact .rk-service-header {
  margin-bottom: 0.5rem;
} */

.rk-service-card.rk-compact .rk-service-footer {
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.rk-timeslot-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rk-timeslot-options label {
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rk-timeslot-options label:hover {
  background: #e9ecef;
}

.rk-timeslot-options input[type="radio"] {
  margin-right: 0.3rem;
}

.rk-timeslot-options input[type="radio"]:checked {
  accent-color: #6ac2b7;
}

.rk-timeslot-options label:has(input[type="radio"]:checked),
.rk-timeslot-options label.rk-duration-selected {
  background: #6ac2b7;
  color: #fff;
  /* border-color: #6AC2B7; */
}

/* ==========================================================================
   TIMEZONE INPUT GROUP
   ========================================================================== */
.rk-timezone-wrap fieldset {
  padding: 0.5rem 1rem !important;
}
.rk-timezone-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.rk-timezone-input-group input {
  flex: 1;
  min-width: 0;
}

.rk-timezone-input-group select {
  flex: 1;
}

.rk-auto-detect-btn {
  padding: 0.5rem 0.75rem;
  background: #6ac2b7;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.rk-auto-detect-btn:hover {
  background: #5ab3a6;
  transform: translateY(-1px);
}

.rk-auto-detect-btn:active {
  transform: translateY(0);
}

.rk-auto-detect-icon {
  font-size: 1rem;
}

/* ==========================================================================
   AVAILABLE SLOTS
   ========================================================================== */

.rk-available-slots-container {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.rk-available-slots-container h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e2e4c;
  margin: 0 0 1rem 0;
}

.rk-slots-grid.rk-compact-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.rk-slot-item.rk-compact-slot {
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e2e4c;
  transition: all 0.3s ease;
}

.rk-slot-item.rk-compact-slot:hover {
  border-color: #6ac2b7;
  background: #f8f9fa;
}

.rk-slot-item.rk-compact-slot.selected {
  background: #6ac2b7;
  color: #fff;
  border-color: #6ac2b7;
}

.rk-no-slots-message {
  text-align: center;
  padding: 2rem;
  color: #7f8c8d;
  font-style: italic;
}

/* ==========================================================================
   FORM ACTIONS
   ========================================================================== */

.rk-button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rk-btn {
  padding: 14px 24px;
  overflow: hidden;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 10px;
  color: white;
  font-size: 16px;
  font-family: Poppins;
  font-weight: 600;
  line-height: 20px;
  word-wrap: break-word;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 150px;
}

.rk-btn-primary {
  background: linear-gradient(
    90deg,
    #47b0a3 0%,
    #4fb799 30%,
    #4cc86f 77%,
    #84ba4c 100%
  );
}

.rk-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(71, 176, 163, 0.3);
}

.rk-btn-secondary {
  background: #6e7191;
}

.rk-btn-secondary:hover {
  background: #5a5d7a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(110, 113, 145, 0.3);
}

/* ==========================================================================
   SUCCESS MESSAGE
   ========================================================================== */

.rk-success-container {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 2px solid #27ae60;
  max-width: 1000px;
  margin: 0 auto;
}

.rk-success-header {
  text-align: center;
  margin-bottom: 2rem;
}

.rk-success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.rk-success-title {
  font-size: 2rem;
  font-weight: 700;
  color: #18a57b;
  margin: 0 0 1rem 0;
}

.rk-success-greeting {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e2e4c;
  margin: 0 0 1rem 0;
}

.rk-success-details {
  font-size: 1.1rem;
  color: #7f8c8d;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.rk-success-content {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.rk-success-info {
  flex: 1;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rk-success-info-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e2e4c;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rk-success-info-grid {
  display: grid;
  gap: 1rem;
}

.rk-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f3f4;
}

.rk-info-item:last-child {
  border-bottom: none;
}

.rk-info-label {
  font-weight: 600;
  color: #5f6368;
  font-size: 0.95rem;
}

.rk-info-value {
  font-weight: 500;
  color: #1e2e4c;
  text-align: right;
  max-width: 200px;
  word-wrap: break-word;
}

.rk-success-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rk-step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #18a57b;
}

.rk-step-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.rk-step-text {
  font-weight: 500;
  color: #1e2e4c;
  line-height: 1.4;
}

.rk-success-actions {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .rk-success-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .rk-success-info {
    padding: 1.5rem;
  }

  .rk-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .rk-info-value {
    text-align: left;
    max-width: 100%;
  }

  .rk-step-item {
    padding: 0.75rem;
  }
}

.rk-success-actions .rk-btn {
  margin: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  .rk-template-one-step {
    padding: 1rem;
    margin: 1rem;
  }

  .rk-form-title {
    font-size: 2rem;
  }

  .rk-template-one-step .rk-field-grid.rk-two-columns,
  .rk-template-one-step .rk-field-grid.rk-three-columns {
    grid-template-columns: 1fr;
  }

  /* .rk-service-cards.rk-compact-layout {
    flex-direction: column;
  } */

  .rk-service-cards.rk-compact-layout .rk-service-card {
    flex: none;
    width: 100%;
  }

  .rk-timezone-input-group {
    flex-direction: column;
  }

  .rk-auto-detect-btn {
    justify-content: center;
  }

  .rk-slots-grid.rk-compact-slots {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .rk-button-group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .rk-btn {
    width: 100%;
    max-width: 300px;
    padding: 10px 25px;
    font-size: 14px;
  }

  /* Responsive compact row layout */
  .rk-form-section.rk-compact-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .rk-form-section.rk-compact-row > div {
    flex: none;
  }
}

@media (max-width: 480px) {
  .rk-form-title {
    font-size: 1.8rem;
  }

  .rk-form-subtitle {
    font-size: 1rem;
  }

  /* .rk-section-title {
    font-size: 1.2rem;
  } */

  .rk-service-card {
    padding: 1rem;
  }

  .rk-success-container {
    padding: 2rem 1rem;
  }

  .rk-success-title {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.rk-loading {
  opacity: 0.6;
  pointer-events: none;
}

.rk-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #3498db;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: rk-spin 1s linear infinite;
}

@keyframes rk-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.rk-input-wrap input:focus,
.rk-input-wrap textarea:focus,
.rk-input-wrap select:focus {
  /* outline: 2px solid #6AC2B7; */
  outline-offset: 2px;
}

.rk-btn:focus {
  outline: 2px solid #6ac2b7;
  outline-offset: 2px;
}

.rk-service-card:focus-within {
  outline: 2px solid #6ac2b7;
  outline-offset: 2px;
}

.rk-service-card.rk-service-selected {
  border-color: #6ac2b7;
  box-shadow: 0 0 0 2px rgba(106, 194, 183, 0.2);
  background-color: rgba(106, 194, 183, 0.05);
}

.rk-service-card.rk-service-selected .rk-service-header {
  background-color: rgba(106, 194, 183, 0.1);
}

/* ==========================================================================
   CALENDAR PICKER STYLES
   ========================================================================== */

/* Calendar Picker */
.rk-template-one-step .rk-calendar-picker {
  display: none;
  border: 1px solid #d3d7e0;
  border-radius: 10px;
  padding: 20px;
  background-color: #fff;
  font-family: "Public Sans", sans-serif;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rk-template-one-step .rk-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rk-template-one-step .rk-calendar-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #1e2e4c;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.rk-template-one-step .rk-calendar-header button:hover {
  background-color: #e0e6ef;
}

.rk-template-one-step .rk-calendar-month-year {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e2e4c;
}

.rk-template-one-step .rk-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 10px;
}

.rk-template-one-step .rk-calendar-weekday {
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #1e2e4c;
  text-align: center;
}

.rk-template-one-step .rk-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.rk-template-one-step .rk-calendar-day {
  padding: 8px 4px;
  font-size: 14px;
  color: #5a6170;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.rk-template-one-step
  .rk-calendar-day:hover:not(.rk-calendar-day-empty):not(
    .rk-calendar-day-past
  ) {
  background-color: #e0e6ef;
}

.rk-template-one-step .rk-calendar-day-today {
  background-color: #6ac2b7;
  color: #fff;
  font-weight: 600;
}

.rk-template-one-step .rk-calendar-day-selected {
  background-color: #18a57b;
  color: #fff;
  font-weight: 600;
}

.rk-template-one-step .rk-calendar-day-past {
  color: #d3d7e0;
  cursor: not-allowed;
}

.rk-template-one-step .rk-calendar-day-empty {
  cursor: default;
}

/* Active input styling to show calendar */
.rk-template-one-step .rk-input-wrap.active .rk-calendar-picker {
  display: block !important;
}
.rk-input-wrap .rk-timezone-wrap fieldset {
  padding: 0 !important;
}
/* ==========================================================================
   TIME PICKER STYLES
   ========================================================================== */

/* Custom Time Picker */
.rk-template-one-step .rk-time-picker-custom {
  display: none;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  background-color: #f7f9fc;
  border-radius: 8px;
  padding: 15px;
  height: 160px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e0e6ef;
  font-family: "Public Sans", sans-serif;
  flex-wrap: nowrap;
  min-width: 240px;
  max-width: 280px;
  contain: layout style paint;
  will-change: opacity;
  touch-action: pan-y;
}

.rk-template-one-step .rk-time-column {
  height: 100%;
  width: 50px;
  overflow-y: scroll;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  text-align: center;
  position: relative;
  touch-action: pan-y;
  outline: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.rk-template-one-step .rk-time-column:focus {
  background-color: rgba(106, 194, 183, 0.1);
  box-shadow: 0 0 0 2px rgba(106, 194, 183, 0.3);
}

.rk-template-one-step .rk-time-column::-webkit-scrollbar {
  display: none;
}

.rk-template-one-step .rk-time-column div {
  height: 45px;
  line-height: 45px;
  padding: 0;
  font-size: 14px;
  color: #5a6170;
  cursor: pointer;
  transition: color 0.2s, font-weight 0.2s, background-color 0.2s;
  box-sizing: border-box;
  border-radius: 3px;
  margin: 1px 2px;
}

.rk-template-one-step .rk-time-column div:hover {
  background-color: rgba(106, 194, 183, 0.1);
  color: #1e2e4c;
}

.rk-template-one-step .rk-time-column div:focus {
  outline: 2px solid #6ac2b7;
  outline-offset: 1px;
  background-color: rgba(106, 194, 183, 0.15);
}

.rk-template-one-step .rk-time-column div.rk-time-padding {
  height: 45px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}

.rk-template-one-step .rk-time-column .rk-selected-time-value {
  font-weight: 700;
  color: #1e2e4c;
  font-size: 16px;
}

.rk-template-one-step .rk-time-divider {
  font-size: 18px;
  font-weight: 700;
  color: #1e2e4c;
  line-height: 45px;
}

.rk-template-one-step .rk-ampm-column {
  width: 40px;
  overflow-x: hidden;
  touch-action: pan-y;
}

.rk-template-one-step .rk-ampm-column .rk-selected-time-value {
  font-size: 14px;
}

.rk-template-one-step .rk-ampm-column div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Time picker highlight */
.rk-template-one-step .rk-time-picker-custom {
  position: relative;
}

.rk-template-one-step .rk-time-picker-center-highlight {
  position: absolute;
  left: 0;
  right: 0;
  height: 45px;
  border-radius: 6px;
  background-color: #e0e6ef;
  pointer-events: none;
  transform: translateY(-50%);
  top: 50%;
  z-index: 1;
}

.rk-template-one-step .rk-time-column div {
  position: relative;
  z-index: 2;
}

.rk-template-one-step .rk-time-column.rk-hours-column .rk-selected-time-value,
.rk-template-one-step .rk-time-column.rk-minutes-column .rk-selected-time-value,
.rk-template-one-step .rk-time-column.rk-seconds-column .rk-selected-time-value,
.rk-template-one-step .rk-time-column.rk-ampm-column .rk-selected-time-value {
  border: none;
}

/* Time picker help text */
.rk-template-one-step .rk-time-picker-help {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  text-align: center;
  color: #7f8c8d;
  font-size: 11px;
  line-height: 1.2;
}

/* Active input styling to show time picker */
.rk-template-one-step .rk-input-wrap.active .rk-time-picker-custom {
  display: flex !important;
}

/* Hide the default dropdown arrow for time inputs */
.rk-template-one-step .rk-time-input {
  background-image: none !important;
}

.rk-template-one-step .rk-input-wrap .rk-time-picker-custom {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
}

/* Responsive Design for Time Picker */
@media (max-width: 768px) {
  .rk-template-one-step .rk-time-picker-custom {
    min-width: 240px;
    max-width: 280px;
    padding: 15px;
    height: 200px;
  }

  .rk-template-one-step .rk-time-column {
    width: 50px;
  }

  .rk-template-one-step .rk-time-column div {
    height: 50px;
    line-height: 50px;
    font-size: 14px;
  }

  .rk-template-one-step .rk-time-column .rk-selected-time-value {
    font-size: 18px;
    line-height: 50px;
  }

  .rk-template-one-step .rk-time-divider {
    font-size: 20px;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .rk-template-one-step {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .rk-btn,
  .rk-auto-detect-btn {
    display: none;
  }

  .rk-form-section {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   REQUIRED FIELDS MESSAGE
   ========================================================================== */

.rk-required-fields-message {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.rk-required-fields-message h4 {
  color: #495057;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.rk-required-fields-message p {
  color: #6c757d;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.rk-required-fields-message ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.rk-required-fields-message li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  color: #495057;
}

.rk-required-fields-message li:last-child {
  border-bottom: none;
}

.rk-required-fields-message em {
  color: #6c757d;
  font-style: italic;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .rk-required-fields-message {
    padding: 1rem;
  }

  .rk-required-fields-message h4 {
    font-size: 1rem;
  }
}

/* ==========================================================================
   DATE AVAILABILITY INDICATORS
   ========================================================================== */

/* Base availability indicator styles */
.rk-date-cell {
  position: relative;
  transition: all 0.3s ease;
}

/* High availability (80-100%) */
.rk-date-cell.rk-high-availability {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.rk-date-cell.rk-high-availability:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Medium availability (40-79%) */
.rk-date-cell.rk-medium-availability {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.rk-date-cell.rk-medium-availability:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Low availability (1-39%) */
.rk-date-cell.rk-low-availability {
  background: linear-gradient(135deg, #dc3545, #e83e8c);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.rk-date-cell.rk-low-availability:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* No availability (0%) */
.rk-date-cell.rk-no-availability {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  font-weight: 600;
  opacity: 0.7;
  cursor: not-allowed;
}

.rk-date-cell.rk-no-availability:hover {
  transform: none;
  box-shadow: none;
}

/* Availability tooltip */
.rk-availability-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  display: none;
  margin-bottom: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rk-availability-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.rk-tooltip-content {
  text-align: center;
}

.rk-availability-level {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.rk-availability-stats {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.rk-availability-percentage {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.rk-availability-presenters {
  font-size: 0.7rem;
  opacity: 0.7;
  font-style: italic;
}

/* Availability legend */
.rk-availability-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Compact legend for one-step form */
.rk-compact-legend {
  gap: 0.5rem !important;
  margin: 0.25rem 0 !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.7rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

.rk-availability-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.rk-availability-legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.rk-availability-legend-color.high {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.rk-availability-legend-color.medium {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.rk-availability-legend-color.low {
  background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.rk-availability-legend-color.none {
  background: linear-gradient(135deg, #6c757d, #495057);
}

/* Availability indicator colors for calendar days */
.rk-calendar-day.rk-high-availability {
  background-color: rgba(40, 167, 69, 0.2) !important;
  border: 1px solid rgba(40, 167, 69, 0.4) !important;
}

.rk-calendar-day.rk-medium-availability {
  background-color: rgba(255, 193, 7, 0.2) !important;
  border: 1px solid rgba(255, 193, 7, 0.4) !important;
}

.rk-calendar-day.rk-low-availability {
  background-color: rgba(220, 53, 69, 0.2) !important;
  border: 1px solid rgba(220, 53, 69, 0.4) !important;
}

.rk-calendar-day.rk-no-availability {
  background-color: rgba(108, 117, 125, 0.2) !important;
  border: 1px solid rgba(108, 117, 125, 0.4) !important;
}

/* Disabled dates beyond limit */
.rk-calendar-day.rk-calendar-day-disabled {
  background-color: #f8f9fa !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  text-decoration: line-through !important;
}

/* Weekend days styling */
.rk-calendar-day.rk-calendar-day-weekend {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  position: relative;
}

.rk-calendar-day.rk-calendar-day-weekend:hover {
  background-color: #f5f5f5 !important;
  transform: none !important;
  box-shadow: none !important;
}

.rk-calendar-day.rk-calendar-day-weekend::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
}
.rk-scheduling .rk-section-title,
.rk-service-selection .rk-section-title {
  margin: 0 !important;
}
/* .rk-scheduling .rk-section-header {
  margin: 0 0 3rem 0 !important;
} */
/* Responsive design for availability indicators */
@media (max-width: 768px) {
  .rk-service-cards {
    grid-template-columns: 1fr;
  }

  .rk-availability-legend {
    flex-direction: column;
    gap: 0.5rem;
  }

  .rk-availability-legend-item {
    font-size: 0.8rem;
  }

  .rk-availability-tooltip {
    font-size: 0.7rem;
    padding: 0.4rem;
  }

  .rk-form-actions {
    padding: 0 !important;
  }
}
@media (max-width: 1024px) {
  .rk-form-section.rk-compact-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .rk-form-section.rk-compact-row > * {
    width: 100%;
  }
  .rk-form-section.rk-compact-row .rk-scheduling {
    flex: 1;
  }
  .rk-form-section.rk-compact-row .rk-additional-info {
    flex: 1;
  }
  .rk-personal-info > :not(:first-child) {
    margin-top: 1rem;
  }
  .rk-field-grid {
    gap: 1rem !important;
  }
  .rk-input-wrapper legend {
    margin-bottom: 0 0 1rem 0 !important;
  }
  .rk-scheduling .rk-timezone-wrap legend {
    top: -20% !important;
  }
}
/* Calendar loading styles */
.rk-calendar-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.rk-loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: rk-spin 1s linear infinite;
  margin-bottom: 8px;
}

.rk-loading-text {
  font-size: 12px;
  color: #666;
  text-align: center;
}

@keyframes rk-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
