/* Онлайн-запись: UX-оптимизация под первый экран и конверсию */
.page-booking {
  background: var(--page-canvas);
}

.page-booking main {
  padding: 18px 0 34px;
}

#booking-form {
  scroll-margin-top: calc(var(--site-header-offset, 110px) + 12px);
}

.page-booking .site-breadcrumb {
  margin: 6px 0 12px;
}

.booking-hero.section {
  padding: 0 0 clamp(36px, 4.5vw, 52px);
}

.booking-hero-card {
  background: var(--hero-card-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 16px;
  box-shadow: var(--hero-card-shadow);
  padding: clamp(16px, 2.8vw, 24px);
}

.booking-hero .section-heading {
  margin-bottom: 10px;
}

.booking-hero .section-title {
  margin: 0;
}

.booking-hero .section-subtitle {
  margin: 0;
  max-width: 860px;
  text-align: left;
  font-size: 0.99rem;
}

.booking-hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-hero-points li {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #dfe7f8;
  background: #f2f6ff;
  color: #2e3550;
  font-size: 0.83rem;
  line-height: 1.2;
}

.booking-flow.section {
  padding: 0 0 clamp(36px, 4.5vw, 52px);
}

.booking-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.booking-flow-item {
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(25, 25, 50, 0.04);
  padding: 13px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.booking-flow-item__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.booking-flow-item h2 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.25;
}

.booking-flow-item p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.35;
  color: #5e6681;
}

.booking-section.section {
  padding: 0 0 clamp(36px, 4.5vw, 52px);
}

.booking-container {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.7fr);
  gap: 14px;
}

.booking-form-wrapper {
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: 0 5px 14px rgba(25, 25, 50, 0.045);
  padding: 16px;
}

.booking-form-wrapper h2 {
  margin-bottom: 12px;
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  color: var(--primary);
}

/* Выбор времени */

.booking-selected-date {
  margin: 2px 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--surface-border);
  background: #f8faff;
  color: #6a7391;
  font-size: 0.86rem;
  line-height: 1.3;
}

.booking-selected-date.active {
  border-style: solid;
  border-color: #c8d7ff;
  background: #edf3ff;
  color: #2b3c73;
  font-weight: 600;
}

.booking-time-periods {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.booking-time-periods[hidden] {
  display: none;
}

.time-period-btn {
  border: 1px solid var(--surface-border);
  background: #f9fbff;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.time-period-btn:hover {
  border-color: var(--secondary);
  background: #edf3ff;
}

.time-period-btn.selected {
  border-color: #bbff00;
  background: #bbff00;
  color: #1f1c1c;
}

.time-period-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.time-period-btn__title {
  font-size: 0.84rem;
  font-weight: 700;
}

.time-period-btn__meta,
.time-period-btn__count {
  font-size: 0.74rem;
  color: #66708f;
}

.time-period-btn.selected .time-period-btn__meta,
.time-period-btn.selected .time-period-btn__count {
  color: #1f1c1c;
}

.time-slot {
  padding: 9px 10px;
  border: 1px solid #dce3f3;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--dark);
  text-align: center;
}

.time-slot:hover {
  border-color: var(--secondary);
  background: #eef3ff;
  color: #1a3dc0;
}

.time-slot.selected {
  background: #bbff00;
  border-color: #bbff00;
  color: #1f1c1c;
  font-weight: 600;
}

.time-slots-placeholder {
  text-align: center;
  color: var(--gray);
  padding: 12px;
  font-style: italic;
  font-size: 0.9rem;
}

.booking-slots-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px dashed #c9d6f5;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  text-align: center;
}

.booking-slots-empty__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d7e2fb;
  color: var(--secondary, #2255f5);
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(34, 85, 245, 0.1);
}

.booking-slots-empty__title {
  margin: 0;
  color: var(--primary, #1f2f58);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  font-style: normal;
}

.booking-slots-empty__hint {
  margin: 0;
  max-width: 28ch;
  color: #667391;
  font-size: 0.86rem;
  line-height: 1.45;
  font-style: normal;
}

.booking-quick-dates {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 10px;
}

.booking-quick-dates[hidden] {
  display: none;
}

.quick-dates-head h3 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #556081;
  font-weight: 600;
}

.quick-dates-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.quick-date-btn {
  border: 1px solid var(--surface-border);
  background: #f9fbff;
  border-radius: 10px;
  padding: 8px 6px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.quick-date-btn:hover {
  border-color: var(--secondary);
  background: #eef3ff;
}

.quick-date-btn.selected {
  background: #bbff00;
  border-color: #bbff00;
  color: #1f1c1c;
}

.quick-date-btn__label {
  font-size: 0.72rem;
  color: #66708f;
}

.quick-date-btn.selected .quick-date-btn__label {
  color: #1f1c1c;
}

.quick-date-btn__value {
  font-size: 0.82rem;
  font-weight: 700;
}

/* Форма */
.booking-form {
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(25, 25, 50, 0.04);
}

.booking-form .form-group {
  margin-bottom: 12px;
}

.booking-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.92rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dbe2f1;
  border-radius: 10px;
  font-size: 0.94rem;
  font-family: inherit;
  background: #fff;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(34, 85, 245, 0.12);
}

.booking-form textarea {
  resize: vertical;
  min-height: 92px;
}

#booking-submit {
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  font-size: 0.95rem;
}

#booking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Информация */
.booking-info {
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 5px 14px rgba(25, 25, 50, 0.045);
  height: fit-content;
  position: sticky;
  top: var(--site-header-offset, 110px);
}

.booking-info h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.booking-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 9px;
}

.booking-benefits li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: #fbfcff;
}

.booking-benefits i {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-top: 1px;
}

.booking-benefits strong {
  display: block;
  margin-bottom: 2px;
  color: var(--dark);
  font-size: 0.88rem;
}

.booking-benefits p {
  color: var(--gray);
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.booking-contact {
  padding-top: 10px;
  border-top: 1px solid var(--surface-border);
}

.booking-contact h4 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 0.88rem;
}

.booking-contact p {
  margin-bottom: 6px;
}

.booking-contact .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.booking-contact .contact-link:hover {
  color: var(--secondary-strong);
}

.form-status-message {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: none;
  font-size: 0.86rem;
}

.form-status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Адаптивность */
@media (max-width: 1100px) {
  .booking-flow-grid {
    grid-template-columns: 1fr;
  }

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

.booking-info {
  position: static;
}
}

@media (max-width: 768px) {
  .booking-hero-card,
  .booking-form-wrapper,
  .booking-info,
  .booking-form {
    border-radius: 14px;
  }

.booking-form-wrapper,
.booking-info {
  padding: 16px;
}

.booking-flow-item {
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 10px;
}

.booking-flow-item__num {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

.booking-form {
  padding: 14px;
}

.booking-hero-points {
  display: grid;
  grid-template-columns: 1fr;
}

.quick-dates-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.time-slots {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}
}
