/* 공통 스타일 */
body {
  background: #f7f7f7;
}
#wrap {
  max-width: 1200px;
  margin: 0 auto;
}
#content {
  margin-top: 0;
  padding: 0;
  background: #fff;
}
.container {
  padding: 30px 82px;
}
.mo-br {
  display: none;
}
.mo-banner {
  display: none;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 8px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn,
.page-number {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled),
.page-number:hover:not(.active) {
  border-color: #4d3dbf;
  color: #4d3dbf;
}

.page-btn:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.page-number.active {
  background: #4d3dbf;
  color: #fff;
  border-color: #4d3dbf;
}

.page-dots {
  color: #666;
  padding: 0 4px;
}

/* 공통 타이틀 */
.cm-title-con {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cm-title-con .tit {
  color: #222;
  font-size: 32px;
  font-weight: 600;
  margin: 0;
}
.cm-title-con a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #f5f5f5;
  border-radius: 20px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cm-title-con a::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}
.cm-title-con a:hover {
  background-color: #eeebff;
  color: #4d3dbf;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(77, 61, 191, 0.1);
}
.cm-title-con a:hover::after {
  transform: translateX(3px);
}

/* 공통 별점 */
.rating-common {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}
.rating-common .stars {
  color: #ffca00;
  font-size: 18px;
}
.rating-common .score {
  color: #000;
  font-size: 18px;
  font-weight: 500;
}
.rating-common .reviews {
  position: relative;
  padding-left: 16px;
  color: #666;
  font-size: 16px;
}
.rating-common .reviews::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  width: 2px;
  height: 2px;
  background: #666;
  transform: translateY(-50%);
}
.rating-common .event {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: #666;
}
.rating-common .event::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  width: 2px;
  height: 2px;
  background: #666;
  transform: translateY(-50%);
}

/* 모달 팝업 공통 */
.cm-modal-popup-fixed,
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.cm-modal-popup-fixed.active {
  display: block;
}

.modal {
  justify-content: center;
  align-items: center;
}

.cm-popup-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}

.cm-popup-container {
  width: 100%;
}

.cm-popup-wrapper .cm-popup-con {
  max-width: 500px;
  margin: 0 auto;
}

.cm-popup-con .cm-popup-inner {
  background: #fff;
  border-radius: 10px;
}

.cm-popup-con .popup-title-box {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.cm-popup-con .popup-title-box .tit {
  color: #222;
  font-size: 18px;
  font-weight: 500;
}

/* 모달 컨텐츠 스타일 */
.modal-content {
  background-color: white;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  padding: 30px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
}

.close-btn:hover {
  color: #333;
}

.modal h2 {
  margin-bottom: 20px;
  color: #4d3dbf;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.form-check {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
}

.form-check input {
  margin-top: 0;
  margin-right: 10px;
  flex-shrink: 0;
}

.form-check label {
  font-size: 14px;
  color: #555;
  white-space: normal;
  flex: 1;
}

/* 약관 링크 스타일 */
.terms-link {
  display: inline-block;
  margin-left: 8px;
  color: #4d3dbf;
  font-size: 13px;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.terms-link:hover {
  color: #3f31a0;
}

/* 체크박스를 가로로 배열하기 위한 스타일 */
.form-check-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.form-check-row .form-check {
  width: auto;
  margin-bottom: 5px;
}

.privacy-info {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  margin-bottom: 20px;
  margin-left: 0;
}

.modal-submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #4d3dbf;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-submit-btn:hover {
  background-color: #3f31a0;
}

/* 시간 선택 버튼 스타일 */
.time-selector {
  margin-top: 8px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.time-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 60px;
}

.time-btn:hover {
  border-color: #4d3dbf;
  background-color: #f8f9ff;
}

.time-btn.selected {
  border-color: #4d3dbf;
  background-color: #4d3dbf;
  color: #fff;
}

.time-btn .time {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.time-btn .period {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.time-btn.selected .period {
  opacity: 0.9;
}

/* 데스크톱 사이즈 (1024px 이상)에서는 중앙 모달 */
@media screen and (min-width: 1024px) {
  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal-content {
    position: relative;
    top: auto;
    transform: none;
    margin: 0 auto;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
  }
}

/* 미디어 쿼리 - 반응형 공통 */
@media screen and (max-width: 1200px) {
  .container {
    padding: 24px 50px;
  }
}

/* 태블릿 사이즈 (768px ~ 1023px)에서는 중앙 모달 유지 */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal-content {
    position: relative;
    top: auto;
    transform: none;
    margin: 0 auto;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
  }
}

/* 모바일 사이즈 (767px 이하)에서는 바텀 시트 스타일 */
@media screen and (max-width: 767px) {
  .mo-banner {
    display: block;
  }
  .mo-br {
    display: block;
  }
  .pc-banner {
    display: none;
  }

  .container {
    padding: 18px 24px;
  }

  /* 모바일에서 바텀 시트 스타일 */
  .modal {
    align-items: flex-end;
    padding: 0 0 70px 0; /* 하단 메뉴바 높이(60px) + 여백(10px) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content {
    position: relative;
    top: auto;
    transform: none;
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 10px 10px; /* 상단과 하단 모두 둥글게 */
    max-height: calc(85vh - 60px); /* 높이를 늘려서 더 많은 공간 확보 */
    animation: slideUp 0.3s ease-out;
    overflow-y: auto;
    padding: 20px;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .cm-title-con .tit {
    font-size: 24px;
  }
  .cm-title-con a {
    padding: 6px 14px;
    font-size: 14px;
  }

  .more-view::after {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .rating-common .stars {
    font-size: 16px;
  }
  .rating-common .score {
    font-size: 16px;
  }
  .rating-common .reviews {
    font-size: 14px;
  }

  .cm-title-con a::after {
    font-size: 14px;
  }

  /* 모바일에서 폼 요소 왼쪽 정렬 및 가시성 개선 */
  .modal h2 {
    text-align: left;
    font-size: 20px;
    margin-bottom: 24px;
  }

  .form-group label {
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 10px;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #4d3dbf;
    background-color: #fff;
  }

  .form-group input::placeholder {
    color: #999;
  }

  .form-check {
    text-align: left;
    align-items: flex-start;
  }

  .form-check label {
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 14px 16px;
  }

  .cm-title-con .tit {
    font-size: 20px;
  }
  .cm-title-con a {
    padding: 5px 12px;
    font-size: 13px;
  }

  .more-view::after {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .cm-title-con a::after {
    font-size: 13px;
  }

  /* Pagination responsive */
  .pagination {
    margin-bottom: 30px;
    gap: 5px;
  }

  /* 480px에서도 바텀 시트 스타일 유지 */
  .modal {
    align-items: flex-end;
    padding: 0 0 70px 0;
  }

  .modal h2 {
    text-align: left;
    font-size: 18px;
    margin-bottom: 20px;
    padding-right: 30px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #4d3dbf;
    background-color: #fff;
  }

  .form-group input::placeholder {
    color: #999;
  }

  .form-check {
    text-align: left;
    align-items: flex-start;
    margin: 15px 0;
  }

  .form-check label {
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
  }

  .privacy-info {
    font-size: 11px;
    margin: 8px 0 12px 0;
  }

  .modal-submit-btn {
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
  }

  /* 480px에서 모달 높이 및 패딩 조정 */
  .modal-content {
    max-height: calc(80vh - 60px); /* 480px에서도 충분한 높이 확보 */
    padding: 15px;
    border-radius: 20px 20px 10px 10px; /* 상단과 하단 모두 둥글게 */
  }

  /* 모바일 시간 선택 버튼 */
  .time-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .time-btn {
    padding: 10px 6px;
    min-height: 55px;
  }

  .time-btn .time {
    font-size: 14px;
  }

  .time-btn .period {
    font-size: 11px;
  }
}

/* 
* Common Elements CSS
* Shared styles for navigation elements, headers, and controls used across pages
*/

/* Page Header with Back Button and Title */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

/* Left section with back button and title */
.left-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Back button styling */
.back-btn {
  position: relative;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f5f5;
  transition: all 0.2s ease;
}

.back-btn i {
  font-size: 22px;
  color: #333;
}

.back-btn:hover {
  transform: translateX(-3px);
  opacity: 0.7;
  background-color: #e0e0e0;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Dropdown sort styling */
.dropdown-sort {
  position: relative;
  display: inline-block;
}

.sort-dropdown-btn {
  padding: 8px 15px;
  background: #4d3dbf;
  border: 1px solid #4d3dbf;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-dropdown-btn i {
  font-size: 12px;
}

.sort-dropdown-btn:hover {
  background: #3e31a0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border-radius: 8px;
  padding: 8px 0;
  right: 0;
  top: 100%;
  margin-top: 8px;
  overflow: hidden;
}

.dropdown-content.show {
  display: block;
}

.sort-item {
  width: 100%;
  padding: 12px 16px;
  color: #666;
  font-size: 14px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-item:hover {
  background-color: #f5f5f5;
  color: #4d3dbf;
}

.sort-item.active {
  color: #4d3dbf;
  font-weight: 500;
  background-color: #f0eeff;
}

/* Back button styling (alternative version) */
.back-button {
  display: inline-block;
  margin-bottom: 20px;
  margin-top: 24px;
}

.back-txt {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-left: 5px;
}

.back-button a {
  display: flex;
  align-items: center;
  color: #444;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 8px 16px;
  background-color: #f5f5f5;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.back-button a:hover {
  color: #4d3dbf;
  background-color: #eeebff;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(77, 61, 191, 0.1);
}

.back-button i {
  font-size: 16px;
  color: #4d3dbf;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  /* Page header responsive */
  .page-header {
    padding: 15px 0;
  }

  /* Left section responsive */
  .left-section {
    gap: 10px;
  }

  .back-btn {
    width: 32px;
    height: 32px;
  }

  .back-btn i {
    font-size: 18px;
  }

  .page-title {
    font-size: 18px;
  }

  /* Dropdown sort responsive */
  .sort-dropdown-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .dropdown-content {
    right: 0;
    min-width: 140px;
  }

  .sort-item {
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Back button responsive */
  .back-button {
    margin-bottom: 15px;
    margin-top: 18px;
  }

  .back-button a {
    font-size: 14px;
    padding: 6px 14px;
  }

  .back-button i {
    font-size: 14px;
  }

  .back-txt {
    font-size: 14px;
  }

  /* Pagination responsive */
  .pagination {
    margin-top: 30px;
  }

  .page-numbers {
    max-width: 90%;
    overflow-x: auto;
    gap: 2px;
  }

  .page-btn,
  .page-number {
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    font-size: 12px;
    margin: 0 3px;
  }
}

@media screen and (max-width: 480px) {
  /* Page header responsive */
  .page-header {
    padding: 12px 0;
  }

  /* Left section responsive */
  .left-section {
    gap: 8px;
  }

  .back-btn {
    width: 28px;
    height: 28px;
  }

  .back-btn i {
    font-size: 16px;
  }

  .page-title {
    font-size: 16px;
  }

  /* Dropdown sort responsive */
  .sort-dropdown-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .dropdown-content {
    min-width: 120px;
  }

  .sort-item {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Back button responsive */
  .back-button {
    margin-bottom: 12px;
    margin-top: 15px;
  }

  .back-button a {
    font-size: 13px;
    padding: 5px 12px;
  }

  .back-button i {
    font-size: 13px;
  }

  .back-txt {
    font-size: 13px;
  }

  /* Pagination responsive */
  .pagination {
    margin-bottom: 30px;
    gap: 5px;
  }
}

/* 더보기 버튼 스타일링 */
.more-view {
  display: inline-flex;
  align-items: center;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  align-self: flex-end;
  margin-left: auto;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
.more-view:hover {
  transform: translateX(3px);
  color: #4d3dbf;
}

/* 탭 스타일 공통 */
.detail-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
  margin-top: 30px;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn.active {
  color: #4d3dbf;
  font-weight: 600;
}

.tab-btn.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #4d3dbf;
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

/* 미디어 쿼리에서 탭 스타일 조정 */
@media screen and (max-width: 768px) {
  .detail-tabs {
    margin-bottom: 15px;
    margin-top: 20px;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .detail-tabs {
    margin-bottom: 10px;
    margin-top: 15px;
  }

  .tab-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
}

/* 가격 정보 공통 스타일 */
.price-info {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: right;
}

.price-info .discount {
  color: rgb(255, 0, 195);
  font-weight: 600;
  font-size: 24px;
}

.price-info .price {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  text-align: right;
}

.price-info .price-before {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-right: 8px;
  text-align: right;
}

/* 미디어 쿼리에서 가격 정보 스타일 조정 */
@media screen and (max-width: 768px) {
  .price-info {
    gap: 6px;
  }

  .price-info .discount {
    font-size: 20px;
  }

  .price-info .price-before {
    font-size: 13px;
  }

  .price-info .price {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .price-info .discount {
    font-size: 18px;
  }

  .price-info .price-before {
    font-size: 12px;
  }

  .price-info .price {
    font-size: 16px;
  }
}

/* 병원 주소 공통 스타일 */
.hospital-address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.hospital-address i {
  color: #4d3dbf;
  font-size: 18px;
}

.hospital-address p {
  font-size: 16px;
  color: #333;
}

/* 미디어 쿼리에서 hospital-address 스타일 조정 */
@media screen and (max-width: 768px) {
  .hospital-address {
    margin-bottom: 12px;
  }

  .hospital-address i {
    font-size: 16px;
  }

  .hospital-address p {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .hospital-address {
    margin-bottom: 10px;
  }

  .hospital-address i {
    font-size: 14px;
  }

  .hospital-address p {
    font-size: 13px;
  }
}

/* 약관 페이지 공통 스타일 */
.terms-page {
  padding-bottom: 40px;
}

.terms-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.terms-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.terms-title {
  width: 100%;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.terms-content {
  color: #333;
  line-height: 1.7;
  font-size: 15px;
  word-break: keep-all;
}

.terms-content p {
  margin-bottom: 16px;
}

.terms-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.terms-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 16px;
}

.terms-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 5px;
}

.terms-list li:before {
  content: none;
}

@media screen and (max-width: 768px) {
  .terms-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 16px;
  }

  .terms-content {
    font-size: 14px;
  }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4d3dbf;
  box-shadow: 0 0 0 3px rgba(77, 61, 191, 0.1);
}

/* 통합된 폼 스타일 */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4d3dbf;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(77, 61, 191, 0.1);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

/* 모달 폼 스타일 */
.modal .form-group {
  margin-bottom: 20px;
}

.modal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
  outline: none;
  border-color: #4d3dbf;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(77, 61, 191, 0.1);
}

.modal .form-group input::placeholder,
.modal .form-group select::placeholder,
.modal .form-group textarea::placeholder {
  color: #999;
}

.modal .form-group .form-group-description {
    font-size: 13px;      /* 라벨보다 약간 작은 글자 크기 */
    color: #6c757d;       /* 눈에 띄지 않는 부드러운 회색 */
    margin-bottom: 15px;  /* 아래 요소와의 간격을 확보 */
    line-height: 1.4;
}

#scrollTopBtn {
  position: fixed;
  bottom: 100px; /* 하단 메뉴바(footerMenu)가 있다면 그 위로 위치 조정 */
  right: 20px;
  z-index: 999; /* 다른 요소들 위에 표시 */

  width: 45px;
  height: 45px;
  background-color: rgba(0, 0, 0, 0.6); /* 반투명 검정 배경 */
  color: #fff;
  border-radius: 50%;
  
  /* 아이콘 중앙 정렬 */
  display: flex;
  justify-content: center;
  align-items: center;
  
  font-size: 18px;
  text-decoration: none;
  
  /* 초기 상태: 숨김 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px); /* 아래에서 살짝 올라오는 효과를 위한 초기 위치 */
  transition: all 0.4s ease;
}

#scrollTopBtn.show {
  /* 활성 상태: 나타남 */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background-color: rgba(0, 0, 0, 0.8); /* 호버 시 더 진하게 */
}

@media (max-width: 768px) {
  #scrollTopBtn {
    /* 기존 bottom 값(100px)보다 더 높은 값으로 설정합니다. */
    /* 하단 메뉴바(footerMenu) 높이와 채널톡 아이콘 높이를 고려하여 조정합니다. */
    bottom: 150px;
  }
}