@import url('https://fonts.googleapis.com/css2?family=Teachers:wght@400;700&display=swap');

/* GLOBAL FONT */
body, html, .kr-main-bg, .kr-booking-container, .kr-stepper-progress, .kr-step-indicator, .kr-step-sep,
#kr-kalendorius, .kr-calendar-header, .kr-calendar-days, .kr-calendar-dayname, .kr-calendar-day,
.kr-calendar-bottom-row, .kr-legend, .kr-legend-label, .kr-group-title-row, .kr-group-title,
.kr-master-checkbox-wrap, .kr-custom-checkbox, .kr-services-row, .kr-services-group, .kr-services-list,
.kr-services-list li, .kr-services-list label, .kr-form-side, #kr-forma, #kr-forma label, #kr-forma input,
#kr-forma select, #kr-forma textarea, #kr-forma .kr-submit-btn, #kr-forma .kr-back-btn, .kr-form-row-two,
.kr-form-col, .kr-step-controls, .kr-step, .kr-step[data-step="3"] form#kr-forma, .kr-mini-calendar,
.kr-mini-calendar label, .kr-mini-calendar .kr-dot, .kr-group-block {
  font-family: 'Teachers', Arial, sans-serif !important;
}

/* Base - Updated Theme with D35B6E & FFA9B4 */
body {
  background: transparent;
}
.kr-main-bg {
  background: transparent;
  min-height: fit-content;
  height: fit-content;
  padding: 2em 0 4em 0;
}
.kr-booking-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 1em;
  min-height: fit-content;
  height: fit-content;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .kr-main-bg {
    padding: 1em 0 2em 0;
    min-height: fit-content;
    height: fit-content;
  }
  
  .kr-booking-container {
    padding: 0 0.5em;
  }
  
  /* Stepper mobile optimization */
  .kr-stepper-progress {
    margin-bottom: 1.5em;
    margin-top: 0.3em;
  }
  .kr-step-indicator {
    width: 30px;
    height: 30px;
    font-size: 1em;
    line-height: 30px;
  }
  .kr-step-sep {
    width: 25px;
  }
}

/* Stepper - Updated Theme */
.kr-stepper-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 2.2em;
  margin-top: 0.5em;
}
.kr-step-indicator {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #D35B6E;
  font-weight: bold;
  font-size: 1.13em;
  line-height: 34px;
  text-align: center;
  border: 3px solid #FFA9B4;
  transition: all .3s ease;
}
.kr-step-indicator.active {
  background: #D35B6E;
  color: #fff;
  border-color: #D35B6E;
  box-shadow: 0 2px 8px rgba(211, 91, 110, 0.3);
}
.kr-step-sep {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: transparent;
  opacity: 0.6;
}

/* Calendar */
#kr-kalendorius {
  background: #fff;
  color: #D35B6E;
  border-radius: 20px;
  padding: 2em 1.5em;
  box-shadow: 0 8px 40px rgba(211, 91, 110, 0.08);
  border: 2px solid #FFA9B4;
  min-width: 360px;
  max-width: 480px;
  min-height: 260px;
  margin: 0 auto;
}

/* Mobile calendar optimization */
@media (max-width: 768px) {
  #kr-kalendorius {
    min-width: auto;
    max-width: 100%;
    padding: 1.5em 1em;
    margin: 0 0.5em;
    border-radius: 15px;
    border: 2px solid #FFA9B4;
    background: #fff;
  }
  
  .kr-calendar-header {
    font-size: 1.2em !important;
    margin-bottom: 0.8em !important;
  }
  
  .kr-calendar-header button {
    width: 35px !important;
    height: 35px !important;
    font-size: 1.1em !important;
  }
  
  .kr-calendar-days {
    gap: 4px !important;
  }
  
  .kr-calendar-day {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 0.95em !important;
  }
  
  .kr-calendar-dayname {
    font-size: 0.9em !important;
    margin-bottom: 0.3em !important;
  }
}

/* General step styling for proper height adaptation */
.kr-step {
  min-height: fit-content;
  height: fit-content;
}

/* Step 1 Layout - Center everything */
.kr-step[data-step="1"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kr-step[data-step="1"] .kr-step-controls {
  margin: 2em auto 0 auto;
  width: 100%;
  max-width: 480px;
  justify-content: center;
}
.kr-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.45em;
  font-weight: bold;
  margin-bottom: 1em;
  color: #D35B6E;
}
.kr-calendar-header button {
  background: #FFA9B4;
  border: 2px solid #FFA9B4;
  color: #D35B6E;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kr-calendar-header button:hover { 
  background: #D35B6E;
  color: #fff;
  border-color: #D35B6E;
}
.kr-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.kr-calendar-dayname {
  text-align: center;
  font-weight: 600;
  color: #D35B6E;
  font-size: 1.02em;
  letter-spacing: .03em;
  margin-bottom: 0.2em;
}
/* Calendar day states - 3 distinct designs */
.kr-calendar-day {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.08em;
  line-height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #D35B6E;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #FFA9B4;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Selected day - Pink filled circle */
.kr-calendar-day.selected {
  background: #D35B6E;
  color: #fff;
  border: 2px solid #D35B6E;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(211, 91, 110, 0.3);
}

/* Booked day - Dark gray, not clickable */
.kr-calendar-day.kr-status-booked {
  background: #757575 !important;
  color: #fff !important;
  border: 2px solid #757575 !important;
  font-weight: bold !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

/* Partially booked day - Orange/yellow design, clickable */
.kr-calendar-day.kr-status-partial {
  background: #fff3e0;
  color: #f57c00;
  border: 2px solid #ffb74d;
  font-weight: 600;
  opacity: 1;
  cursor: pointer;
  position: relative;
}

/* Partially booked when selected */
.kr-calendar-day.kr-status-partial.selected {
  background: #f57c00;
  color: #fff;
  border: 2px solid #f57c00;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

/* Add a small indicator for partially booked */
.kr-calendar-day.kr-status-partial::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #f57c00;
  border-radius: 50%;
  border: 1px solid #fff;
}
.kr-calendar-day.kr-calendar-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #bdbdbd;
  border: 2px solid #eeeeee;
}
/* Hover and interaction effects */
.kr-calendar-day:not(.kr-calendar-disabled):not(.kr-status-booked):hover {
  background: #D35B6E;
  color: #fff;
  border: 2px solid #D35B6E;
  transform: scale(1.1);
}

/* Partially booked hover effect */
.kr-calendar-day.kr-status-partial:hover {
  background: #fff8e1;
  color: #f57c00;
  border: 2px solid #f57c00;
  transform: scale(1.1);
}

/* Legend */
.kr-calendar-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  margin-top: 1.5em;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
/* Legend with updated colors */
.kr-legend {
  display: flex;
  gap: 1.1em;
  align-items: center;
  font-size: 0.97em;
  color: #fff;
  background: #D35B6E;
  padding: 0.6em 1em;
  border-radius: 12px;
  min-width: 0;
  flex-wrap: wrap;
  white-space: nowrap;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(211, 91, 110, 0.3);
}
.kr-legend-label {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-right: 0.7em;
}
.kr-dot {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  margin-right: 0.27em;
  vertical-align: middle;
  background: none;
  position: relative;
}
.kr-dot.kr-status-booked {
  background: #757575;
  border: 2px solid #757575;
}
.kr-dot.kr-status-partial {
  background: #fff3e0;
  border: 2px solid #ffb74d;
}
/* Add indicator for partially booked dot */
.kr-dot.kr-status-partial::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  width: 4px;
  height: 4px;
  background: #f57c00;
  border-radius: 50%;
  border: 1px solid #fff;
}
@media (max-width:600px){
  .kr-calendar-bottom-row {
    flex-direction: column; 
    align-items: center;
    gap: 1em;
    margin-top: 1.2em;
    padding: 0 0.5em;
  }
  .kr-legend {
    font-size: 0.9em;
    gap: 0.8em;
    padding: 0.5em 0.8em;
    border-radius: 10px;
    justify-content: center;
    max-width: 100%;
  }
  .kr-legend-label {
    gap: 0.3em;
    margin-right: 0.5em;
  }
}

/* Cleaning Types (Step 2) - Soft Pink Theme */
.kr-cleaning-types-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  justify-content: center;
  margin-bottom: 2.3em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile optimization for cleaning type cards */
@media (max-width: 768px) {
  .kr-cleaning-types-row {
    grid-template-columns: 1fr;
    gap: 1.2em;
    margin-bottom: 1.8em;
    padding: 0 0.5em;
    max-width: 400px;
    align-items: stretch;
  }
}

.kr-cleaning-type-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(211, 91, 110, 0.08);
  border: 2px solid #FFA9B4;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

/* Mobile optimization for individual cards */
@media (max-width: 768px) {
  .kr-cleaning-type-card {
    min-height: 160px;
    height: 160px;
    border-radius: 15px;
    width: 100%;
    max-width: 100%;
  }
  
  /* Ensure all cards have same height and width regardless of content */
  .kr-cleaning-types-row .kr-cleaning-type-card {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 1;
  }
}

.kr-cleaning-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(211, 91, 110, 0.15);
  border-color: #D35B6E;
}

/* Disable hover effects on mobile */
@media (max-width: 768px) {
  .kr-cleaning-type-card:hover {
    transform: none;
  }
}
.kr-cleaning-type-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.kr-cleaning-type-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5em 2em;
  height: 100%;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  flex: 1;
}

/* Mobile optimization for card content */
@media (max-width: 768px) {
  .kr-cleaning-type-label {
    padding: 1.5em 1.2em;
    justify-content: center;
    height: 100%;
  }
}

.kr-cleaning-type-icon {
  font-size: 4em;
  margin-bottom: 0.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Mobile icon optimization */
@media (max-width: 768px) {
  .kr-cleaning-type-icon {
    font-size: 2.5em;
    margin-bottom: 0.3em;
  }
}

.kr-cleaning-type-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #D35B6E;
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Mobile title optimization */
@media (max-width: 768px) {
  .kr-cleaning-type-title {
    font-size: 1.1em;
    margin-bottom: 0.2em;
    letter-spacing: 0.2px;
    line-height: 1.1;
    color: #D35B6E;
  }
}

.kr-cleaning-type-desc {
  font-size: 1em;
  color: #B04968;
  line-height: 1.4;
  opacity: 0.9;
  font-weight: 400;
}

/* Mobile description optimization */
@media (max-width: 768px) {
  .kr-cleaning-type-desc {
    font-size: 0.85em;
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    color: #B04968;
  }
}
.kr-cleaning-type-card:hover .kr-cleaning-type-icon {
  transform: scale(1.1);
}
.kr-cleaning-type-radio:checked + .kr-cleaning-type-label {
  background: #D35B6E;
  color: #fff;
}
.kr-cleaning-type-radio:checked + .kr-cleaning-type-label .kr-cleaning-type-title {
  color: #fff;
}
.kr-cleaning-type-radio:checked + .kr-cleaning-type-label .kr-cleaning-type-desc {
  color: rgba(255, 255, 255, 0.9);
}
.kr-cleaning-type-card:has(.kr-cleaning-type-radio:checked),
.kr-cleaning-type-card.selected {
  border-color: #D35B6E;
  box-shadow: 0 8px 30px rgba(211, 91, 110, 0.25);
  transform: translateY(-4px);
}
.kr-cleaning-type-card:has(.kr-cleaning-type-radio:checked)::after,
.kr-cleaning-type-card.selected::after {
  content: '✓';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: #fff;
  color: #D35B6E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Services (kept for admin/legacy compatibility) */
.kr-group-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.6em;
  gap: 0;
}
.kr-group-title {
  display: block;
  font-size: 1.19em;
  font-weight: bold;
  color: #D35B6E;
  letter-spacing: -0.5px;
  margin-bottom: 0.16em;
  line-height: 1.2;
  text-align: center;
}
.kr-master-checkbox-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42em;
  font-size: 1em;
  color: #D35B6E;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1em;
}
.kr-custom-checkbox {
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: #D35B6E;
  width: 1.18em;
  height: 1.18em;
  border: 2px solid #D35B6E;
  border-radius: 5px;
  display: grid;
  place-content: center;
  cursor: pointer;
  position: relative;
  transition: border .13s;
  flex-shrink: 0;
}
.kr-custom-checkbox:checked {
  border: 2px solid #D35B6E;
  background: #D35B6E;
}
.kr-custom-checkbox:checked::after {
  content: '';
  width: 0.65em;
  height: 0.65em;
  border-radius: 3px;
  background: #fff;
  display: block;
  margin: auto;
  box-shadow: 0 1px 1.5px rgba(211, 91, 110, 0.3);
}
.kr-custom-checkbox:focus {
  outline: 2px solid #D35B6E;
  outline-offset: 1px;
}
.kr-custom-checkbox:hover {
  border-color: #B04968;
}
.kr-services-row {
  display: flex;
  gap: 2em;
  justify-content: center;
  margin-bottom: 2.3em;
}
.kr-services-group {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px 0 rgba(211, 91, 110, 0.1);
  padding: 1.2em 1.5em 1em 1.5em;
  min-width: 230px;
  max-width: 285px;
  flex: 1 1 230px;
  border: 1.5px solid rgba(255, 169, 180, 0.3);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.kr-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kr-services-list li {
  display: flex;
  align-items: center;
  font-size: 0.99em;
  margin-bottom: 0.43em;
}
.kr-services-list label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: auto;
  font-weight: 400;
}
.kr-services-list input[type="checkbox"] {
  accent-color: unset;
  margin-right: 0;
  margin-top: 0;
  width: 1.1em;
  height: 1.1em;
}
.kr-group-master-checkbox { 
  /* Legacy checkbox styling */
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: #D35B6E;
  width: 1.18em;
  height: 1.18em;
  border: 2px solid #D35B6E;
  border-radius: 5px;
  display: grid;
  place-content: center;
  cursor: pointer;
  position: relative;
  transition: border .13s;
  flex-shrink: 0;
}

/* 3rd step form - Soft Pink Theme */
.kr-form-row-two {
  display: flex;
  flex-direction: row;
  gap: 2.5em;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 0.5em;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: nowrap;
  position: relative;
}

/* Mobile optimization for form layout */
@media (max-width: 768px) {
  .kr-form-row-two {
    flex-direction: column;
    gap: 1.5em;
    padding: 0 0.5em;
    max-width: 100%;
  }
}

.kr-form-col {
  flex: 1 1 0;
  min-width: 0;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(211, 91, 110, 0.08);
  padding: 2em 2em 1.6em 2em;
  border: 2px solid #FFA9B4;
  align-items: stretch;
  min-height: 410px;
  height: 100%;
  transition: all 0.3s ease;
}

/* Mobile optimization for form columns */
@media (max-width: 768px) {
  .kr-form-col {
    max-width: 100%;
    padding: 1.5em 1.5em 1.3em 1.5em;
    border-radius: 18px;
    min-height: auto;
  }
}

.kr-form-col:hover {
  box-shadow: 0 12px 50px rgba(211, 91, 110, 0.12);
  border-color: #D35B6E;
}

/* Disable hover effects on mobile */
@media (max-width: 768px) {
  .kr-form-col:hover {
    transform: none;
    box-shadow: 0 8px 40px rgba(211, 91, 110, 0.08);
  }
}
.kr-form-row-two > .kr-form-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 410px;
  flex-grow: 1;
}
.kr-form-col textarea {
  min-height: 80px;
  font-family: inherit;
  resize: none !important;
  flex-grow: 1;
  margin-bottom: 0 !important;
}
.kr-form-col input:last-child,
.kr-form-col textarea:last-child {
  margin-bottom: 0;
}
.kr-form-row-two {
  align-items: stretch;
}
.kr-form-row-two > .kr-form-col {
  height: auto;
}
.kr-form-row-two > .kr-form-col:first-child,
.kr-form-row-two > .kr-form-col:last-child {
  flex-grow: 1;
}
.kr-form-row-two > .kr-form-col {
  margin-bottom: 0 !important;
}
.kr-form-row-two > .kr-form-col:first-child {
  justify-content: stretch;
}
.kr-form-row-two > .kr-form-col:first-child::after {
  content: "";
  flex-grow: 1;
  display: block;
}

/* Form fields - Updated Theme */
#kr-forma label {
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #D35B6E;
  font-size: 1.1em;
  align-self: flex-start;
  font-family: "Teachers", serif;
  letter-spacing: -0.02em;
}

/* Mobile optimization for form labels */
@media (max-width: 768px) {
  #kr-forma label {
    font-size: 1em;
    margin-bottom: 0.4em;
  }
}

#kr-forma input,
#kr-forma select,
#kr-forma textarea {
  width: 100%;
  border: 2px solid #FFA9B4;
  border-radius: 16px;
  padding: 1em 1.2em;
  font-size: 1em;
  background: #fff;
  color: #424242;
  margin-bottom: 1.2em;
  box-shadow: none;
  outline: none;
  transition: all 0.3s ease;
  text-align: left;
  font-family: "Teachers", serif;
  box-sizing: border-box;
}

/* Mobile optimization for form inputs */
@media (max-width: 768px) {
  #kr-forma input,
  #kr-forma select,
  #kr-forma textarea {
    padding: 0.8em 1em;
    margin-bottom: 1em;
    border-radius: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

#kr-forma input:focus,
#kr-forma select:focus,
#kr-forma textarea:focus {
  border-color: #D35B6E;
  box-shadow: 0 0 0 4px rgba(211, 91, 110, 0.1);
  background: #ffffff;
}

/* Mobile focus optimization */
@media (max-width: 768px) {
  #kr-forma input:focus,
  #kr-forma select:focus,
  #kr-forma textarea:focus {
    box-shadow: 0 0 0 3px rgba(211, 91, 110, 0.1);
  }
}

#kr-forma textarea {
  min-height: 120px;
  resize: vertical;
}

/* Mobile textarea optimization */
@media (max-width: 768px) {
  #kr-forma textarea {
    min-height: 100px;
  }
}
#kr-forma input[type="checkbox"] {
  width: auto;
  margin-right: 0.5em;
  margin-bottom: 0;
  transform: scale(1.2);
  accent-color: #D35B6E;
}
#kr-forma input[type="number"] {
  max-width: 120px;
}

/* Step 3 form wrapper */
.kr-step[data-step="3"] form#kr-forma {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: unset;
  min-width: unset;
  align-items: stretch;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* UNIVERSAL BUTTON STYLE: Modern with soft pink theme */
.kr-step-controls button,
#kr-forma .kr-step-controls button,
.kr-step-next,
.kr-step-back,
.kr-submit-btn,
.kr-back-btn {
  min-width: 150px;
  font-size: 1.15em;
  font-family: 'Teachers', Arial, sans-serif !important;
  padding: 0.9em 2.5em;
  border-radius: 25px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  margin: 0 4px;
  cursor: pointer;
  display: inline-block;
  line-height: 1.2;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

/* Mobile optimization for buttons */
@media (max-width: 768px) {
  .kr-step-controls button,
  #kr-forma .kr-step-controls button,
  .kr-step-next,
  .kr-step-back,
  .kr-submit-btn,
  .kr-back-btn {
    min-width: 120px;
    font-size: 1em;
    padding: 0.8em 2em;
    margin: 0 2px;
    border-radius: 20px;
  }
}

/* Step controls mobile layout */
@media (max-width: 768px) {
  .kr-step-controls {
    flex-direction: column;
    gap: 1em;
    align-items: center;
    margin-top: 1.5em;
  }
  
  .kr-step-controls button {
    width: 100%;
    max-width: 250px;
    margin: 0;
  }
}

/* Submit primary button (Next/Submit) - Updated color */
.kr-step-controls button.kr-submit-btn,
#kr-forma .kr-submit-btn,
.kr-step-controls button[type="submit"],
.kr-step-next,
.kr-submit-btn {
  background: #D35B6E;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(211, 91, 110, 0.3);
  border: 2px solid transparent;
}
.kr-step-controls button.kr-submit-btn:hover,
#kr-forma .kr-submit-btn:hover,
.kr-step-controls button[type="submit"]:hover,
.kr-step-next:hover,
.kr-submit-btn:hover {
  background: #B04968;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 91, 110, 0.4);
  color: #fff !important;
}

/* Back neutral button - Updated colors */
.kr-step-controls button.kr-back-btn,
#kr-forma .kr-back-btn,
.kr-step-back,
.kr-back-btn {
  background: #fff;
  color: #D35B6E !important;
  border: 2px solid #FFA9B4;
  box-shadow: 0 4px 15px rgba(211, 91, 110, 0.1);
}
.kr-step-controls button.kr-back-btn:hover,
#kr-forma .kr-back-btn:hover,
.kr-step-back:hover,
.kr-back-btn:hover {
  background: #D35B6E;
  color: #fff !important;
  border-color: #D35B6E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 91, 110, 0.3);
}

/* Next button - Same style as Back for better visibility */
.kr-step-controls button.kr-next-btn,
.kr-step-next {
  background: #fff;
  color: #D35B6E !important;
  border: 2px solid #FFA9B4;
  box-shadow: 0 4px 15px rgba(211, 91, 110, 0.1);
}
.kr-step-controls button.kr-next-btn:hover,
.kr-step-next:hover {
  background: #D35B6E;
  color: #fff !important;
  border-color: #D35B6E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 91, 110, 0.3);
}
.kr-step-controls button.kr-back-btn:hover,
#kr-forma .kr-back-btn:hover,
.kr-step-back:hover,
.kr-back-btn:hover {
  background: rgba(255, 169, 180, 0.2);
  color: #B04968 !important;
  border-color: #D35B6E;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 169, 180, 0.3);
}

/* Centruojame mygtukų bloką (ypač step 3, bet universal) */
.kr-step-controls,
#kr-forma .kr-step-controls {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 2.2em;
  margin-bottom: 0;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

@media (max-width:1200px) {
  .kr-booking-container {max-width:98vw;}
  .kr-services-row {gap:1.2em;}
}
@media (max-width:950px) {
  .kr-services-row {flex-direction:column; align-items:center;}
  .kr-services-group{max-width:100%; min-width:220px;}
}
@media (max-width:800px) {
  .kr-cleaning-types-row {
    grid-template-columns: 1fr;
    gap: 1.5em;
    max-width: 450px;
  }
  .kr-cleaning-type-card {
    background: #fff;
    border: 2px solid #FFA9B4;
  }
  .kr-step h2 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 1.5em;
    color: #D35B6E;
  }
}
@media (max-width:900px) {
  .kr-form-row-two {
    flex-direction: column;
    gap: 1.5em;
    max-width: 100%;
    padding: 0 0.5em;
  }
  
  .kr-form-col,
  .kr-form-row-two > .kr-form-col {
    max-width: 100%;
    min-height: auto;
    height: auto;
    background: #fff;
    border: 2px solid #FFA9B4;
  }
  
  #kr-forma .kr-step-controls,
  .kr-step-controls {
    flex-direction: column;
    gap: 1em;
    max-width: 100%;
  }
  
  .kr-step-controls button {
    min-width: 140px;
    padding: 0.8em 2em;
    width: 100%;
    max-width: 250px;
  }
}
@media (max-width:600px){
  .kr-main-bg{
    padding: 1em 0.5em;
    background: transparent;
  }
  
  .kr-booking-container {
    padding: 0 0.3em;
  }
  
  .kr-services-group{
    padding: 1em 0.7em;
  }
  
  .kr-cleaning-types-row {
    grid-template-columns: 1fr;
    gap: 1.2em;
    max-width: 100%;
    padding: 0 0.5em;
  }
  
  .kr-cleaning-type-card {
    margin: 0 auto;
    min-height: 160px;
    height: 160px;
    max-height: 160px;
    background: #fff;
    border: 2px solid #FFA9B4;
    border-radius: 15px;
  }
  
  .kr-cleaning-type-label {
    padding: 1.5em 1.2em;
    justify-content: center;
    height: 100%;
  }
  
  .kr-cleaning-type-icon {
    font-size: 2.5em;
    margin-bottom: 0.3em;
  }
  
  .kr-cleaning-type-title {
    font-size: 1.1em;
    color: #D35B6E;
    margin-bottom: 0.2em;
    line-height: 1.1;
  }
  
  .kr-cleaning-type-desc {
    color: #B04968;
    font-size: 0.85em;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .kr-calendar-side, 
  .kr-form-side {
    padding: 1em 0.5em;
    background: transparent;
  }
  
  #kr-kalendorius {
    min-width: auto;
    max-width: 100%;
    width: calc(100% - 1em);
    background: #fff;
    border: 2px solid #FFA9B4;
    box-shadow: 0 8px 40px rgba(211, 91, 110, 0.08);
    padding: 1.2em 0.8em;
    margin: 0 auto;
    border-radius: 15px;
  }
  
  .kr-calendar-bottom-row {
    margin-top: 1em;
  }
  
  .kr-form-row-two {
    gap: 1em;
    padding: 0 0.3em;
  }
  
  .kr-form-col,
  .kr-form-row-two > .kr-form-col {
    padding: 1.3em 1em;
    background: #fff;
    border: 2px solid #FFA9B4;
    border-radius: 18px;
  }
  
  #kr-forma .kr-step-controls,
  .kr-step-controls {
    gap: 1em;
    flex-direction: column;
    margin-top: 1.5em;
  }
  
  .kr-step-controls button {
    width: 100%;
    max-width: 250px;
    margin: 0;
  }
}

/* Step transition animation */
.kr-step {
  opacity: 1;
  transition: opacity 0.3s;
  pointer-events: auto;
}
.kr-step.kr-step-leave {
  opacity: 0;
  pointer-events: none;
}
.kr-step.kr-step-enter {
  opacity: 0;
  pointer-events: none;
}
.kr-step.kr-step-enter-active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s;
}

/* Price Info Panel for Private Cleaning - New Layout */
.kr-private-cleaning-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3em;
  max-width: 100%;
  width: 100%;
}

.kr-form-content {
  display: flex;
  gap: 2em;
  justify-content: center;
  align-items: flex-start;
  flex: 0 0 auto;
  width: fit-content;
}

.kr-form-col {
  width: fit-content;
  min-width: 280px;
  max-width: 320px;
}

.kr-price-info-side {
  background: #fff;
  border: 1.5px solid #FFA9B4;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(211, 91, 110, 0.08);
  padding: 1.5em;
  width: auto;
  min-width: fit-content;
  max-width: 600px;
  flex: 0 0 auto;
  margin-left: auto;
}

.kr-price-info-side:hover {
  box-shadow: 0 12px 50px rgba(211, 91, 110, 0.12);
  border-color: #D35B6E;
}

.kr-price-info-side h3 {
  color: #D35B6E;
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 0 1em 0;
  text-align: center;
  font-family: 'Teachers', sans-serif;
  white-space: nowrap;
}

.kr-price-table-container {
  width: auto;
  overflow: visible;
}

.kr-price-table {
  width: auto;
  border-collapse: collapse;
  font-size: 0.8em;
  font-family: 'Teachers', sans-serif;
  white-space: nowrap;
  table-layout: auto;
}

.kr-price-table th {
  border: 1px solid #FFA9B4;
  padding: 6px 8px;
  text-align: left;
  font-weight: bold;
  color: #D35B6E;
  background: rgba(211, 91, 110, 0.1);
  font-size: 0.85em;
  line-height: 1.2;
}

.kr-price-table td {
  border: 1px solid #FFA9B4;
  padding: 6px 8px;
  color: #666;
  font-size: 0.9em;
}

.kr-price-table tbody tr:nth-child(even) {
  background: rgba(211, 91, 110, 0.03);
}

.kr-price-note {
  margin: 1em 0 0 0;
  font-size: 0.85em;
  color: #D35B6E;
  text-align: center;
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
}

/* Desktop large screens - optimize table */
@media (min-width: 1400px) {
  .kr-private-cleaning-layout {
    justify-content: center;
    gap: 4em;
  }
  
  .kr-price-table {
    font-size: 0.85em;
  }
  
  .kr-price-table th,
  .kr-price-table td {
    padding: 8px 10px;
  }
}

/* Tablet and smaller desktop */
@media (max-width: 1200px) {
  .kr-private-cleaning-layout {
    flex-direction: column;
    gap: 2em;
    align-items: center;
    justify-content: center;
  }
  
  .kr-form-content {
    justify-content: center;
    width: 100%;
  }
  
  .kr-price-info-side {
    max-width: 100%;
    width: auto;
    margin-left: 0;
  }
  
  .kr-price-table {
    font-size: 0.75em;
    width: auto;
  }
  
  .kr-price-table-container {
    width: auto;
  }
}

/* Mobile phones */
@media (max-width: 800px) {
  .kr-form-content {
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
  }
  
  .kr-form-col {
    min-width: 260px;
    max-width: 100%;
    width: 100%;
  }
  
  .kr-price-info-side {
    padding: 1em;
  }
  
  .kr-price-table {
    font-size: 0.7em;
  }
  
  .kr-price-table th,
  .kr-price-table td {
    padding: 4px 6px;
  }
  
  .kr-price-table th {
    font-size: 0.8em;
  }
  
  .kr-price-note {
    font-size: 0.8em;
  }
}

/* Very small phones */
@media (max-width: 600px) {
  .kr-private-cleaning-layout {
    gap: 1.5em;
  }
  
  .kr-form-col {
    min-width: 240px;
  }
  
  .kr-price-table {
    font-size: 0.65em;
  }
  
  .kr-price-table th,
  .kr-price-table td {
    padding: 3px 4px;
    line-height: 1.1;
  }
  
  .kr-price-info-side h3 {
    font-size: 0.95em;
    margin-bottom: 0.8em;
  }
}

/* Superscript styling for square symbol */
.kr-form-col select option,
.kr-form-col input::placeholder {
  font-family: 'Teachers', Arial, sans-serif;
}

/* Make ² symbol appear properly as superscript */
option:contains("²"),
input[placeholder*="²"] {
  font-variant-position: super;
}

/* Move-out cleaning responsive layout 
   - Desktop: Two form columns side-by-side with description on the right
   - Mobile: Form columns stack vertically, description appears below both columns
*/
.kr-moveout-form-container {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
}

.kr-moveout-form-columns {
  display: flex;
  gap: 1.5em;
  align-items: flex-start;
  justify-content: center;
}

.kr-moveout-col {
  flex: 1;
  min-width: 280px;
}

/* Condition description styling */
.kr-condition-description {
  padding: 1.2em 1.4em;
  background: #fff;
  border: 1.5px solid #FFA9B4;
  border-radius: 15px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  font-size: 0.95em;
  line-height: 1.5;
  color: #555;
  box-shadow: 0 4px 20px rgba(211, 91, 110, 0.08);
  word-wrap: break-word;
  max-width: 800px;
  margin: 0 auto;
}

/* Desktop layout - side by side columns with description on the right */
@media (min-width: 769px) {
  .kr-moveout-form-container {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .kr-moveout-form-columns {
    flex: 2;
    max-width: 600px;
  }
  
  .kr-condition-description {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    margin: 0;
    margin-left: 1.5em;
    align-self: flex-start;
  }
}

/* Mobile layout - columns stack vertically, description appears below */
@media (max-width: 768px) {
  .kr-moveout-form-container {
    flex-direction: column;
    gap: 1em;
    padding: 0 0.5em;
  }
  
  .kr-moveout-form-columns {
    flex-direction: column;
    gap: 1em;
  }
  
  .kr-moveout-col {
    min-width: auto;
    max-width: 100%;
  }
  
  .kr-condition-description {
    margin: 1em 0 0 0;
    padding: 1em 1.2em;
    font-size: 0.9em;
    line-height: 1.4;
    max-width: 100%;
    border-radius: 12px;
  }
}