/* 예약 완료 결과 화면 스타일 */

.reservation-result-container {
  /* position: fixed; */
  /* top: 0; */
  /* left: 0; */
  width: 100%;
  height: 100vh;
  background: #f8f9fa;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  z-index: 9999;
  overflow-y: auto;
  box-sizing: border-box;
}

.reservation-result {
  max-width: 600px;
  margin: 0 auto;
}

.result-header {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.result-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #28a745;
}

.result-message {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: #666;
}

.result-content {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
}

.reservation-summary-card {
  padding: 25px;
  border-bottom: 1px solid #eee;
}

.card-header {
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.3rem;
  color: #333;
  margin: 0;
  font-weight: 600;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row .label {
  font-weight: 500;
  color: #666;
  flex: 1;
}

.summary-row .value {
  font-weight: 600;
  color: #333;
  text-align: right;
  flex: 1;
}

.status-application {
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.summary-actions {
  margin-top: 20px;
  text-align: center;
}

/* 투어 리스트 스타일 */
.tours-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.tours-section .label {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.tours-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tour-summary-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #28a745;
}

.tour-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.tour-date {
  color: #666;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.tour-persons {
  color: #666;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.tour-price {
  font-weight: 600;
  color: #28a745;
  font-size: 1.1rem;
}

.result-actions {
  padding: 25px;
  display: flex;
  gap: 15px;
  flex-direction: column;
}

/* 버튼 스타일 */
.btn {
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
}

.btn-secondary:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
}

/* 모달 스타일 */
.reservation-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 16px 16px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0,0,0,0.1);
}

.modal-body {
  padding: 25px;
}

.detail-section {
  margin-bottom: 30px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-item label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.detail-item span {
  font-weight: 600;
  color: #333;
  word-break: break-all;
}

.tour-item {
  grid-column: 1 / -1;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  background: #f8f9fa;
}

.tour-header {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.tour-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tour-details span {
  font-size: 0.9rem;
  color: #666;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
  .reservation-result-container {
    padding: 15px;
  }
  
  .result-title {
    font-size: 1.6rem;
  }
  
  .result-message {
    font-size: 1rem;
  }
  
  .reservation-summary-card,
  .result-actions,
  .modal-body {
    padding: 20px;
  }
  
  .result-actions {
    gap: 12px;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .summary-row .value {
    text-align: left;
  }
  
  .modal-content {
    margin: 0;
    border-radius: 16px;
    max-height: 90vh;
  }
  
  .btn {
    padding: 16px 20px;
  }
}

/* 애니메이션 */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reservation-result {
  animation: slideUp 0.5s ease-out;
}

.modal-content {
  animation: slideUp 0.3s ease-out;
}
