/* 상담 모달 추가 스타일 */
.preferred-time-wrapper {
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

.time-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0 25px;
}

.time-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.time-option:hover {
  background-color: #f0f8ff;
}

.time-option input[type="radio"] {
  margin: 0;
}

.time-option label {
  font-size: 16px;
  cursor: pointer;
  flex: 1;
}

.consult-message {
  margin: 20px 0;
}

.consult-message textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: vertical;
}

.agreement-box {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  background-color: #f0f0f0;
}

.agreement-text {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* 로딩 및 성공/오류 메시지 스타일 */
.loading-message,
.success-message,
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.loading-message i,
.success-message i,
.error-message i {
  font-size: 64px;
  margin-bottom: 20px;
}

.success-message i {
  color: #28a745;
}

.error-message i {
  color: #dc3545;
}

.loading-message i {
  color: #007bff;
}

.success-message h3,
.error-message h3,
.loading-message h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.success-message p,
.error-message p,
.loading-message p {
  font-size: 16px;
  margin-bottom: 25px;
}

.close-button,
.retry-button {
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.close-button {
  background-color: #28a745;
  color: white;
}

.retry-button {
  background-color: #007bff;
  color: white;
}

.close-button:hover {
  background-color: #218838;
}

.retry-button:hover {
  background-color: #0069d9;
}
/* 모달 스크롤 스타일 */
.modal {
  overflow-y: auto;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-body {
  overflow-y: auto;
  flex: 1;
}

.step-forms {
  overflow-y: auto;
  max-height: 60vh;
}

/* 각 단계별 폼의 스크롤 적용 */
.step-form {
  padding-right: 5px;
  max-height: 100%;
  overflow-y: auto;
}

/* 스크롤바 스타일 */
.step-form::-webkit-scrollbar {
  width: 6px;
}

.step-form::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.step-form::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.step-form::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 네비게이션 버튼 고정 */
.modal-navigation {
  position: sticky;
  bottom: 0;
  background-color: #fff;
  padding: 15px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}
