/* =========================
   BOOKING (calendar month grid)
========================= */

.booking-section{
  width:100%;
  padding: 72px 18px;
  background:#FBF0EE;
  color:#111;
  overflow-x:hidden;
}

.booking-wrap{
  max-width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

.booking-title{
  text-align:center;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 26px;
  letter-spacing: .01em;
}

.booking-grid{
  display:grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.25fr);
  gap: 26px;
  align-items:start;
}

.booking-days,
.booking-times{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 26px;
  padding: 26px;
  box-shadow:
    0 18px 45px rgba(0,0,0,.08),
    0 2px 10px rgba(0,0,0,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow:hidden;
}

.booking-h3{
  font-size: clamp(0.3rem, 5vw, 0.9rem);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: rgba(0,0,0,.78);
}

/* ===== Calendar ===== */

.cal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1px;
  margin-bottom: 12px;
}

.cal-title{
  flex:1;
  text-align:center;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(0.1rem, 5vw, 1.2rem);;
  color: rgba(0,0,0,.80);
}

.cal-nav{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: clamp(8px, 1.2vw, 14px) clamp(10px, 2vw, 18px);

  font-size: clamp(0.2rem, 5vw, 1.2rem);
  border: none;
  border-radius: 12px;
}

.cal-nav:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  background: rgba(255,255,255,.90);
}

.cal-week{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 10px 0 10px;
}

.cal-weekday{
  text-align:center;
  font-weight: 900;
  font-size: .85rem;
  color: rgba(0,0,0,.55);
  padding: 6px 0;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
}

.cal-grid{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

/* day square */
.cal-day{
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.06); /* default = nedostupné */
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
}

/* číslo dňa */
.cal-num{
  font-weight: 900;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: rgba(0,0,0,.80);
}

/* dostupný deň = baby blue */
.cal-day.available{
  background: rgba(173, 216, 230, 0.65);
  border-color: rgba(80, 160, 190, 0.35);
}

/* hover len na dostupné dni */
.cal-day.available:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  background: rgba(173, 216, 230, 0.85);
}

/* mimo mesiaca */
.cal-day.outside{
  opacity: .25;
  pointer-events: none;
}

/* nedostupné dni */
.cal-day.disabled,
.cal-day:disabled{
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.40);
  border-color: rgba(0,0,0,.10);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
  opacity: .75;
  filter: none;
}

/* vybraný deň */
.cal-day.selected{
  background: rgba(247,183,198,.65);
  border-color: rgba(180, 90, 120, 0.35);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}

.cal-legend{
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: rgba(0,0,0,.60);
  font-weight: 700;
  font-size: 0.9rem;
}

.legend-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dot{
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
}

/* legenda farby */
.dot-av{
  background: rgba(173, 216, 230, 0.85);
}

.dot-na{
  background: rgba(0,0,0,.10);
}

.dot-se{
  background: rgba(247,183,198,.65);
}
/* ===== Times area ===== */

.time-list{ min-height: 84px; }

.booking-hint{
  margin:0;
  color: rgba(0,0,0,.65);
  line-height: 1.5;
}

.time-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
}

.time-btn{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  padding: 12px 10px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.time-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  background: rgba(255,255,255,.85);
}

.time-btn.active{
  background: rgba(247,183,198,.35);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

.time-btn.disabled,
.time-btn:disabled{
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.40);
  border-color: rgba(0,0,0,.10);
  cursor:not-allowed;
  pointer-events:none;
  opacity:.7;
  filter: grayscale(1);
  box-shadow:none;
  transform:none;
}

.booking-divider{
  height: 1px;
  background: rgba(0,0,0,.10);
  margin: 22px 0;
  border-radius: 999px;
}

/* ===== Form (same style, keep your “90% inset” fix) ===== */

.booking-form{ display:grid; gap: 14px; }

.field label{
  display:block;
  font-size: clamp(0.2rem, 5vw, 1rem);
  font-weight: 700;
  color: rgba(0,0,0,.72);
  margin: 0 0 8px;
  width: 90%;
}

.field input,
.field textarea{
  width: 90%;
  max-width: 90%;
  margin-left:auto;
  margin-right:auto;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
  padding: 12px 12px;
  border-radius: 16px;
  color:#111;
  outline:none;
  font: inherit;
  line-height: 1.25;
  box-sizing:border-box;
  -webkit-appearance:none;
  appearance:none;
}

.field input{ height: 52px; }

.field textarea{
  min-height: 120px;
  max-height: 160px;
  resize: vertical;
  line-height: 1.35;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 0 0 4px rgba(247,183,198,.25);
}

.selected-slot{
  width: 90%;
  max-width: 90%;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.70);
  border-radius: 18px;
  padding: 12px 14px;
  display:flex;
  gap: 10px;
  align-items:center;
  box-sizing:border-box;
}

.slot-label{ font-weight: 900; 
  color: rgba(0,0,0,.70);
font-size: clamp(0.1rem, 5vw, 1rem); }
.slot-value{ font-weight: 700;
font-size: clamp(0.1rem, 5vw, 1rem); }

.select-wrap{ position:relative; width: 90%;}

.select-btn{
  width:100%;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
  padding: 0 16px;
  border-radius: 16px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  text-align:left;
  font: inherit;
  height: 52px;
  line-height: 52px;
  box-sizing:border-box;
}

.select-btn:hover{ background: rgba(255,255,255,.88); }

.select-btn:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(247,183,198,.25);
}

.select-caret{ font-size: .9rem; opacity: .7; }

.select-menu{
  position:absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  max-height: 280px;
  overflow:auto;
  z-index: 50;
  padding: 10px;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.select-item{
  width:100%;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.70);
  padding: 12px 12px;
  cursor:pointer;
  text-align:left;
  border-radius: 14px;
  margin-bottom: 8px;
  transition: background .12s ease, transform .12s ease;
}

.select-item:last-child{ margin-bottom:0; }

.select-item:hover{
  background: rgba(247,183,198,.30);
  transform: translateY(-1px);
}

.hidden{ display:none; }

.field a{
  color:#111;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.book-btn{
  width: 90%;
  margin: 12px auto 0;
  display:block;
  border: 0;
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.95);
  padding: 14px 16px;
  border-radius: 18px;
  cursor:pointer;
  font-weight: 900;
  letter-spacing: .02em;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.book-btn:hover{ transform: translateY(-1px); }

.book-btn:disabled{
  opacity: .45;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.booking-status{
  margin-top: 4px;
  line-height: 1.45;
  color: rgba(0,0,0,.75);
  width: 90%;
  margin-left:auto;
  margin-right:auto;
}

/* Responsive */
@media (max-width: 1150px){
  .booking-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 980px){
  .time-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 520px){
  .booking-section{ padding: 56px 14px; }
  .booking-days, .booking-times{ padding: 20px; border-radius: 22px; }
  .time-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cal-grid{ gap: 8px; }
  .cal-day{ border-radius: 16px; }
}

#serviceSelectBtn,
#serviceSelectBtn span,
#serviceSelectLabel,
.select-placeholder,
.select-caret {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

.select-wrap button{
    color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}