@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 */
body {
  background: #fff6f6;
}
.kr-main-bg {
  background: #fff6f6;
  min-height: 100vh;
  padding: 2em 0 4em 0;
}
.kr-booking-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Stepper */
.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: #ffeaea;
  color: #b16e6e;
  font-weight: bold;
  font-size: 1.13em;
  line-height: 34px;
  text-align: center;
  border: 2px solid #b16e6e;
  transition: background .15s,color .15s;
}
.kr-step-indicator.active {
  background: #b16e6e;
  color: #fff;
}
.kr-step-sep {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: #b16e6e;
  opacity: 0.4;
}

/* Calendar */
#kr-kalendorius {
  background: #25211f;
  color: #f7d9d6;
  border-radius: 16px;
  padding: 1.7em 1.2em 1.2em 1.2em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.11);
  min-width: 360px;
  max-width: 480px;
  min-height: 260px;
  margin: 0 auto;
}
.kr-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.45em;
  font-weight: bold;
  margin-bottom: 1em;
  color: #ffeaea;
}
.kr-calendar-header button {
  background: none;
  border: none;
  color: #ffeaea;
  font-size: 1.5em;
  cursor: pointer;
  transition: color .14s;
}
.kr-calendar-header button:hover { color: #b16e6e; }
.kr-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.kr-calendar-dayname {
  text-align: center;
  font-weight: 600;
  color: #ffeaea;
  font-size: 1.02em;
  letter-spacing: .03em;
  margin-bottom: 0.2em;
}
.kr-calendar-day {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.08em;
  line-height: 38px;
  border-radius: 50%;
  background: none;
  color: #b16e6e;
  cursor: pointer;
  transition: background 0.12s, color 0.14s, box-shadow .13s;
  border: 2px solid transparent;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.kr-calendar-day.selected {
  background: #fff8e1;
  color: #b16e6e;
  border: 2px solid #b16e6e;
  font-weight: bold;
  box-shadow: 0 2px 8px #b16e6e22;
}
.kr-calendar-day.kr-status-booked {
  background: #e09a9e !important;
  color: #fff !important;
  border: none !important;
  font-weight: bold !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
.kr-calendar-day.kr-status-partial {
  background: #25211f;
  color: #fff;
  border: 2px solid #f9ad3c !important;
  font-weight: bold;
  opacity: 1;
}
.kr-calendar-day.kr-status-booked::after,
.kr-calendar-day.kr-status-partial::after {
  display: none !important;
}
.kr-calendar-day.kr-calendar-disabled {
  opacity: 0.23;
  cursor: not-allowed;
  background: none;
  border: 2px solid transparent;
}
.kr-calendar-day:not(.kr-calendar-disabled):hover {
  background: #ffeaea;
  color: #b16e6e;
  border: 2px solid #b16e6e;
}

/* 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;
}
.kr-legend {
  display: flex;
  gap: 1.1em;
  align-items: center;
  font-size: 0.97em;
  color: #fff;
  background: #25211f;
  padding: 0.45em 0.9em;
  border-radius: 10px;
  min-width: 0;
  flex-wrap: wrap;
  white-space: nowrap;
  font-weight: 500;
}
.kr-legend-label {
  display: flex;
  align-items: center;
  gap: 0.18em;
  margin-right: 0.7em;
}
.kr-dot {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  margin-right: 0.27em;
  vertical-align: middle;
  background: none;
}
.kr-dot.kr-status-booked {
  background: #e09a9e;
  border: none;
}
.kr-dot.kr-status-partial {
  background: #25211f;
  border: 2px solid #f9ad3c;
}
@media (max-width:600px){
  .kr-calendar-bottom-row {flex-direction:column; align-items:stretch;}
  .kr-legend {justify-content:center;}
}

/* Services */
.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: #b16e6e;
  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: #b16e6e;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1em;
}
.kr-custom-checkbox {
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: #b16e6e;
  width: 1.18em;
  height: 1.18em;
  border: 2px solid #b16e6e;
  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 #b16e6e;
  background: #ffeaea;
}
.kr-custom-checkbox:checked::after {
  content: '';
  width: 0.65em;
  height: 0.65em;
  border-radius: 3px;
  background: #b16e6e;
  display: block;
  margin: auto;
  box-shadow: 0 1px 1.5px #b16e6e44;
}
.kr-custom-checkbox:focus {
  outline: 2px solid #b16e6e;
  outline-offset: 1px;
}
.kr-custom-checkbox:hover {
  border-color: #a05c5c;
}
.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 #f4cbcb3d;
  padding: 1.2em 1.5em 1em 1.5em;
  min-width: 230px;
  max-width: 285px;
  flex: 1 1 230px;
  border: 1.5px solid #ffeaea;
  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 { 
  composes: kr-custom-checkbox;
}

/* 3rd step form - two columns card look, proper fill, button styling */
.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;
}
.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 0 #f4cbcb3d;
  padding: 2em 2em 1.6em 2em;
  border: 1.5px solid #ffeaea;
  align-items: stretch;
  min-height: 410px;
  height: 100%;
}
.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 */
#kr-forma label {
  font-weight: 500;
  margin-bottom: 0.2em;
  color: #b16e6e;
  font-size: 1em;
  align-self: flex-start;
}
#kr-forma input,
#kr-forma select,
#kr-forma textarea {
  width: 100%;
  border: 1.5px solid #d7bcbc;
  border-radius: 7px;
  padding: 0.5em 0.7em;
  font-size: 1em;
  background: #fff;
  color: #b16e6e;
  margin-bottom: 0.7em;
  box-shadow: none;
  outline: none;
  transition: border 0.12s;
  text-align: left;
}
#kr-forma input:focus,
#kr-forma select:focus,
#kr-forma textarea:focus {
  border-color: #b16e6e;
}

/* 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: Taikoma visiems etapams */
.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.8em 2.2em;
  border-radius: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.14s, color 0.14s, box-shadow 0.13s, border-color 0.13s;
  box-shadow: 0 2px 8px #b16e6e12;
  border: 2.2px solid #b16e6e;
  outline: none;
  margin: 0 2px;
  cursor: pointer;
  display: inline-block;
  line-height: 1.18;
}

/* Submit pagrindinis mygtukas (Next/Submit) */
.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: #b16e6e;
  color: #fff !important;
  border: 2.2px solid #b16e6e;
}
.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: #a05c5c;
  border-color: #a05c5c;
  color: #fff !important;
}

/* Back neutral mygtukas */
.kr-step-controls button.kr-back-btn,
#kr-forma .kr-back-btn,
.kr-step-back,
.kr-back-btn {
  background: #fff;
  color: #b16e6e !important;
  border: 2.2px solid #b16e6e;
}
.kr-step-controls button.kr-back-btn:hover,
#kr-forma .kr-back-btn:hover,
.kr-step-back:hover,
.kr-back-btn:hover {
  background: #ffeaea;
  color: #b16e6e !important;
  border-color: #a05c5c;
}

/* 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:900px) {
  .kr-form-row-two {
    flex-direction: column;
    gap: 1.2em;
    max-width: 98vw;
  }
  .kr-form-col,
  .kr-form-row-two > .kr-form-col {
    max-width: 97vw;
    min-height: unset;
    height: auto;
  }
  #kr-forma .kr-step-controls,
  .kr-step-controls {
    flex-direction: column;
    gap: 14px;
    max-width: 98vw;
  }
}
@media (max-width:600px){
  .kr-main-bg{padding:0.5em;}
  .kr-services-group{padding:1em 0.7em;}
  .kr-calendar-side, .kr-form-side{padding:1.3em 0.6em;}
  #kr-kalendorius {min-width: 95vw; max-width: 99vw;}
  .kr-calendar-bottom-row {margin-top:1em;}
  .kr-form-row-two {gap: 0.5em;}
  .kr-form-col,
  .kr-form-row-two > .kr-form-col {
    padding: 1.1em 0.8em 1em 0.8em;
  }
  #kr-forma .kr-step-controls,
  .kr-step-controls {gap: 7px;}
}

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