/* ============================================================
   BOOKING WIZARD — SkinArth online objednávkový systém
   ============================================================
   Používa CSS premenné zo style.css:
   --color-primary: #1E352B
   --color-primary-dark: #162820
   --color-primary-light: #2A4D3C
   ============================================================ */

/* ------------------------------------------------------------
   OUTER WRAPPER (green block)
   ------------------------------------------------------------ */
.booking-outer {
  background: #1E352B;
  background: var(--color-primary);
  border-radius: 20px;
  padding: 40px 24px 24px;
}

.booking-outer__title {
  color: #fff;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 20px;
}

/* ------------------------------------------------------------
   WIZARD CONTAINER (white block)
   ------------------------------------------------------------ */
.booking-wizard {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

/* ------------------------------------------------------------
   STEP INDICATOR (horizontal, 5 steps)
   ------------------------------------------------------------ */
.booking-steps {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 24px;
}

.booking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  cursor: pointer;
  position: relative;
}

/* Connecting line between steps */
.booking-step::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.booking-step:first-child::before {
  display: none;
}

.booking-step--done::before {
  background: #16a34a;
}

.booking-step__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
}

.booking-step__label {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Active step */
.booking-step--active .booking-step__number {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.booking-step--active .booking-step__label {
  color: var(--color-primary);
  font-weight: 600;
}

/* Done step */
.booking-step--done .booking-step__number {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  font-size: 0;
}

.booking-step--done .booking-step__number::after {
  content: '\2713';
  font-size: 14px;
}

.booking-step--done .booking-step__label {
  color: #16a34a;
}

/* ------------------------------------------------------------
   CONTENT AREA
   ------------------------------------------------------------ */
.booking-content {
  padding: 24px;
  min-height: 400px;
}

/* ------------------------------------------------------------
   NAVIGATION BAR
   ------------------------------------------------------------ */
.booking-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}

.booking-nav__btn {
  padding: 10px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.booking-nav__btn--back {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.booking-nav__btn--back:hover {
  border-color: var(--color-primary);
}

.booking-nav__btn--next {
  background: var(--color-primary);
  border: none;
  color: #fff;
}

.booking-nav__btn--next:hover {
  opacity: 0.9;
}

.booking-nav__btn--confirm {
  background: var(--color-primary);
  border: none;
  color: #fff;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 600;
  animation: booking-pulse 2s ease-in-out infinite;
}

@keyframes booking-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 53, 43, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(30, 53, 43, 0); }
}

.booking-nav__btn--confirm:hover {
  opacity: 0.9;
}

.booking-nav__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ------------------------------------------------------------
   STEP 1: SERVICE SELECTION
   ------------------------------------------------------------ */
.booking-category {
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  padding: 40px 30px 30px;
  position: relative;
  margin-bottom: 40px;
  margin-top: 60px;
}
.booking-category:first-child {
  margin-top: 0;
}

.booking-category__name {
  position: absolute;
  top: -0.85em;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 20px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.booking-category__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.booking-service {
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.booking-service:hover {
  border-color: #9ca3af;
}

.booking-service--selected {
  background: #ecfdf5;
  border-color: var(--color-primary);
}

.booking-service__name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.booking-service__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.9rem;
  color: #6b7280;
}

.booking-service__price {
  font-weight: 600;
}

/* Selected summary bar (inline — used in steps 2-5) */
.booking-summary {
  background: #f0fdf4;
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-summary__item {
  font-size: 14px;
  color: var(--color-primary);
}

.booking-summary__item strong {
  font-weight: 700;
}

/* ------------------------------------------------------------
   FLOATING BAR — Step 1 (fixed bottom)
   ------------------------------------------------------------ */
.booking-float {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-primary);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.booking-float--visible {
  transform: translateY(0);
}

.booking-float__info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
}

.booking-float__info strong {
  font-weight: 700;
}

.booking-float__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.booking-float__btn {
  background: #fff;
  color: var(--color-primary);
  border: none;
  border-radius: 12px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.booking-float__btn:hover {
  opacity: 0.85;
}

/* ------------------------------------------------------------
   STEP 2: EMPLOYEE SELECTION
   ------------------------------------------------------------ */
.booking-employees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.booking-employee {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-employee:hover {
  border-color: var(--color-primary);
}

.booking-employee--selected {
  border-color: var(--color-primary);
  background: rgba(30, 53, 43, 0.04);
}

.booking-employee--auto {
  border-color: #16a34a;
  background: #f0fdf4;
}

.booking-employee__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  display: block;
}

.booking-employee__name {
  font-size: 15px;
  font-weight: 600;
}

.booking-employee__badge {
  font-size: 12px;
  color: #16a34a;
  margin-top: 4px;
}

/* ------------------------------------------------------------
   STEP 3: CALENDAR + TIME SLOTS
   ------------------------------------------------------------ */
.booking-datetime {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Calendar */
.booking-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.booking-calendar__title {
  font-size: 16px;
  font-weight: 600;
}

.booking-calendar__nav {
  display: flex;
  gap: 4px;
}

.booking-calendar__nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.booking-calendar__nav-btn:hover {
  border-color: var(--color-primary);
}

.booking-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.booking-calendar__day-name {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  padding: 6px 0;
  font-weight: 600;
}

/* Default day — light gray square */
.booking-calendar__day {
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: default;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  background: #f0f0f0;
  transition: all 0.15s ease;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Disabled / past — muted */
.booking-calendar__day--disabled {
  opacity: 0.5;
  cursor: default;
}

/* Other month — very faded */
.booking-calendar__day--other-month {
  opacity: 0.3;
}

/* Available — dark green, white text, clickable */
.booking-calendar__day--available {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.booking-calendar__day--available:hover {
  opacity: 0.85;
}

/* Selected — white bg, green border, green text, glow */
.booking-calendar__day--selected {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 53, 43, 0.15);
  cursor: pointer;
}

/* Today indicator — subtle ring inside */
.booking-calendar__day--today {
  box-shadow: inset 0 0 0 2px rgba(30, 53, 43, 0.2);
}

/* Time slots */
.booking-slots__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.booking-slots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.booking-slot {
  padding: 10px;
  text-align: center;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.booking-slot:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.booking-slot--selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.booking-slot--selected:hover {
  color: #fff;
}

.booking-slots__empty {
  text-align: center;
  color: #9ca3af;
  padding: 40px 0;
  font-size: 14px;
}

.booking-slots__loading {
  text-align: center;
  color: #9ca3af;
  padding: 40px 0;
  font-size: 14px;
}

/* ------------------------------------------------------------
   STEP 4: CONTACT FORM
   ------------------------------------------------------------ */
.booking-form {
  max-width: 500px;
  margin: 0 auto;
}

.booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-form__field {
  margin-bottom: 16px;
}

.booking-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.booking-form__label span {
  color: #dc2626;
}

.booking-form__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.booking-form__input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 53, 43, 0.1);
}

.booking-form__textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
  min-height: 80px;
  resize: vertical;
}

.booking-form__textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 53, 43, 0.1);
}

.booking-form__error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

.booking-form__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.booking-form__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.booking-form__consent input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.booking-form__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.booking-form__missing {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fefce8;
  border: 1px solid #fbbf24;
  border-radius: 10px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

.booking-form__missing strong {
  font-weight: 600;
  color: #78350f;
}

.booking-form__honeypot {
  position: absolute;
  left: -9999px;
}

/* ------------------------------------------------------------
   STEP 5: CONFIRMATION SUMMARY
   ------------------------------------------------------------ */
.booking-confirm {
  max-width: 540px;
  margin: 0 auto;
}

/* Header */
.booking-confirm__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.booking-confirm__header svg {
  color: var(--color-primary);
  flex-shrink: 0;
}
.booking-confirm__header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.booking-confirm__header-sub {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 2px;
}

/* Cards */
.booking-confirm__card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
}
.booking-confirm__card-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #f0fdf4;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.booking-confirm__card-body {
  flex: 1;
  min-width: 0;
}

/* Two cards side by side */
.booking-confirm__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-confirm__label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.booking-confirm__value {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}
.booking-confirm__value-sub {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

/* Service list inside card */
.booking-confirm__svc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
}
.booking-confirm__svc:last-child { border-bottom: none; }
.booking-confirm__svc-meta {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 12px;
}

.booking-confirm__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}

/* ------------------------------------------------------------
   SUCCESS STATE
   ------------------------------------------------------------ */
.booking-success {
  text-align: center;
  padding: 60px 20px;
}

.booking-success__icon {
  width: 80px;
  height: 80px;
  background: #f0fdf4;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: booking-success-pop 0.4s ease-out;
}

.booking-success__icon svg {
  color: #16a34a;
  width: 36px;
  height: 36px;
}

@keyframes booking-success-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.booking-success__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.booking-success__text {
  font-size: 15px;
  color: #6b7280;
}

/* ------------------------------------------------------------
   LOADING / SPINNER
   ------------------------------------------------------------ */
.booking-loading {
  text-align: center;
  padding: 60px 0;
}

.booking-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid transparent;
  border-top-color: var(--color-primary);
  border-right-color: var(--color-primary);
  border-radius: 50%;
  animation: booking-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------
   RESPONSIVE: TABLET (max-width: 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Anti-zoom on iOS */
  .booking-wizard input,
  .booking-wizard select,
  .booking-wizard textarea { font-size: 16px !important; }

  .booking-outer {
    padding: 20px 12px 16px;
    border-radius: 14px;
  }

  .booking-outer__title {
    font-size: 1.3rem;
  }

  .booking-wizard {
    border-radius: 12px;
  }

  .booking-steps {
    padding: 14px 12px;
    overflow-x: auto;
  }

  .booking-step__number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .booking-step__label {
    font-size: 10px;
  }

  .booking-content {
    padding: 16px 14px;
  }

  .booking-nav {
    padding: 12px 14px;
  }

  .booking-category { padding: 30px 16px 20px; margin-top: 40px; }
  .booking-category__name { font-size: 1.1rem; }
  .booking-category__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .booking-datetime {
    grid-template-columns: 1fr;
  }

  .booking-slots__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-employees {
    grid-template-columns: 1fr 1fr;
  }

  .booking-form {
    max-width: 100%;
  }
  .booking-form__row { grid-template-columns: 1fr; }
  .booking-confirm__row2 { grid-template-columns: 1fr; }
  .booking-summary {
    flex-wrap: wrap;
  }
  .booking-summary__item:first-child {
    width: 100%;
  }
  .booking-float {
    padding: 12px 16px;
    gap: 10px;
  }
  .booking-float__info {
    gap: 10px;
    font-size: 13px;
  }
  .booking-float__btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  .booking-confirm__card { padding: 12px; }
  .booking-confirm__svc-meta { font-size: 11px; }
}

/* ------------------------------------------------------------
   RESPONSIVE: SMALL MOBILE (max-width: 480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .booking-employees {
    grid-template-columns: 1fr;
  }

  .booking-category__grid { grid-template-columns: 1fr; }

  .booking-step__label {
    display: none;
  }
}
