/* =====================================================
   patra.fit × SimplyBook — Custom CSS
   Цвета бренда:
   --green-dark:  #2f3a28
   --green-light: #a8c26a
   --green-pale:  #c5dc85
   --cream:       #f5f2ea
   --text-dark:   #1e2b16
   ===================================================== */

/* ── Шрифты ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400&family=DM+Sans:wght@300;400;500&display=swap');

body,
input,
button,
select,
textarea,
.unit-name,
.company-name,
.step-title,
.service-name,
.provider-name {
  font-family: 'DM Sans', sans-serif !important;
}

h1, h2, h3,
.company-name,
.unit-name,
.timeline-title {
  font-family: 'Fraunces', serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
}

/* ── Фон страницы ── */
body {
  background-color: #f5f2ea !important;
}

/* ── Шапка / навбар ── */
.navbar,
.sb-header,
.booking-header,
[class*="header--top"],
.company-header,
.intro-header {
  background-color: #2f3a28 !important;
  border-bottom: none !important;
}

/* Название компании в шапке */
.company-name,
.navbar .company-name,
.header .company-name {
  color: #ffffff !important;
  font-family: 'Fraunces', serif !important;
}

/* ── Верхний баннер — уменьшаем высоту ── */
.intro-section,
.sb-intro,
.banner,
.company-banner,
[class*="banner-image"],
[class*="intro-image"],
.hero-image {
  max-height: 160px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.intro-section img,
.banner img,
.company-banner img,
[class*="banner-image"] img {
  object-fit: cover !important;
  object-position: center !important;
  max-height: 160px !important;
  width: 100% !important;
}

/* ── Основной контент ── */
.content-wrapper,
.booking-content,
.sb-content,
.container,
.main-content {
  background-color: #f5f2ea !important;
}

/* ── Карточки услуг и тренеров ── */
.unit-wrapper,
.unit-item,
.provider-item,
.service-item,
.unit-block,
.timeline-unit {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid rgba(47, 58, 40, 0.09) !important;
  box-shadow: none !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}

.unit-item:hover,
.provider-item:hover,
.service-item:hover {
  box-shadow: 0 8px 28px rgba(47, 58, 40, 0.12) !important;
  transform: translateY(-2px) !important;
}

/* Название услуги/тренера */
.unit-name,
.provider-name,
.service-name {
  color: #2f3a28 !important;
  font-weight: 500 !important;
}

/* Цена */
.unit-price,
.price,
.service-price {
  color: #2f3a28 !important;
  font-weight: 500 !important;
}

/* Описание */
.unit-description,
.service-description,
.provider-description {
  color: #888888 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

/* ── Кнопки ── */
.btn-primary,
.book-now,
.booking-btn,
.submit-btn,
.continue-btn,
[class*="btn-book"],
[class*="btn-confirm"],
.button-primary,
input[type="submit"],
button[type="submit"] {
  background-color: #a8c26a !important;
  color: #1e2b16 !important;
  border: none !important;
  border-radius: 9px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 12px 28px !important;
  transition: background-color 0.15s, transform 0.1s !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.book-now:hover,
.booking-btn:hover,
[class*="btn-book"]:hover,
[class*="btn-confirm"]:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: #c5dc85 !important;
  transform: translateY(-1px) !important;
  color: #1e2b16 !important;
}

/* Вторичные кнопки */
.btn-default,
.btn-secondary,
.btn-outline,
.button-secondary {
  background-color: transparent !important;
  color: #2f3a28 !important;
  border: 1px solid rgba(47, 58, 40, 0.25) !important;
  border-radius: 9px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400 !important;
  transition: border-color 0.15s !important;
}

.btn-default:hover,
.btn-secondary:hover {
  border-color: #2f3a28 !important;
  background-color: transparent !important;
}

/* ── Шаги бронирования ── */
.step-number {
  background-color: #2f3a28 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  font-weight: 500 !important;
}

.step-title {
  color: #2f3a28 !important;
  font-weight: 500 !important;
}

/* Активный шаг */
.step-active .step-number,
.step.active .step-number {
  background-color: #a8c26a !important;
  color: #1e2b16 !important;
}

.step-active .step-title,
.step.active .step-title {
  color: #a8c26a !important;
}

/* Завершённый шаг */
.step-done .step-number,
.step.done .step-number {
  background-color: #2f3a28 !important;
}

/* ── Календарь ── */
.datepicker,
.calendar-wrapper,
.datepicker-wrapper {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid rgba(47, 58, 40, 0.09) !important;
}

/* Дни недели */
.datepicker th,
.calendar th,
.day-header {
  color: #2f3a28 !important;
  font-weight: 500 !important;
  font-size: 12px !important;
}

/* Активная дата */
.datepicker .active,
.datepicker td.active,
.day.selected,
.day.active {
  background-color: #2f3a28 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

/* Доступная дата при наведении */
.datepicker td:hover,
.day:hover:not(.disabled) {
  background-color: #e8f0d8 !important;
  color: #2f3a28 !important;
  border-radius: 8px !important;
}

/* ── Слоты времени ── */
.time-slot,
.slot,
[class*="time-item"],
[class*="slot-item"] {
  background-color: #e8f0d8 !important;
  color: #2f3a28 !important;
  border: 1px solid rgba(47, 58, 40, 0.12) !important;
  border-radius: 8px !important;
  font-weight: 400 !important;
  transition: background-color 0.15s !important;
}

.time-slot:hover,
.slot:hover,
[class*="time-item"]:hover {
  background-color: #a8c26a !important;
  color: #1e2b16 !important;
  border-color: #a8c26a !important;
}

.time-slot.selected,
.slot.selected,
.time-slot.active {
  background-color: #2f3a28 !important;
  color: #ffffff !important;
  border-color: #2f3a28 !important;
}

/* Занятые слоты */
.time-slot.busy,
.time-slot.disabled,
.slot.disabled {
  background-color: #c8d4b8 !important;
  color: #999 !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ── Поля ввода ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  background-color: #ffffff !important;
  border: 1px solid rgba(47, 58, 40, 0.18) !important;
  border-radius: 9px !important;
  color: #2f3a28 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  padding: 10px 14px !important;
  transition: border-color 0.15s !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #a8c26a !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(168, 194, 106, 0.15) !important;
}

/* Лейблы полей */
label,
.form-label,
.field-label {
  color: #2f3a28 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
}

/* ── Подтверждение бронирования ── */
.confirmation-wrapper,
.booking-confirmation,
.success-block {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(47, 58, 40, 0.09) !important;
}

.confirmation-title,
.success-title {
  color: #2f3a28 !important;
  font-family: 'Fraunces', serif !important;
}

/* Иконка/чекмарк подтверждения */
.confirmation-icon,
.success-icon {
  color: #a8c26a !important;
}

/* ── Футер страницы бронирования ── */
.booking-footer,
.sb-footer,
.footer-booking {
  background-color: #1e2b16 !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.booking-footer a,
.sb-footer a {
  color: rgba(255, 255, 255, 0.4) !important;
  transition: color 0.15s !important;
}

.booking-footer a:hover,
.sb-footer a:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ── Алерты и уведомления ── */
.alert-success {
  background-color: #e8f0d8 !important;
  border-color: #a8c26a !important;
  color: #2f3a28 !important;
  border-radius: 10px !important;
}

.alert-info {
  background-color: rgba(168, 194, 106, 0.1) !important;
  border-color: rgba(168, 194, 106, 0.3) !important;
  color: #2f3a28 !important;
  border-radius: 10px !important;
}

/* ── Бейджи и пиллы ── */
.badge,
.tag,
.label-tag {
  background-color: #f5f2ea !important;
  color: #2f3a28 !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 3px 10px !important;
}

/* ── Скроллбар (Webkit) ── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #f5f2ea;
}
::-webkit-scrollbar-thumb {
  background: #c8d4b8;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8c26a;
}