* {
  box-sizing: border-box;
}

body {
  background: #f3f3f3;
  color: #222;
}

.reserve-page {
  max-width: 960px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

.reserve-page-inner {
  width: 100%;
}

.reserve-top-actions,
.reserve-bottom-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.reserve-bottom-actions {
  margin-top: 20px;
}

.reserve-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d6d6d6;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.reserve-shop-title {
  margin: 8px 0 22px;
  text-align: center;
  font-size: 38px;
  line-height: 1.4;
  font-weight: 700;
  color: #222;
}

.error-box {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #f1b8b8;
  background: #fff3f3;
  color: #b00020;
  border-radius: 12px;
}

.error-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.reserve-section {
  background: #fff;
  border-radius: 22px;
  padding: 20px 20px 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.reserve-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: #333;
}

.reserve-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #c9c9c9;
  line-height: 1;
}

.reserve-section-icon i {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.reserve-section.is-complete .reserve-section-icon {
  color: #039DDB;
}

.reserve-section-body {
  padding-left: 28px;
}

.reserve-trigger-list-modern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.reserve-trigger-wrap {
  min-width: 0;
}

.reserve-trigger {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
}

.reserve-trigger-modern {
  width: 100%;
  min-height: 64px;
  border: 1px solid #d9d9d9;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-radius: 12px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.reserve-trigger-modern:hover {
  border-color: #c3c3c3;
  transform: translateY(-1px);
}

.reserve-trigger-modern .reserve-trigger-value {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.form-block {
  margin-bottom: 14px;
}

.form-block:last-child {
  margin-bottom: 0;
}

.field-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: #333;
}

.required-mark {
  color: #d60000;
  margin-left: 4px;
  font-weight: 700;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 15px;
}

.form-input {
  height: 48px;
  padding: 0 14px;
}

.form-textarea {
  padding: 12px 14px;
  line-height: 1.7;
  resize: vertical;
  min-height: 120px;
}

.form-input-full {
  width: 100%;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 8px;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #222;
}

.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.premium-course-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.course-choice-card {
  position: relative;
  display: block;
  border: 1px solid #dcdcdc;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.course-choice-card:hover {
  transform: translateY(-1px);
  border-color: #c7c7c7;
}

.course-choice-card.active {
  border-color: #039DDB;
  box-shadow: 0 0 0 1px #039DDB inset, 0 10px 24px rgba(3, 157, 219, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
}

.course-choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.course-choice-card-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 17px;
}

.course-choice-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.course-choice-sub {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.course-selected-card {
  margin-top: 14px;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.course-selected-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.course-selected-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-list-name {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
}

.course-list-price {
  font-size: 15px;
  font-weight: 700;
  color: #bf0000;
  line-height: 1.4;
}

.course-list-intro {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  word-break: break-word;
}

.course-selected-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.course-detail-open-btn {
  min-width: 120px;
  height: 40px;
  border: 1px solid #b7c7d1;
  border-radius: 10px;
  background: #fff;
  color: #345;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.course-detail-image {
  display: block;
  width: 100px;
  max-width: 190px;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
  background: #fff;
}

.seat-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seat-choice-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  min-height: 180px;
  padding: 18px 18px 16px;
  border: 2px solid #d9d9d9;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.seat-choice-card:hover {
  border-color: #7dd6ff;
  transform: translateY(-1px);
}

.seat-choice-card.active {
  border-color: #18b7f5;
  box-shadow: 0 0 0 1px #18b7f5 inset, 0 10px 24px rgba(24, 183, 245, 0.14);
}

.seat-choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seat-choice-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  min-width: 0;
  padding-top: 2px;
}

.seat-choice-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.seat-choice-name {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  word-break: break-word;
}

.seat-choice-inline-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #7b8794;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.seat-choice-charge {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  word-break: break-word;
}

.seat-choice-action {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  height: 56px;
  padding: 0 26px;
  border: 2px solid #18b7f5;
  border-radius: 18px;
  background: #fff;
  color: #18b7f5;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-left: auto;
}

.field-error {
  margin-top: 6px;
  color: #d60000;
  font-size: 13px;
  line-height: 1.5;
}

.seat-type-error-message {
  min-height: auto;
}

.is-hidden {
  display: none !important;
}

.input-error {
  border-color: #d60000 !important;
  box-shadow: 0 0 0 1px #d60000 inset;
}

#seatTypeGrid.input-error {
  border-color: transparent !important;
  box-shadow: none !important;
}

.reserve-empty-inline {
  color: #666;
  font-size: 14px;
}

.reserve-submit-inline {
  margin-top: 16px;
}

.reserve-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  border: none;
  border-radius: 10px;
  background: #ff9800;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reserve-submit-btn:hover:not(:disabled) {
  opacity: 0.94;
}

.reserve-submit-btn:disabled {
  background: #cfcfcf;
  color: #ffffff;
  cursor: not-allowed;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.modal-overlay.open {
  display: flex;
}

.reserve-modal {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.reserve-modal-course {
  max-width: 760px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
}

.reserve-modal-small {
  max-width: 320px;
}

.reserve-modal-head {
  background: #4c4331;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
}

.course-modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}

.reserve-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
}

.month-arrow {
  background: none;
  border: none;
  color: #b99a54;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}

.month-label {
  font-size: 18px;
  color: #444;
  font-weight: 500;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 16px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.weekday-row .sun {
  color: #d15a5a;
}

.weekday-row .sat {
  color: #5a79d1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 4px;
  padding: 0 16px 18px;
}

.calendar-cell {
  min-height: 52px;
  text-align: center;
}

.calendar-day-btn,
.calendar-day-empty {
  width: 100%;
  min-height: 52px;
  border: none;
  background: transparent;
  padding: 0;
}

.calendar-day-btn {
  cursor: pointer;
}

.calendar-day-num {
  display: block;
  font-size: 16px;
  color: #666;
  line-height: 1.2;
  margin-top: 4px;
}

.calendar-day-mark {
  display: block;
  font-size: 22px;
  line-height: 1;
  color: #f0a500;
  margin-top: 2px;
}

.calendar-day-btn.disabled {
  cursor: not-allowed;
}

.calendar-day-btn.disabled .calendar-day-num,
.calendar-day-btn.disabled .calendar-day-mark {
  color: #d9d9d9;
}

.calendar-day-btn.selected {
  border: 2px solid #e0b84f;
  border-radius: 4px;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.people-btn {
  height: 42px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

.people-btn.active {
  background: #bf0000;
  color: #fff;
  border-color: #bf0000;
}

.time-modal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-nav-btn {
  width: 28px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #6a5a45;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 28px;
}

.time-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.time-scroller::-webkit-scrollbar {
  height: 8px;
}

.time-scroller::-webkit-scrollbar-thumb {
  background: #b8b8b8;
  border-radius: 999px;
}

.time-chip {
  min-width: 74px;
  height: 48px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffb326 0%, #ff9e0d 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 2px 0 rgba(204, 122, 0, 0.45);
}

.time-chip.disabled {
  background: #d9d9d9;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}

.time-chip.selected {
  box-shadow: 0 0 0 2px #7a5c16 inset;
}

#bodyc {
  width: 100%;
}

#coursecontent,
#course_content,
#coursetable {
  margin-bottom: 22px;
}

#coursecontent2 h4,
#course_content h4,
#youcandrink h4,
#youcaneat h4,
#drinkmenu h4,
#eatmenu h4 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
  color: #222;
}

#coursecontent2 img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #fff;
}

#coursecontent2 p,
#course_content p,
#course_notes,
.drinkmenu_p {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  white-space: pre-wrap;
  word-break: break-word;
}

.course_detail,
.drink_detail table,
#eat_detail table {
  width: 100%;
  border-collapse: collapse;
}

.course_detail th,
.course_detail td,
.drink_detail th,
.drink_detail td,
#eat_detail th,
#eat_detail td {
  padding: 10px 12px;
  border: 1px solid #e2e2e2;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
}

.course_detail th,
.drink_detail th,
#eat_detail th {
  width: 180px;
  background: #f8f8f8;
  font-weight: 700;
}

#modalCourseNotesWrap h5 {
  margin: 18px 0 10px;
  font-size: 16px;
  color: #222;
}

.clear {
  clear: both;
}

@media (max-width: 760px) {
  .reserve-trigger-list-modern,
  .premium-course-toggle,
  .seat-choice-grid {
    grid-template-columns: 1fr;
  }

  .course-selected-main {
    flex-direction: column;
  }

  .course-detail-image {
    width: 100px;
  }
}

@media (max-width: 640px) {
  .reserve-page {
    margin: 18px auto 40px;
    padding: 0 12px;
  }

  .reserve-shop-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .reserve-section {
    border-radius: 18px;
    padding: 16px 14px 18px;
  }

  .reserve-section-body {
    padding-left: 0;
  }

  .seat-choice-card {
    flex-direction: column;
    gap: 14px;
    min-height: auto;
  }

  .seat-choice-action {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .reserve-submit-btn {
    min-height: 58px;
    font-size: 20px;
  }

  .course_detail th,
  .course_detail td,
  .drink_detail th,
  .drink_detail td,
  #eat_detail th,
  #eat_detail td {
    display: block;
    width: 100%;
  }
}

.month-arrow:disabled,
.month-arrow.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e5e7eb;
}

.month-arrow:disabled:hover,
.month-arrow.is-disabled:hover {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e5e7eb;
  transform: none;
}