:root {
  --primary-color: #2196f3;
  --primary-color-add: #e3f2fd;
}

.amelia-booking-form {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
  min-height: 200px;
}

.step-content {
  height: 480px;
  overflow-y: auto;
}

.amelia-booking-form * {
  transition: all 0.3s ease;
}

input#date::-webkit-date-and-time-value {
  text-align: left;
}

.amelia-modal-footer .reset-btn.disabled {
  color: #e1e1e1;
  background-color: #9d9d9d;
  cursor: not-allowed;
}
.amelia-modal-footer .reset-btn.disabled:hover {
  color: #e1e1e1;
  background-color: #9d9d9d;
}

.form-group {
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.form-footer:has(button:only-child) {
  justify-content: end;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: var(--primary-color-add);
}

/* Стили для модальных окон */
.amelia-modal {
  display: none;
  position: absolute;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.amelia-modal-content {
  background-color: #fefefe;
  margin: 50px auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 100px);
}

.amelia-modal-header {
  padding: 15px 20px;
  /* border-bottom: 1px solid #dee2e6; */
  display: flex;
  align-items: center;
  justify-content: end;
  /* background: #f8f9fa; */
  border-radius: 8px 8px 0 0;
  padding-bottom: 0;
}

.amelia-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}

.amelia-modal-body {
  padding: 20px;
  overflow-y: auto;
  text-align: center;
  padding-top: 0;
  flex: 1;
}

.amelia-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: end;
  gap: 10px;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.amelia-modal-content.error {
  border-left: 4px solid #dc3545;
}

.amelia-modal-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
}

.amelia-modal-close:hover {
  color: #000;
}

.amelia-modal-footer .reset-btn {
  background-color: #dc3545;
  color: white;
}

.amelia-modal-footer .reset-btn:hover {
  background-color: #c82333;
}

.booking-details {
  margin-top: 0;
}

.booking-details h3 {
  margin-bottom: 10px;
  margin-top: 0px;
  color: #333;
}

.booking-detail-item {
  margin-bottom: 8px;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.booking-detail-label {
  font-weight: bold;
  color: #495057;
  margin-right: 8px;
}

/* Стили для сообщения об отмене бронирования */
.cancel-booking-message {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

.cancel-booking-message-text {
  font-weight: 700;
  font-size: 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для разделителя в деталях бронирования */
.booking-details hr {
  border: 0;
  height: 1px;
  background-color: #dee2e6;
  margin: 10px 0;
}

/* Стили для оверлея загрузки */
.amelia-loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Стили для спиннера */
.wheel-spinner {
  width: 60px;
  height: 60px;
  color: var(--primary-color);
  animation: wheelSpin 1.5s linear infinite;
}

.wheel-spinner svg {
  width: 100%;
  height: 100%;
}

@keyframes wheelSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Добавляем эффект пульсации для шины */
.wheel-spinner circle:first-child {
  animation: tirePulse 1.5s ease-in-out infinite;
}

/* @keyframes tirePulse {
  0%,
  100% {
    stroke-width: 2;
  }
  50% {
    stroke-width: 3;
  }
} */

/* Добавляем тень для объемности */
.wheel-spinner {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
}

/* Добавляем плавное появление/исчезновение оверлея */
.amelia-loading-overlay.visible {
  opacity: 1;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 576px) {
  .amelia-modal-content {
    margin: 15px;
    width: auto;
  }

  .amelia-modal-header h2 {
    font-size: 1.1rem;
  }

  .amelia-modal-footer {
    flex-direction: column;
  }

  .amelia-modal-footer button {
    width: 100%;
    margin: 5px 0;
  }
}

.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Стили для селекта с ошибкой */
.form-group select.danger {
  border-color: #dc3545;
  color: #dc3545;
  background-color: #fff;
}

.form-group select.danger option {
  color: #dc3545;
}

.form-group select.danger option:first-child {
  font-weight: 500;
}

/* Стили для hover и focus состояний */
.form-group select.danger:hover,
.form-group select.danger:focus {
  border-color: #bd2130;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Стили для маски телефона */
input[name="phone"]::placeholder {
  color: #999;
  letter-spacing: 0.5px;
}

.radio-buttons-group {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.radio-button {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 32%;
}

.tire-profile .radio-button {
  max-width: 100%;
}

.radio-button input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-button-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-button input[type="radio"]:checked + .radio-button-label {
  background: var(--primary-color-add);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.radio-button-label .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}

.radio-button-label .icon svg {
  width: 32px;
  height: 32px;
}

.radio-button-label .label-text {
  font-size: 10px;
  font-weight: 500;
}

/* Hover эффект */
.radio-button-label:hover {
  background: #f0f0f0;
  border-color: #bdbdbd;
}

.radio-button input[type="radio"]:focus + .radio-button-label {
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
}

/* Анимация при выборе */
.radio-button input[type="radio"]:checked + .radio-button-label {
  transform: scale(0.98);
}

/* Адаптивность */
@media (max-width: 768px) {
  .radio-button {
    min-width: 0;
    max-width: 32%;
  }

  .radio-button-label {
    padding: 0.8rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }

  .radio-button-label .icon {
    margin-bottom: 0.3rem;
  }
}

/* Стили для иконок профиля шины */
.service-third-select .radio-button-label {
  padding: 0.8rem;
  min-width: 80px;
}

.service-third-select .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.3rem;
}

.service-third-select .icon svg {
  width: 100%;
  height: 100%;
}

/* Анимация вращения при наведении */
.service-third-select .radio-button-label:hover .icon svg {
  animation: wheelRotate 2s linear infinite;
}

@keyframes wheelRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Стили для выбранного профиля */
.service-third-select
  .radio-button
  input[type="radio"]:checked
  + .radio-button-label
  .icon {
  color: var(--primary-color);
}

/* Адаптивная сетка для профилей */
@media (max-width: 768px) {
  .service-third-select .radio-buttons-group {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
  }

  .service-third-select .radio-button {
    min-width: 80px;
  }
}

/* Стили для range input */
.wheels-range {
  margin: 2rem 0;
}

.range-container {
  position: relative;
  padding: 1rem 0;
}

.wheels-range input[type="range"] {
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  border-radius: 5px;
  outline: none;
  padding: 0;
  margin: 0;
}

/* Стили для ползунка */
.wheels-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: background 0.15s ease-in-out;
}

.wheels-range input[type="range"]::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: background 0.15s ease-in-out;
}

/* Значения под ползунком */
.range-values {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  margin-top: 20px;
}

.range-value {
  position: relative;
  width: 30px;
  text-align: center;
  background: #f5f5f5;
  padding: 5px;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
}

.range-value::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  background: #e0e0e0;
}

/* Активное значение */
.range-value.active {
  background: var(--primary-color);
  color: white;
}

.range-value.active::before {
  background: var(--primary-color);
}

/* Текущее значение */
.current-value {
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--primary-color);
}

.step-header h3 {
  margin-bottom: 0;
}
.form-header {
  margin-bottom: 1rem;
}

.prepare-price-value {
  color: var(--primary-color);
}

.prepare-price-currency {
  color: var(--primary-color);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  background: #f5f5f5;
  transition: background-color 0.2s;
}

.checkbox-wrapper:hover {
  background: var(--primary-color-add);
}

.checkbox-group .checkbox-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.extra-name {
  font-weight: 500;
}

.extra-price {
  color: var(--primary-color);
  font-weight: bold;
  min-width: 70px;
  text-align: right;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

input[type="checkbox"]:checked + .checkbox-label {
  color: var(--primary-color);
}

.checkbox-wrapper:has(input:checked) {
  background: var(--primary-color-add);
  border: 1px solid var(--primary-color);
}

/* Стили для финального чека */
.total-check {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 20px auto;
  font-family: "Courier New", monospace;
  position: relative;
}

/* Зубчатый край чека сверху */
.total-check::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: linear-gradient(
      45deg,
      transparent 33.333%,
      #fff 33.333%,
      #fff 66.667%,
      transparent 66.667%
    ),
    linear-gradient(
      -45deg,
      transparent 33.333%,
      #fff 33.333%,
      #fff 66.667%,
      transparent 66.667%
    );
  background-size: 16px 32px;
  background-position: 0 -5px;
}

.total-check-list {
  list-style: none;
  padding: 0 !important;
  margin: 0;
}

.total-check-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 14px;
}

.total-check-item.total {
  margin-top: 15px;
  border-top: 2px solid #000;
  font-weight: bold;
  font-size: 16px;
}

.total-check-item:last-child {
  border-bottom: none;
}

.total-check-item-label {
  color: #666;
}
.total-check-item-value {
  font-weight: bold;
}
.total-check-item-price {
  font-weight: bold;
}

/* Добавляем логотип или название компании в чек */
.total-check::after {
  content: "N TYPE";
  display: block;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #000;
}

/* Время и дата в чеке */
.total-check-datetime {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
}

/* QR код или штрих-код */
.total-check-barcode {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}

/* Нижняя часть чека */
.total-check-footer {
  text-align: center;
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}

/* Full Calendar */
.fc a {
  text-decoration: none;
  color: #000;
}

.inactive-day {
  opacity: 0.5; /* Уменьшаем непрозрачность для визуального эффекта */
  cursor: not-allowed; /* Изменяем курсор на "не разрешено" */
}

/* Основные стили календаря */
.fc {
  --fc-border-color: #e5e5e5;
  --fc-today-bg-color: transparent;
  --fc-neutral-bg-color: transparent;
  --fc-primary-color: var(--primary-color);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fc-theme-standard .fc-scrollgrid {
  border: none;
}

/* Стили для хедера */
.fc .fc-toolbar {
  padding: 1.5rem;
  margin: 0 !important;
}

.fc .fc-toolbar-title {
  font-size: 1.25rem !important;
  font-weight: 600;
}

/* Кнопки навигации */
.fc .fc-button {
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 4px; /*!important*/
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.fc .fc-button:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* Убираем бордеры у обозначений дней */
.fc .fc-col-header-cell {
  border: none;
  border-radius: 8px;
  padding: 12px 0;
}

.fc .fc-col-header-cell-cushion {
  color: #666;
  font-weight: 500;
  text-decoration: none;
  padding: 8px;
}

/* Стили для ячеек дней */
.fc .fc-daygrid-day {
  transition: all 0.2s ease;
}

.fc .fc-daygrid-day-frame {
  border-radius: 8px;
  border: 1px solid #c9c9c9;
  aspect-ratio: 1; /* Делаем ячейки квадратными */
  display: flex;
  flex-direction: column;
}

/* Убираем стандартные бордеры */
.fc td,
.fc th {
  padding: 2px !important;
  border-style: none !important;
}
/* Убираем блок для событий */
.fc .fc-daygrid-day-events {
  display: none !important;
}

/* Центрируем число по вертикали */
.fc .fc-daygrid-day-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.fc .fc-daygrid-day-number {
  float: none;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Стили для текущего дня */
.fc .fc-day-today .fc-daygrid-day-frame {
  border: 2px solid #333;
  background: transparent !important;
}

.fc .fc-day-today.selected-day .fc-daygrid-day-frame {
  border: 2px solid var(--primary-color);
}
.fc .fc-day-today.selected-day .fc-daygrid-day-number {
  color: var(--primary-color);
}

/* Стили для кликабельных дней */
.fc .fc-day:not(.inactive-day):hover .fc-daygrid-day-frame {
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

/* Стили для неактивных дней */
.fc .inactive-day .fc-daygrid-day-frame {
  background-color: #f5f5f5;
  opacity: 0.7;
}

/* Стили для выбранного дня */
.fc .selected-day .fc-daygrid-day-frame {
  border: 2px solid var(--primary-color);
  background-color: var(--primary-color);
  color: #fff;
}
.fc .selected-day .fc-daygrid-day-number {
  color: #fff;
}

/* Оптимизация для мобильных устройств */
@media screen and (max-width: 768px) {
  .fc .fc-daygrid-day-number {
    font-size: 0.9em;
  }

  .fc .fc-toolbar-title {
    font-size: 1rem !important;
  }
}

.time-slot-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 слота в ряд */
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.time-slot-item {
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.time-slot-item:hover {
  background: var(--primary-color-add);
}

.time-slot-item.active {
  background: var(--primary-color);
  color: white;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 340px) {
  .time-slot-container {
    grid-template-columns: repeat(2, 1fr); /* 2 слота в ряд */
  }

  .time-slot-item {
    padding: 10px;
    font-size: 12px;
  }
}

/* Стили для невалидных полей */
.invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.radio-button.invalid {
  border: 1px solid #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

/* Контейнер с сообщениями об ошибках */
.form-error-container {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #dc3545;
  display: none;
}

.form-error-message {
  color: #dc3545;
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.form-error-message:last-child {
  margin-bottom: 0;
}

/* Добавляем анимацию для привлечения внимания */
.invalid {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.field-error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 0;
}

/* Стили для контейнера с ошибками */
.error-container {
  margin-bottom: 1rem;
  overflow: hidden;
}

.error-message {
  background-color: #fff3f3;
  color: #dc3545;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #dc3545;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
  animation: fadeInDown 0.3s ease-in-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-message::before {
  content: "⚠️";
  font-size: 16px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация исчезновения */
.error-message.fade-out {
  animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Стили для списка информации о бронировании */
.booking-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.booking-info-item {
  padding: 8px 16px;
  display: grid;
  grid-template-columns: minmax(100px, auto) 1fr;
  align-items: baseline;
  gap: 8px;
}

.booking-info-item-label {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}

.booking-info-item-value {
  color: #333;
  font-weight: 500;
  font-size: 14px;
  text-align: right;
}

.booking-info-item-additional {
  color: #666;
  font-size: 13px;
  font-style: italic;
  grid-column: 2;
  text-align: right;
}

/* Стили для разделителя */
.booking-info-item:has(.booking-info-item-label:only-child) {
  padding: 0;
  margin: 4px 0;
  grid-template-columns: 1fr;
}

.booking-info-item hr {
  border: 0;
  height: 1px;
  background-color: #dee2e6;
  margin: 0;
}

/* Стили для контейнера информации */
.booking-info-container {
  background: #fff;
  margin-bottom: 24px;
  padding: 8px 0;
}

.paiment-info p {
  font-size: 14px;
  font-weight: 500;
  color: #00000090;
}

.pay-online-text {
  font-size: 12px;
}

/* Адаптивность для маленьких экранов */
@media screen and (max-width: 480px) {
  .booking-info-item {
    grid-template-columns: 80px 1fr;
    font-size: 13px;
    padding: 6px 12px;
  }

  .booking-info-item-label {
    font-size: 13px;
  }

  .booking-info-item-value {
    font-size: 13px;
  }

  .booking-info-item-additional {
    font-size: 12px;
  }
}

.pay-online-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.ok-icon {
  stroke: var(--primary-color);
}
