/* ==========================================================================
   온라인 예약 페이지 (/html/board/reservation.html)
   디자인: 피그마 구미인플란트치과_온라인예약 추가디자인 (1:859 / 1:1691 기준)
   ========================================================================== */

.reservation_page { background: #fff; font-family: 'Noto Sans KR', sans-serif; }
.reservation_page em { font-style: normal; color: #187171; }

/* 상단 비주얼(.sub_visual)·타이틀(.sub_tit)은 사이트 공통 스타일을 그대로 쓴다.
   피그마 시안의 히어로도 기존 서브페이지와 같은 이미지·같은 h5/h1/p.en 구성이다. */

/* --- 본문 패널 --- */
.rsv_wrap { padding: 0 20px; }
.rsv_panel {
  max-width: 1348px;
  margin: 0 auto;
  background: #3bafaf;
  border-radius: 16px;
  padding: 30px 34px 36px;
  box-sizing: border-box;
}
.rsv_panel_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.rsv_panel_head > strong {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.64px;
}
.rsv_required_note { font-size: 14px; color: #fff; letter-spacing: -0.64px; }
.rsv_required_note em { font-weight: 700; color: #fff; }

/* --- 3단 그리드 --- */
.rsv_grid {
  display: grid;
  grid-template-columns: 1.02fr 0.9fr 1.08fr;
  gap: 13px;
  padding-top: 22px;
  align-items: stretch;
}
.rsv_card {
  background: #fff;
  border: 1px solid #e8e4e0;
  border-radius: 18px;
  padding: 24px 19px;
  box-sizing: border-box;
}
.rsv_card_head { display: flex; align-items: center; gap: 9px; }
.rsv_step_no {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #3bafaf;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rsv_card_head h2 {
  font-size: 20px;
  font-weight: 700;
  color: #302b29;
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.2;
}
.rsv_card_desc {
  font-size: 13px;
  color: #77716d;
  letter-spacing: -0.64px;
  margin: 2px 0 0 40px;
}

/* --- 달력 --- */
.rsv_cal_nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 3px;
}
.rsv_cal_nav strong { font-size: 19px; font-weight: 700; color: #302b29; letter-spacing: -0.38px; }
.rsv_cal_nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e8e4e0;
  background: #fff;
  font-size: 21px;
  line-height: 1;
  color: #101010;
  cursor: pointer;
  padding: 0 0 3px;
}
.rsv_cal_nav button.off { color: rgba(16, 16, 16, 0.3); cursor: default; }
.rsv_cal_week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 14px;
}
.rsv_cal_week span {
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  color: #8d8580;
  letter-spacing: -0.64px;
}
.rsv_cal_week span.sun { color: #cd7060; }
.rsv_cal_days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.rsv_day {
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 15px;
  color: #302b29;
  cursor: pointer;
}
.rsv_day:hover { background: #eef9f8; }
.rsv_day.blank, .rsv_day.blank:hover { background: none; cursor: default; }
.rsv_day.off, .rsv_day.off:hover { color: #d3ceca; background: none; cursor: default; }
.rsv_day.sel, .rsv_day.sel:hover { background: #187171; color: #fff; font-weight: 700; }
.rsv_cal_note { font-size: 12px; color: #99918b; letter-spacing: -0.64px; margin: 14px 0 0; }

/* --- 희망 시간 --- */
.rsv_time_label {
  font-size: 14px;
  font-weight: 700;
  color: #302b29;
  letter-spacing: -0.64px;
  margin-top: 22px;
}
.rsv_time_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.rsv_time {
  border: 1px solid #e8e4e0;
  border-radius: 7px;
  background: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #000;
  cursor: pointer;
}
.rsv_time:hover { border-color: #9fd6d2; }
.rsv_time.off, .rsv_time.off:hover { opacity: 0.3; border-color: #e8e4e0; cursor: default; }
.rsv_time.sel, .rsv_time.sel:hover { background: #defffd; border-color: #187171; color: #187171; }
.rsv_time_empty {
  border: 1px solid #e8e4e0;
  border-radius: 7px;
  text-align: center;
  padding: 16px 10px;
  margin: 10px 0 0;
  font-size: 13px;
  color: #99918b;
  letter-spacing: -0.64px;
}

/* --- 선택 시술 --- */
.rsv_card_cure { display: flex; flex-direction: column; }
.rsv_cure_list { margin: 17px 0 0; padding: 0; list-style: none; }
.rsv_cure_list li + li { margin-top: 9px; }
.rsv_cure_list label {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 49px;
  padding: 0 15px;
  border: 1px solid #e8e4e0;
  border-radius: 9px;
  box-sizing: border-box;
  font-size: 16px;
  color: #302b29;
  letter-spacing: -0.64px;
  cursor: pointer;
  background: #fff;
}
.rsv_cure_list label.on { background: #defffd; border-color: #187171; color: #187171; }
.reservation_page input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

/* 사이트 공통 체크박스 아이콘(icon_font) 규칙 무력화 + 디자인 체크박스 */
.reservation_page input[type="checkbox"] + .rsv_chk { position: static; }
.reservation_page input[type="checkbox"] + label:before { display: none; content: none; }
.rsv_chk {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border: 1px solid #767676;
  border-radius: 2.5px;
  background: #fff;
  box-sizing: border-box;
  display: inline-block;
}
input:checked + .rsv_chk {
  background: #187171 url('../board/images/reservation_check_w.svg') center / 11px 8px no-repeat;
  border-color: #187171;
}

/* 기타 진료 내용 */
.rsv_etc_box { margin-top: 13px; }
.rsv_etc_label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #302b29;
  letter-spacing: -0.64px;
  margin-bottom: 10px;
}
.rsv_etc_box textarea {
  width: 100%;
  height: 105px;
  border: 1px solid #187171;
  border-radius: 8px;
  padding: 12px 15px;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  color: #302b29;
  line-height: 1.6;
  resize: none;
  background: #fff;
}
.rsv_cure_help {
  font-size: 13px;
  color: #8d857f;
  letter-spacing: -0.64px;
  line-height: 1.7;
  margin: 12px 0 0;
}

/* --- 정보 입력 --- */
.rsv_input_label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #302b29;
  letter-spacing: -0.64px;
  margin: 22px 0 0;
}
.rsv_card_info .rsv_input_label:first-of-type { margin-top: 24px; }
.rsv_card_info input[type="text"] {
  width: 100%;
  height: 53px;
  border: 1px solid #dcd7d2;
  border-radius: 8px;
  padding: 0 15px;
  margin-top: 8px;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  color: #302b29;
  background: #fff;
  vertical-align: top;
}
.rsv_card_info input[type="text"]::placeholder { color: #b2aba5; }

.rsv_agree { margin-top: 28px; }
.rsv_agree label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #302b29;
  letter-spacing: -0.64px;
  cursor: pointer;
}
.rsv_agree label strong { color: #187171; font-weight: 700; }
.rsv_agree_view {
  display: inline-block;
  margin: 8px 0 0 28px;
  font-size: 13px;
  color: #767676;
  text-decoration: underline;
}
.rsv_agree_view:hover { color: #187171; }

.rsv_summary {
  background: #defffd;
  border-radius: 9px;
  padding: 13px 14px;
  margin-top: 22px;
}
.rsv_summary strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #302b29;
  letter-spacing: -0.64px;
  line-height: 1.8;
}
.rsv_summary p { font-size: 13px; color: #4d6868; letter-spacing: -0.64px; line-height: 1.8; margin: 0; }

.rsv_submit {
  display: block;
  width: 100%;
  margin-top: 26px;
  padding: 17px 10px;
  border: 0;
  border-radius: 9px;
  background: #d3cdc7;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.rsv_submit.on { background: #187171; }
.rsv_submit.on:hover { background: #125a5a; }

/* --- 예약완료 모달 --- */
.rsv_modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(84, 84, 86, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rsv_modal_box {
  width: 100%;
  max-width: 404px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Noto Sans KR', sans-serif;
}
.rsv_modal_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3bafaf;
}
.rsv_modal_icon:before {
  content: '';
  width: 18px;
  height: 14px;
  background: url('../board/images/reservation_check_w.svg') center / contain no-repeat;
}
.rsv_modal_title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #302b29;
  margin-top: 16px;
  letter-spacing: -0.64px;
}
.rsv_modal_desc {
  font-size: 14px;
  color: #302b29;
  line-height: 1.6;
  margin: 14px 0 0;
  letter-spacing: -0.4px;
}
.rsv_modal_summary {
  background: #defffd;
  border: 1px solid #9fd6d2;
  border-radius: 9px;
  padding: 14px 16px;
  margin: 18px 0 0;
}
.rsv_modal_summary > div { display: flex; align-items: center; justify-content: space-between; line-height: 2; }
.rsv_modal_summary dt { font-size: 13px; color: #4d6868; letter-spacing: -0.4px; }
.rsv_modal_summary dd { font-size: 15px; color: #302b29; font-weight: 700; margin: 0; }
.rsv_modal_cure {
  font-size: 13px;
  color: #4d6868;
  text-align: left;
  margin: 12px 0 0;
  line-height: 1.6;
  letter-spacing: -0.4px;
  word-break: break-all;
}
#rsvDoneEtc { margin-top: 2px; }
#rsvDoneOk {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 10px;
  border: 0;
  border-radius: 9px;
  background: #187171;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* --- 반응형 --- */
@media all and (max-width: 1420px) {
  .rsv_grid { grid-template-columns: 1fr 1fr; }
  .rsv_card_info { grid-column: span 2; }
}

@media all and (max-width: 767px) {
  .rsv_wrap { padding: 0 14px; }
  .rsv_panel { padding: 24px 16px 28px; border-radius: 14px; }
  .rsv_panel_head { flex-direction: column; justify-content: center; text-align: center; gap: 4px; }
  .rsv_panel_head > strong { font-size: 17px; }
  .rsv_required_note { font-size: 12px; }

  .rsv_grid { grid-template-columns: 1fr; gap: 14px; padding-top: 18px; }
  .rsv_card { padding: 20px 15px; border-radius: 14px; }
  .rsv_card_info { grid-column: auto; }
  .rsv_card_head h2 { font-size: 18px; }
  .rsv_step_no { width: 28px; height: 28px; font-size: 14px; }
  .rsv_card_desc { margin-left: 37px; }

  .rsv_day { height: 36px; font-size: 14px; border-radius: 8px; }
  .rsv_time { padding: 9px 0; font-size: 13px; }

  .rsv_cure_list label { min-height: 46px; font-size: 15px; }
  .rsv_etc_box textarea { font-size: 15px; }

  .rsv_card_info input[type="text"] { height: 48px; font-size: 15px; }
  .rsv_submit { font-size: 16px; padding: 15px 10px; }

  .rsv_modal_box { padding: 28px 22px 24px; }
}
