/* 予約フロー用CSS */

.booking-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* プログレスバー */
.booking-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.booking-progress::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #cbd5e0;
}

.progress-step.active .step-number {
  background: #2f62ea;
  border-color: #2f62ea;
  color: #fff;
}

.progress-step.completed .step-number {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.progress-step.active .step-label {
  color: #2f62ea;
}

.progress-step.completed .step-label {
  color: #10b981;
}

/* 予約カード */
.booking-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.booking-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

/* フライト情報 */
.flight-summary {
  display: grid;
  gap: 24px;
}

.flight-leg {
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.flight-leg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.leg-badge {
  padding: 6px 12px;
  background: #2f62ea;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.airline-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.airline-logo-small {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.flight-route-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.airport-block {
  flex: 1;
}

.airport-code-large {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
}

.airport-time {
  font-size: 18px;
  color: #6b7280;
  margin-top: 4px;
}

.route-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.route-duration {
  font-size: 14px;
  color: #6b7280;
}

.route-line {
  width: 100px;
  height: 2px;
  background: #cbd5e0;
  position: relative;
}

.route-stops {
  font-size: 12px;
  color: #9ca3af;
}

/* 料金情報 */
.pricing-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.price-row:last-child {
  border-bottom: none;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px solid #cbd5e0;
}

.price-label {
  font-size: 16px;
  color: #4b5563;
}

.price-value {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.price-row:last-child .price-label {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.price-row:last-child .price-value {
  font-size: 24px;
  font-weight: 700;
  color: #2f62ea;
}

/* ボタン */
.booking-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-booking-primary,
.btn-booking-secondary {
  flex: 1;
  height: 60px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-booking-primary {
  background: linear-gradient(90deg, #2f62ea 0%, #4c52e8 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(47, 98, 234, 0.3);
}

.btn-booking-primary:hover {
  box-shadow: 0 10px 20px rgba(47, 98, 234, 0.4);
  transform: translateY(-2px);
}

.btn-booking-secondary {
  background: #fff;
  color: #6b7280;
  border: 2px solid #e2e8f0;
}

.btn-booking-secondary:hover {
  background: #f9fafb;
  border-color: #cbd5e0;
}

/* 搭乗者情報フォーム */
.passenger-form-section {
  margin-bottom: 24px;
}

.passenger-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f0f4ff;
  border-left: 4px solid #2f62ea;
  border-radius: 8px;
  margin-bottom: 20px;
}

.passenger-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2f62ea;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passenger-type {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.required-mark {
  color: #ef4444;
  margin-left: 4px;
}

.form-input,
.form-select {
  height: 48px;
  padding: 0 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #2f62ea;
  box-shadow: 0 0 0 3px rgba(47, 98, 234, 0.1);
}

.input-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* 座席選択セクション */
.seat-selection-section {
  margin-top: 32px;
}

.seat-map-container {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seat-legend {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
}

.legend-seat {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 2px solid;
}

.legend-available {
  background: #fff;
  border-color: #cbd5e0;
}

.legend-selected {
  background: #2f62ea;
  border-color: #2f62ea;
}

.legend-occupied {
  background: #e2e8f0;
  border-color: #cbd5e0;
}

.legend-premium {
  background: #fef3c7;
  border-color: #f59e0b;
}

.legend-exit {
  background: #d1fae5;
  border-color: #10b981;
}

.seat-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.seat-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.row-label {
  width: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.seat-columns {
  display: flex;
  gap: 8px;
}

.seat-aisle {
  width: 24px;
}

.seat {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid #cbd5e0;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seat:hover:not(.occupied):not(.selected) {
  border-color: #2f62ea;
  transform: scale(1.1);
}

.seat.selected {
  background: #2f62ea;
  border-color: #2f62ea;
  color: #fff;
  box-shadow: 0 4px 8px rgba(47, 98, 234, 0.3);
}

.seat.occupied {
  background: #e2e8f0;
  border-color: #cbd5e0;
  cursor: not-allowed;
  color: #9ca3af;
}

.seat.premium {
  background: #fef3c7;
  border-color: #f59e0b;
}

.seat.exit-row {
  background: #d1fae5;
  border-color: #10b981;
}

.seat-price {
  font-size: 10px;
  margin-top: 2px;
}

.selected-seats-summary {
  margin-top: 24px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.selected-seats-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.selected-seat-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.selected-seat-item:last-child {
  border-bottom: none;
}

.seat-info {
  font-size: 14px;
  color: #4b5563;
}

.seat-extra-fee {
  font-size: 14px;
  font-weight: 600;
  color: #2f62ea;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .booking-progress {
    margin-bottom: 24px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .booking-progress::before {
    top: 20px;
  }
  
  .step-label {
    font-size: 11px;
  }
  
  .booking-card {
    padding: 20px;
  }
  
  .flight-route-summary {
    flex-direction: column;
    text-align: center;
  }
  
  .route-line {
    width: 2px;
    height: 60px;
  }
  
  .booking-actions {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .seat {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .seat-map-container {
    padding: 16px;
    overflow-x: auto;
  }

  .seat-legend {
    font-size: 12px;
  }

  .legend-seat {
    width: 24px;
    height: 24px;
  }
}
