/* 예약 완료 결과 화면 스타일 */

.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;
}

/* Error Modal Styles */
.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.error-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.error-modal {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px 35px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
  z-index: 1;
}

.error-modal-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  animation: shakeAnimation 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 8px rgba(220, 53, 69, 0.3));
}

.error-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 6px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: 1px;
}

.error-modal-subtitle {
  font-size: 0.95rem;
  color: #dc3545;
  margin-bottom: 20px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 600;
}

.error-modal-message {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 24px;
  white-space: pre-line;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #fef2f2;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #fee2e2;
}

.error-modal-close-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  width: 100%;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.error-modal-close-btn:hover {
  background: #495057;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.error-modal-close-btn:active {
  transform: translateY(0px);
  box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shakeAnimation {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  25% {
    transform: scale(1.1) rotate(5deg);
  }
  50% {
    transform: scale(0.95) rotate(-5deg);
  }
  75% {
    transform: scale(1.05) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Mobile optimization for error modal */
@media (max-width: 768px) {
  .error-modal {
    padding: 35px 30px;
    border-radius: 16px;
  }
  
  .error-modal-icon svg {
    width: 50px;
    height: 50px;
  }
  
  .error-modal-title {
    font-size: 1.3rem;
  }
  
  .error-modal-subtitle {
    font-size: 0.9rem;
  }
  
  .error-modal-message {
    font-size: 0.85rem;
    padding: 16px;
  }
  
  .error-modal-close-btn {
    padding: 13px 28px;
    font-size: 0.9rem;
  }
}

/* Success Modal Styles */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.success-modal {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px 35px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
  z-index: 1;
}

.success-modal-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  animation: checkmarkAnimation 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.3));
}

.success-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: -0.3px;
}

.success-modal-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 24px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 400;
}

.success-modal-content {
  background: #fff7ed;
  border-radius: 12px;
  padding: 20px 18px;
  margin-bottom: 24px;
  border: 1px solid #fed7aa;
}

.success-modal-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.info-label {
  font-size: 0.8rem;
  color: #ea580c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f97316;
  font-family: 'Courier New', Consolas, monospace;
  letter-spacing: 1px;
}

.success-modal-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.success-modal-confirm-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  flex: 1;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.success-modal-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.success-modal-confirm-btn:active {
  transform: translateY(0px);
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
}

.success-modal-close-btn {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  flex: 1;
}

.success-modal-close-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.success-modal-close-btn:active {
  transform: translateY(0px);
}

@keyframes checkmarkAnimation {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-45deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Mobile optimization for success modal */
@media (max-width: 768px) {
  .success-modal {
    padding: 35px 30px;
    border-radius: 16px;
  }
  
  .success-modal-icon svg {
    width: 50px;
    height: 50px;
  }
  
  .success-modal-title {
    font-size: 1.3rem;
  }
  
  .success-modal-subtitle {
    font-size: 0.9rem;
  }
  
  .info-value {
    font-size: 1.3rem;
  }
  
  .success-modal-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .success-modal-confirm-btn,
  .success-modal-close-btn {
    padding: 13px 24px;
    font-size: 0.9rem;
    width: 100%;
  }
}
