/* フロントエンド用CSS */

.tokuren-search-form,
.tokuren-booking-form,
.tokuren-confirmation-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.search-box,
.form-section {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2271b1;
}

.search-row,
.form-row {
  margin-bottom: 15px;
}

.search-col {
  display: inline-block;
  width: 48%;
  margin-right: 2%;
}

.search-col:last-child {
  margin-right: 0;
}

.lbl-x {
  display: inline-block;
  margin-right: 1em;
  font-weight: bold;
  cursor: pointer;
}

/* 予約処理中モーダル */
#reservation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

#reservation-modal.-is-active {
  display: flex;
}

#reservation-modal .modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#reservation-modal .modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

#reservation-modal .modal-text {
  font-size: 14px;
  color: #666;
}

.required {
  color: #d63638;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

.description {
  margin: 5px 0 0;
  font-size: 12px;
  color: #666;
}

.search-submit,
.form-submit {
  text-align: center;
  margin-top: 20px;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
}

.button:hover {
  background: #135e96;
}

.button-primary {
  background: #2271b1;
}

.button-large {
  padding: 12px 24px;
  font-size: 18px;
}

.button-danger {
  background: #d63638;
}

.button-danger:hover {
  background: #b32d2e;
}

#search-results {
  margin-top: 30px;
}

.vehicle-result-item {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.vehicle-result-item h3 {
  margin-top: 0;
}

.stock-detail {
  font-size: 12px;
  color: #666;
  display: none;
}

.booking-summary,
.reservation-detail {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.summary-table,
.detail-table,
.price-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th,
.detail-table th,
.price-table th {
  text-align: left;
  padding: 10px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  width: 30%;
}

.summary-table td,
.detail-table td,
.price-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.price-summary {
  background: #f0f0f0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.price-table .total th,
.price-table .total td {
  font-size: 18px;
  font-weight: bold;
  background: #2271b1;
  color: #fff;
}

.total-price-row th,
.total-price-row td {
  font-size: 18px;
  font-weight: bold;
  background: #2271b1;
  color: #fff;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
}

.status-pending {
  background: #ff9800;
  color: #fff;
}

.status-confirmed {
  background: #4caf50;
  color: #fff;
}

.status-completed {
  background: #2196f3;
  color: #fff;
}

.status-cancelled {
  background: #d63638;
  color: #fff;
}

.success-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.error-message {
  display: inline-block;
  padding: .5em 1em;
  border-radius: 4px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.info-message {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.cancel-section {
  margin-top: 30px;
  padding: 20px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .search-col {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .summary-table th,
  .detail-table th {
    width: 40%;
  }
}
