/* ===== ОСНОВНЫЕ СТИЛИ ЧЕКАУТА ===== */
.hotel-checkout-single-column {
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, sans-serif;
}

/* Хлебные крошки */
.checkout-breadcrumb {
  margin-bottom: 30px;
  color: #666;
  font-size: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.checkout-breadcrumb strong {
  color: #333;
  font-weight: 600;
}

.hotel-checkout-single-column h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  font-weight: 700;
}

/* Информация об отеле */
.hotel-booking-info {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hotel-booking-info h2 {
  margin: 0 0 20px 0;
  font-size: 22px;
  color: #333;
  font-weight: 600;
}

.booking-dates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.date-item {
  padding: 10px;
  border-radius: 4px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}

.date-item strong {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.date-item span {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

/* Выбранный номер */
.selected-room-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.selected-room-section h3 {
  margin: 0 0 20px 0;
  font-size: 22px;
  color: #333;
  font-weight: 600;
  padding-bottom: 15px;
  border-bottom: 2px solid #28a745;
}

.room-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 6px;
  border-left: 4px solid #28a745;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 15px;
}

.room-header h4 {
  margin: 0;
  font-size: 20px;
  color: #333;
  font-weight: 600;
  flex: 1;
}

.room-price {
  color: #666;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

.room-description {
  color: #666;
  font-size: 14px;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.room-total {
  font-weight: bold;
  font-size: 32px;
  color: #28a745;
  text-align: right;
}

/* Секции формы */
.guest-info-section,
.special-requests-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.guest-info-section h2,
.special-requests-section h2 {
  font-size: 22px;
  margin: 0 0 25px 0;
  color: #333;
  padding-bottom: 15px;
  border-bottom: 2px solid #28a745;
  font-weight: 600;
}

/* Подсекции */
.info-subsection {
  margin-bottom: 30px;
}

.info-subsection:last-child {
  margin-bottom: 0;
}

.info-subsection h3 {
  font-size: 18px;
  margin: 0 0 20px 0;
  color: #222;
  font-weight: 600;
}

/* Группы полей */
.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Стилизация полей WooCommerce */
.form-row {
  margin-bottom: 20px;
  position: relative;
}
.form-row.form-row-first,
.form-row.form-row-last {
  width: 100% !important;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
  padding: 12px 15px !important;
  border: 1px solid #ddd !important;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
  box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* Стили для селектов */
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
}

/* Информация о прибытии */
.arrival-info {
  margin-top: 25px;
  padding-top: 25px;
}

.arrival-info h3 {
  font-size: 22px;
  margin: 0 0 20px 0;
  color: #000;
  font-weight: 600;
}
.form-row-label {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* Финальная секция */
.checkout-final-section {
  padding: 25px;
  margin-top: 30px;
}

.agree-terms {
  margin-bottom: 20px;
}

.agree-terms label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.agree-terms input[type="checkbox"] {
  margin-right: 12px;
  transform: scale(1.1);
  accent-color: #2271b1;
}

.agree-terms-text {
  margin-bottom: 20px;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.agree-terms-text p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.agree-terms-text input[type="checkbox"] {
  margin-top: 2px;
  transform: scale(1.1);
  accent-color: #2271b1;
  flex-shrink: 0;
}

.agree-terms-text a {
  color: #2271b1;
  text-decoration: none;
  font-weight: 600;
}

.agree-terms-text a:hover {
  text-decoration: underline;
}

/* Стиль для текста с ссылками */
.agree-terms-text .text-with-links {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}
.book-pay-button {
  width: 100% !important;
  background-color: #28a745 !important;
  color: white;
  padding: 18px !important;
  border: none;
  border-radius: 4px !important;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.book-pay-button:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.book-pay-button:active {
  transform: translateY(0);
}

/* Сообщения об ошибках */
.woocommerce-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.woocommerce-error li {
  list-style: none;
  margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hotel-checkout-single-column {
    padding: 15px;
  }

  .booking-dates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .form-row-dual {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .guest-info-section,
  .special-requests-section {
    padding: 20px;
  }

  .room-header {
    flex-direction: column;
    gap: 10px;
  }

  .room-price {
    align-self: flex-start;
  }

  .hotel-checkout-single-column h1 {
    font-size: 24px;
  }

  .hotel-booking-info h2 {
    font-size: 28px;
  }
  .form-row-label {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .booking-dates-grid {
    grid-template-columns: 1fr;
  }

  .hotel-checkout-single-column h1 {
    font-size: 22px;
  }

  .checkout-breadcrumb {
    font-size: 13px;
  }

  .book-pay-button {
    padding: 15px;
    font-size: 16px;
  }
}

/* Улучшение читаемости для длинных форм */
@media (min-width: 769px) {
  .form-row-wide {
    grid-column: 1 / -1;
  }
}

/* Стили для состояний полей */
.form-row .optional {
  color: #666;
  font-weight: normal;
}

.form-row.woocommerce-invalid input,
.form-row.woocommerce-invalid select,
.form-row.woocommerce-invalid textarea {
  border-color: #e74c3c;
}

.form-row.woocommerce-validated input,
.form-row.woocommerce-validated select,
.form-row.woocommerce-validated textarea {
  border-color: #27ae60;
}
