/* ==========================================================================
   온라인 예약 페이지 (/html/board/reservation.html)
   디자인: 피그마 완플란트치과_홈페이지 > 빠른예약 페이지 (218:42072 기준)
   ========================================================================== */

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

/* --- 상단 비주얼 --- */
.rsv_visual {
  position: relative;
  height: 500px;
  background: url('../board/images/reservation_visual.jpg') center / cover no-repeat #1c1f2b;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.rsv_visual_text h1 {
  position: relative;
  display: inline-block;
  font-family: 'S-CoreDream', 'Noto Sans KR', sans-serif;
  font-size: 60px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin: 70px 0 0;
  padding: 24px 90px;
}
.rsv_visual_text h1 .tint { color: #ffd637; }
.rsv_visual_text h1 .bracket_l,
.rsv_visual_text h1 .bracket_r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  border: 10px solid rgba(255, 255, 255, 0.5);
}
.rsv_visual_text h1 .bracket_l { left: 0; border-right: 0; }
.rsv_visual_text h1 .bracket_r { right: 0; border-left: 0; }

/* --- 본문 패널 --- */
.rsv_wrap { padding: 100px 20px 120px; }
.rsv_panel {
  max-width: 1348px;
  margin: 0 auto;
  background: #faf7f4;
  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: #302b29;
  letter-spacing: -0.64px;
}
.rsv_required_note { font-size: 14px; color: #77716d; letter-spacing: -0.64px; }
.rsv_required_note em { font-weight: 700; }

/* --- 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: #fff0e5;
  color: #c3541e;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rsv_card_head h2 {
  font-family: 'Noto Sans KR', sans-serif;
  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: #f5efe9; }
.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: #ed7638; 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: #e0c9b8; }
.rsv_time.off, .rsv_time.off:hover { opacity: 0.3; border-color: #e8e4e0; cursor: default; }
.rsv_time.sel, .rsv_time.sel:hover { background: #fff5ee; border-color: #ed7638; color: #c3541e; }
.rsv_time_empty { font-size: 13px; color: #99918b; letter-spacing: -0.64px; margin: 12px 0 0; }

/* --- 선택 시술 --- */
.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: #fff7f1; border-color: #ed7638; color: #bd541f; }
.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: #ed7638 url('../board/images/reservation_check_w.svg') center / 11px 8px no-repeat;
  border-color: #ed7638;
}

/* 기타 진료 내용 */
.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 #ed7638;
  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_etc_help { font-size: 12px; color: #8d857f; letter-spacing: -0.64px; margin: 8px 0 0; }
.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: #ed7638; font-weight: 700; }
.rsv_agree_view {
  display: inline-block;
  margin: 8px 0 0 28px;
  font-size: 13px;
  color: #867b74;
  text-decoration: underline;
}
.rsv_agree_view:hover { color: #ed7638; }

.rsv_summary {
  background: #faf7f4;
  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: #847970; 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: #d9d2cc;
  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: #ed7638; }
.rsv_submit.on:hover { background: #db6528; }
.rsv_submit_help {
  font-size: 12px;
  color: #8e847c;
  letter-spacing: -0.64px;
  text-align: center;
  margin: 12px 0 0;
}

.rsv_foot_note {
  font-size: 13px;
  color: #958a81;
  letter-spacing: -0.64px;
  line-height: 1.7;
  margin: 14px 0 0;
}

/* --- 예약완료 모달 --- */
.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: #fff0e5;
}
.rsv_modal_icon:before {
  content: '';
  width: 16px;
  height: 12px;
  background: url('../board/images/reservation_check_w.svg') center / contain no-repeat;
  filter: brightness(0) saturate(100%) invert(48%) sepia(72%) saturate(1900%) hue-rotate(347deg) brightness(97%) contrast(90%); /* #ed7638 근사 */
}
.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: #fff7f1;
  border: 1px solid #f3d9c5;
  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: #847970; 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: #847970;
  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: #ed7638;
  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) {
  /* 모바일 고정 헤더 아래로 내림 (.sub_visual 관행과 동일) */
  .rsv_visual { height: 180px; margin-top: 98px; }
  .rsv_visual_text h1 { font-size: 26px; margin-top: 0; padding: 12px 40px; }
  .rsv_visual_text h1 .bracket_l, .rsv_visual_text h1 .bracket_r { width: 18px; border-width: 5px; }
  .rsv_visual_text h1 .bracket_l { border-right: 0; }
  .rsv_visual_text h1 .bracket_r { border-left: 0; }

  .rsv_wrap { padding: 40px 14px 60px; }
  .rsv_panel { padding: 24px 16px 28px; border-radius: 14px; }
  .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_foot_note { font-size: 12px; }

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