/* ✅ Popup 기본 스타일 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px); /* ✅ 추가: 배경 블러 효과 */
}

.popup-container {
  position: relative; /* 추가 */
  background: #f9f9f9;
  color: #333;
  border: 1px solid #ddd;
  padding: 30px 30px 20px;
  width: 650px;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff, #f0f2f5); /* ✅ 추가: 팝업에 그라데이션 배경 */
  animation: popupFade 0.3s ease; /* ✅ 추가: 부드러운 열림 애니메이션 */
}

/* ✅ 팝업 열릴 때 부드럽게 등장하는 애니메이션 */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ✅ 닫기 버튼 팝업 안쪽 오른쪽 위에 */
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s; /* ✅ 추가: 닫기 hover 부드럽게 */
}
.popup-close:hover {
  color: #000;
  transform: scale(1.2); /* ✅ 추가: hover시 살짝 커지는 효과 */
}

.popup-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.popup-header h2 {
  font-size: 24px;
  margin: 0;
  color: #222;
}

/* ✅ 접수목록 */
#repairListArea h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #555;
}

#repairList {
  list-style: none;
  padding: 0;
}

#repairList li {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  transition: box-shadow 0.3s, transform 0.2s; /* ✅ 추가: 부드럽게 */
}
#repairList li:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px); /* ✅ 추가: hover시 살짝 떠오름 */
  cursor: pointer;
}

/* ✅ 상세내용 박스 */
#repairDetailArea {
  border-radius: 8px;
  margin-top: 10px;
  text-align: center;
  display: block;
}

/* ✅ 상세 항목 테이블 스타일링 */
.repair-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2열 */
  gap: 10px 20px;
  background: #fafafa; /* ✅ 추가: 상세 박스 배경 */
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.repair-detail-item {
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  background: #f7f9fc;
  border-radius: 8px;
  border: 1px solid #e0e6ed;
  font-size: 15px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.repair-detail-item strong {
  font-weight: 600;
  font-size: 16px;
  color: #0d47a1;
  margin-bottom: 5px;
}

.hidden {
  display: none;
}



/* ✅ 진행바 */
.repair-progress-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 30px;
}

.progress-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.progress-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 88%;
  max-width: 600px;
  height: 40px; /* 높이 조정 */
}

/* 기본 선 (회색) */
.line {
  width: 50px; /* 동그라미 사이를 연결하는 선 길이 */
  height: 4px;
  background-color: #ccc;
  margin-top: -11px; /* 위치 미세조정 */
  margin-left: 31px;
  z-index: 1;
}

.line.completed {
  background-color: #3498db;
}

/* 동그라미 */
.step {
  position: relative;
  z-index: 2;
}

.circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ccc;
  transition: all 0.3s ease;
}

.step.completed .circle {
  background-color: #3498db;
  border-color: #3498db;
}

.step.in-progress .circle {
  background-color: #3498db;
  border-color: #3498db;
  animation: pulse 1.5s infinite;
}

.step.pending .circle {
  background-color: #ccc;
  border-color: #ccc;
}

.repair-detail-header {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
}

.back-button {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* 텍스트 */
.step-text {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin-top: 10px;
}

.step-text .label {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #666;
  position: relative; /* 위치를 상대적으로 설정 */
}

.step-text .접수 {
  top: -9px;
  left: -3px;
}

.step-text .도착 {
  top: -9px; /* 아래로 10px */
  left: -2px; /* 왼쪽으로 20px */
}

.step-text .수리대기 {
  top: -9px; /* 위로 5px */
  left: 0px; /* 오른쪽으로 30px */
}

.step-text .수리중 {
  top: -9px; /* 아래로 5px */
  left: 2px; /* 왼쪽으로 15px */
}

.step-text .수리완료 {
  top: -9px; /* 위로 15px */
  left: 3px; /* 기본 위치 */
}

.step-text .발송 {
  top: -9px; /* 아래로 10px */
  left: 4px; /* 왼쪽으로 10px */
}


/*텍스트 끝 */

.progress-track .step:last-child .circle {
  margin-top: 7px; /* 마지막 점의 위치를 아래로 내려서 다른 점들과 일치시킴 */
}

#repairDetailText {
  text-align: center;      /* 텍스트 가운데 정렬 */
  margin-top: 40px;        /* 위쪽 여백 조금 추가 (선택사항) */
  font-size: 16px;         /* 글자 크기 (선택사항) */
  color: #666;             /* 글자 색깔 조금 부드럽게 (선택사항) */
}

/* 애니메이션 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}


/* 팝업 숨기기 기본 설정 */
.popup-overlay.hidden {
  display: none;
}

#popup {
  width: 500px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#popup .popup-header h2 {
  margin: 0;
  font-size: 20px;
}

#popup ol {
  padding-left: 20px;
}

#popup .popup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

#popup .popup-footer input {
  width: 60%;
  padding: 10px;
}

#popup .popup-footer button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#popup .popup-footer button {
  background-color: #3498db;
  color: #fff;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#popup .popup-footer button:hover:not(:disabled) {
  background-color: #2980b9;
}

/* ✅ 수리 요청 폼 팝업 */
.repair-request-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px); /* 배경 블러 효과 */
}

.repair-request-popup-container {
  position: relative;
  background: #f9f9f9;
  color: #333;
  border: 1px solid #ddd;
  padding: 30px;
  width: 650px;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff, #f0f2f5);
  animation: popupFade 0.3s ease;
}

.repair-request-popup-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  
}

.repair-request-popup-header h2 {
  font-size: 24px;
  margin: 0;
  color: #222;

}

.repair-request-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.repair-request-popup-close:hover {
  color: #000;
  transform: scale(1.2);
}

.repair-request-popup-content {
  display: flex;
  flex-direction: column;
}

.repair-request-popup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.repair-request-popup-footer input {
  width: 60%;
  padding: 10px;
}

.repair-request-popup-footer button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.repair-request-popup-footer button {
  background-color: #3498db;
  color: #fff;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.repair-request-popup-footer button:hover:not(:disabled) {
  background-color: #2980b9;
}

/* ✅ 수리 요청 '동의' 팝업 */
.repair-agreement-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.repair-agreement-popup-container {
  position: relative;
  background: #f9f9f9;
  color: #333;
  border: 1px solid #ddd;
  padding: 30px;
  width: 650px;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff, #f0f2f5);
  animation: popupFade 0.3s ease;
}

.repair-agreement-popup-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.repair-agreement-popup-header h2 {
  font-size: 24px;
  margin: 0;
  color: #222;
}

.repair-agreement-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.repair-agreement-popup-close:hover {
  color: #000;
  transform: scale(1.2);
}

.repair-agreement-popup-content {
  display: flex;
  flex-direction: column;
}

.repair-agreement-popup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.repair-agreement-popup-footer input {
  width: 60%;
  padding: 10px;
}

.repair-agreement-popup-footer button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.repair-agreement-popup-footer button {
  background-color: #3498db;
  color: #fff;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.repair-agreement-popup-footer button:hover:not(:disabled) {
  background-color: #2980b9;
}

/* 팝업 숨기기 */
.hidden {
  display: none !important;
}

/* 애니메이션 */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}



/*수리요청 팝업스타일 */


/* ✅ 공통 팝업 오버레이 */
.repair-request-popup-overlay,
.repair-agreement-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 덜 강렬한 어두운 배경 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(8px); /* 배경 블러 효과 */
  padding: 20px;
}

/* ✅ 팝업 공통 컨테이너 */
.repair-request-popup-container,
.repair-agreement-popup-container {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  animation: popupFade 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out; /* 팝업 애니메이션 */
}

/* ✅ 팝업 헤더 */
.repair-request-popup-header,
.repair-agreement-popup-header {
  background: #f1f3f6; /* 밝은 회색 배경 */
  color: #333;
  padding: 20px 25px;
  display: flex;
  justify-content: center; /* 텍스트를 가로로 가운데 정렬 */
  align-items: center; /* 텍스트를 세로로 가운데 정렬 */
  border-radius: 8px 8px 0 0;
  font-size: 18px;
  font-weight: 600;
}

/* ✅ 팝업 닫기 버튼 */
.repair-request-popup-close,
.repair-agreement-popup-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.repair-request-popup-close:hover,
.repair-agreement-popup-close:hover {
  color: #333;
}

/* ✅ 팝업 콘텐츠 */
.repair-request-popup-content,
.repair-agreement-popup-content {
  padding: 25px 20px;
  background-color: #fafafa; /* 더 부드러운 회색 배경 */
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ✅ 입력 폼 */
#repair-form label {
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
  display: block;
}

#repair-form input[type="text"],
#repair-form input[type="tel"],
#repair-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #555;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#repair-form input[type="text"]:focus,
#repair-form input[type="tel"]:focus,
#repair-form textarea:focus {
  border-color: #66cc99; /* 강조색: 부드러운 녹색 */
  box-shadow: 0 0 0 2px rgba(102, 204, 153, 0.2);
  outline: none;
}

/* ✅ 접수 버튼 */
#submit-button {
  margin-top: 15px;
  padding: 14px;
  width: 100%;
  background: #66cc99; /* 부드러운 녹색 */
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#submit-button:hover {
  background: #4bbf80; /* 강조된 색상 */
}

/* ✅ 안내사항 리스트 스타일 */
.repair-agreement-popup-content ol {
  list-style: decimal inside;
  padding-left: 0;
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

.repair-agreement-popup-content ol li {
  margin-bottom: 10px;
}

/* ✅ 동의 입력란과 버튼 */
.repair-agreement-popup-footer {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 20px;
}

.repair-agreement-popup-footer input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.repair-agreement-popup-footer input:focus {
  border-color: #66cc99;
  box-shadow: 0 0 0 2px rgba(102, 204, 153, 0.2);
  outline: none;
}

.repair-agreement-popup-footer button {
  padding: 12px 18px;
  background: #66cc99;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.repair-agreement-popup-footer button:disabled {
  background: #b0b8c4;
  cursor: not-allowed;
}

.repair-agreement-popup-footer button:hover:not(:disabled) {
  background: #4bbf80;
}

/* ✅ 팝업 페이드 애니메이션 */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ✅ 숨김 처리 */
.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
