.reserve-container {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.reserve-container .dim {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
}

.reserve-container .inner {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  width: 80vw;
  height: 90vh;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reserve-container .modal-close-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}

.reserve-container .modal-close-btn:hover {
  color: var(--point-color);
}

.reserve-container .inner h2 {
  font-size: 30px;
  font-weight: 800;
  color: #2d2d2d;
  text-align: left;
  letter-spacing: -1px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.reserve-container .reserve-step .step-item {
  gap: 6px;
}

.reserve-container .reserve-step .step-number {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.reserve-container .reserve-step .step-text {
  font-size: 13px;
}

.reserve-container .reserve-step {
  font-size: 14px;
  color: #888;
  font-weight: 400;
  margin-left: 10px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.reserve-container .reserve-step .step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.reserve-container .reserve-step .step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 50%;
}

.reserve-container .reserve-step .step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  padding-bottom: 2px;
}

.reserve-container .reserve-step .step-text {
  font-size: 14px;
  color: #999;
  font-weight: 400;
  transition: all 0.3s ease;
}

.reserve-container .calendar-toggle {
  display: none;
}

/* 현재 단계 스타일 */
.reserve-container .reserve-step .step-item.current .step-number {
  background: var(--point-color);
  color: #fff;
  border-color: var(--point-color);
  box-shadow: 0 2px 8px rgba(124, 93, 250, 0.3);
}

.reserve-container .reserve-step .step-item.current .step-text {
  color: var(--point-color);
  font-weight: 600;
}

.reserve-container .reserve-step .step-item.current:not(:last-child)::after {
  background: var(--point-color);
  box-shadow: 0 0 4px rgba(124, 93, 250, 0.3);
}

/* 완료된 단계 스타일 */
.reserve-container .reserve-step .step-item.completed .step-number {
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}

.reserve-container .reserve-step .step-item.completed .step-text {
  color: #4CAF50;
  font-weight: 500;
}

.reserve-container .reserve-step .step-item.completed:not(:last-child)::after {
  background: #4CAF50;
}

.reserve-container .reserve-content-wrap {
  display: flex;
  gap: 48px;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.reserve-container .reserve-left {
  width: 500px;
  background: #faf8ff;
  border-radius: 14px;
  padding: 24px 16px 24px 16px;
  box-shadow: 0 2px 12px rgba(124, 93, 250, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.reserve-container .reserve-right {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 0 24px 32px;
  box-shadow: 0 2px 12px rgba(124, 93, 250, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

.reserve-container .form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reserve-container .form-row label {
  font-size: 16px;
  color: #444;
  font-weight: 500;
  margin-bottom: 2px;
}

.reserve-container .time-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.reserve-container .time-btn {
  min-width: 75px;
  padding: 10px 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s, color 0.2s;
}

.reserve-container .time-btn.selected,
.reserve-container .time-btn:hover {
  border: 1px solid #fff;
  background: var(--point-color);
  color: #fff;
  font-weight: 600;
}
.reserve-container .time-btn {
    min-width: 55px;
    padding: 6px 0;
    font-size: 12px;
  }
  /* time-btn 클래스를 가진 버튼이 비활성화되었을 때 */
 .reserve-container .time-btn:disabled {
    /* 배경색을 밝은 회색으로 변경 */
    background-color: #e9ecef; 
    
    /* 글자색을 어두운 회색으로 변경 */
    color: #6c757d; 
    
    /* 마우스 오버(hover) 효과를 막기 위해 포인터 모양 변경 */
    cursor: not-allowed; 
    
    /* 선택적으로 테두리 색상 변경 */
    border: 1px solid #ced4da;
    
    /* (선택 사항) 비활성화 시 투명도 조절 */
    opacity: 0.65; 
    
    /* 마우스 오버 시 스타일이 바뀌지 않도록 초기화 (hover가 별도로 정의된 경우) */
    pointer-events: none; 
   }

.reserve-container .form-row input[type="text"],
.reserve-container .form-row select {
  padding: 12px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  font-size: 16px;
  background: #fff;
  transition: border 0.2s;
}

.reserve-container .form-row-horizontal {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 18px;
}

.reserve-container .form-row-horizontal .form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reserve-container .form-row-horizontal .form-col-name {
  flex: 1;
}

.reserve-container .form-row-horizontal .form-col-phone {
  flex: 2;
}

.reserve-container .form-row input[type="text"]:focus,
.reserve-container .form-row select:focus {
  border: 1.5px solid var(--point-color);
  outline: none;
}

.reserve-container .form-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--point-color);
  margin-right: 8px;
}

.reserve-container .form-row input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-left: 0;
  cursor: pointer;
  accent-color: var(--point-color);
  appearance: auto;
  -webkit-appearance: auto;
}

.reserve-container .form-row input[type="radio"]+label {
  font-size: 16px;
  color: #444;
  font-weight: 400;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

.reserve-container .form-row input[type="radio"]:checked+label {
  color: var(--point-color);
  font-weight: 600;
}

.reserve-container .form-row .radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reserve-container .form-row.consultation-type {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.reserve-container .form-row.consultation-type label {
  margin-bottom: 0;
  min-width: 80px;
}

.reserve-container .form-row label[for="agree"] {
  font-size: 0.98rem;
  color: #666;
  font-weight: 400;
  margin-bottom: 0;
  display: inline-block;
}

.reserve-container .reserve-btn {
  width: 100%;
  background: gray;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 93, 250, 0.10);
  transition: background 0.2s;
}

.reserve-container .reserve-btn.active {
  background: linear-gradient(90deg, #7c5dfa 0%, #6241ea 100%);
}

.reserve-container .privacy-info {
  margin-top: 28px;
  font-size: 14.88px;
  color: #888;
  background: #f7f7fa;
  border-radius: 8px;
  padding: 14px 16px;
}

.reserve-container .privacy-info b {
  color: var(--point-color);
  font-weight: 700;
}

/* textarea 디자인 */
.reserve-container .reserve-textarea {
  min-height: 90px;
  padding: 12px 10px;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  font-size: 16px;
  background: #fff;
  resize: vertical;
  transition: border 0.2s;
  margin-top: 2px;
}

.reserve-container .reserve-textarea:focus {
  border: 1.5px solid #7c5dfa;
  outline: none;
  background: #f7f3ff;
}

/* 체크박스 커스텀 */
.reserve-container .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #666;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.reserve-container .styled-checkbox {
  display: none;
}

.reserve-container .custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #c5b6f7;
  border-radius: 5px;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: border 0.2s, background 0.2s;
  margin-right: 4px;
}

.reserve-container .styled-checkbox:checked+.custom-checkbox {
  background: #7c5dfa;
  border-color: #7c5dfa;
}

.reserve-container .styled-checkbox:checked+.custom-checkbox:after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* fullcalendar 커스텀 */
#calendar .selected-date {
  background: #7c5dfa !important;
  color: #fff !important;
  border-radius: 8px;
}

.fc .fc-daygrid-day-top {
  justify-content: center;
}

.fc .fc-daygrid-body {
  width: 100% !important;
}

.fc .fc-scrollgrid-section,
.fc .fc-scrollgrid-section table,
.fc .fc-scrollgrid-section>td {
  width: 100% !important;
}

.fc .fc-scrollgrid-section-body table,
.fc .fc-scrollgrid-section-footer table {
  width: 100% !important;
}

#calendar .fc-day-disabled,
#calendar .fc-day-disabled * {
  pointer-events: none !important;
  background: #f2f2f2 !important;
  color: #bbb !important;
  cursor: not-allowed !important;
}

.fc-daygrid-day.holiday {
  pointer-events: none !important;
  background: #ffeaea !important;
  color: #dc3545 !important;
  cursor: not-allowed !important;
  position: relative;
}

.fc-daygrid-day.holiday::after {
  content: 'closed';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: #fff;
  background: #dc3545;
  border-radius: 6px;
  padding: 1px 6px;
  z-index: 10;
}

.date-info {
  font-size: 12px;
  color: #666;
  font-weight: 400;
  margin-left: 10px;
  display: inline-block;
}

/* 반응형 */
@media (max-width: 1440px) {
  .reserve-container .inner {
    width: 90vw;
    height: 85vh;
    padding: 28px;
  }

  .reserve-container .reserve-left {
    width: 400px;
  }
}

@media (max-width: 1280px) {
  .reserve-container .inner {
    width: 95vw;
    height: 90vh;
    padding: 24px 16px;
  }

  .reserve-container .reserve-content-wrap {
    gap: 24px;
  }

  .reserve-container .reserve-left {
    width: 320px;
    padding: 20px 12px;
  }

  .reserve-container .reserve-right {
    padding: 0 16px 24px;
  }

  .reserve-container .inner h2 {
    font-size: 28px;
  }

  .reserve-container .time-btn {
    min-width: 70px;
    padding: 8px 0;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .reserve-container .inner {
    padding: 20px 16px;
  }

  .reserve-container .reserve-left {
    padding: 16px 8px;
  }

  .reserve-container .reserve-right {
    padding: 0 12px 20px;
  }

  .reserve-container .form-row {
    margin-bottom: 16px;
  }

  .reserve-container .form-row-horizontal {
    flex-direction: column;
    gap: 20px;
  }

  .reserve-container .form-row label {
    font-size: 15px;
  }

  .reserve-container .form-row input[type="text"],
  .reserve-container .form-row select,
  .reserve-container .reserve-textarea {
    padding: 10px 8px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .reserve-container .inner {
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    padding: 25px 0 0;
    border-radius: 0;
    gap: 16px;
  }

  .reserve-container .reserve-content-wrap {
    flex-direction: column;
    gap: 0;
    flex: 1;
    overflow: hidden;
  }

  .reserve-container .reserve-left {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 20px;
    background: #f8f6ff;
    min-height: auto;
    transition: all 0.3s ease;
    position: relative;
  }

  /* 달력 접힘 상태 */
  .reserve-container .reserve-left.collapsed {
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    padding: 8px 20px;
  }

  .reserve-container .reserve-left.collapsed #calendar {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }

  /* 달력 접힘 토글 버튼 */
  .reserve-container .calendar-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: var(--point-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
  }

  .reserve-container .calendar-toggle:hover {
    background: var(--point-color);
  }

  .reserve-container .calendar-toggle.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3px;
  }

  /* 선택된 날짜 표시 */
  .reserve-container .selected-date-display {
    display: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--point-color);
    text-align: center;
    margin-top: 8px;
  }

  .reserve-container .selected-date-display.show {
    display: block;
  }

  .reserve-container .reserve-right {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 16px;
    flex: 1;
    overflow-y: auto;
  }

  .reserve-container .modal-close-btn {
    top: 16px;
    right: 20px;
    font-size: 2.2rem;
    color: #666;
  }

  .reserve-container .inner h2 {
    font-size: 24px;
    padding: 0 20px;
  }

  .reserve-container .reserve-step {
    flex-wrap: wrap;
    padding: 0 20px;
  }

  .reserve-container .reserve-step .step-item {
    gap: 5px;
  }

  .reserve-container .reserve-step .step-number {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .reserve-container .reserve-step .step-text {
    font-size: 12px;
  }

  .reserve-container .form-row-horizontal {
    flex-direction: column;
    gap: 16px;
  }

  .reserve-container .form-row-horizontal .form-col {
    flex: none;
  }

  .reserve-container .time-btn-group {
    gap: 8px;
  }

  .reserve-container .time-btn {
    min-width: 60px;
    padding: 8px 0;
    font-size: 13px;
  }

  .reserve-container .form-row input[type="text"],
  .reserve-container .form-row select,
  .reserve-container .reserve-textarea {
    padding: 12px 10px;
    font-size: 16px;
  }

  .reserve-container .reserve-btn {
    padding: 16px;
    font-size: 16px;
    margin-top: 20px;
  }

  .reserve-container .privacy-info {
    margin-top: 20px;
    font-size: 13px;
    padding: 12px 14px;
  }

  #calendar .fc-header-toolbar {
    margin-bottom: 12px;
  }

  #calendar .fc-toolbar-title {
    font-size: 20px !important;
  }

  #calendar .fc-button {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }

  #calendar .fc-daygrid-day {
    min-height: 35px !important;
  }

  #calendar .fc-daygrid-day-number {
    font-size: 13px !important;
  }

  /* 달력 접힘 시 애니메이션 */
  #calendar {
    transition: all 0.3s ease;
  }
}

@media (max-width: 480px) {
  .reserve-container .reserve-left {
    padding: 12px 16px;
  }

  .reserve-container .reserve-right {
    padding: 24px 16px;
  }

  .reserve-container .inner h2 {
    font-size: 22px;
    padding: 0 16px;
  }

  .reserve-container .reserve-step {
    flex-wrap: wrap;
    padding: 0 16px;
  }

  .reserve-container .reserve-step .step-item {
    gap: 4px;
  }

  .reserve-container .reserve-step .step-number {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .reserve-container .reserve-step .step-text {
    font-size: 11px;
  }

  .reserve-container .modal-close-btn {
    top: 12px;
    right: 16px;
    font-size: 2rem;
  }

  .reserve-container .form-row {
    margin-bottom: 14px;
  }

  .reserve-container .form-row label {
    font-size: 14px;
  }

  .reserve-container .form-row input[type="text"],
  .reserve-container .form-row select,
  .reserve-container .reserve-textarea {
    padding: 10px 8px;
    font-size: 15px;
  }
  .reserve-container .time-btn-group {
    gap: 6px;
  }

  .reserve-container .reserve-btn {
    padding: 14px;
    font-size: 15px;
  }

  .reserve-container .privacy-info {
    font-size: 12px;
    padding: 10px 12px;
  }

  .reserve-container .checkbox-label {
    font-size: 14px;
  }

  #calendar .fc-toolbar-title {
    font-size: 14px !important;
  }

  #calendar .fc-button {
    padding: 4px 8px !important;
    font-size: 12px !important;
  }

  #calendar .fc-daygrid-day {
    min-height: 30px !important;
  }

  #calendar .fc-daygrid-day-number {
    font-size: 12px !important;
  }
}

/* 세로 화면이 가로보다 긴 경우 (모바일 세로 모드) */
@media (max-height: 600px) and (orientation: portrait) {
  .reserve-container .inner {
    height: 100vh;
    padding: 12px 0;
  }

  .reserve-container .reserve-left {
    padding: 8px 12px;
  }

  .reserve-container .reserve-right {
    padding: 24px 16px;
  }

  .reserve-container .inner h2 {
    font-size: 20px;
    margin: 0 0 8px 0;
  }

  .reserve-container .form-row {
    margin-bottom: 10px;
  }

  .reserve-container .reserve-textarea {
    min-height: 60px;
  }
}

/* 가로 화면 (태블릿 가로 모드) */
@media (min-width: 768px) and (max-height: 600px) {
  .reserve-container .inner {
    height: 95vh;
    padding: 20px;
  }

  .reserve-container .reserve-left {
    width: 200px;
    padding: 12px 8px;
  }
}

/* 예약 안내 모달 */
.instruction-modal-container {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.instruction-modal-container .dim {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  top: 0;
  left: 0;
}

.instruction-modal-container .inner {
  position: relative;
  background: #fff;
  color: #333;
  border-radius: 12px;
  padding: 32px;
  width: 90vw;
  height: max-content;
  max-width: 600px;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.instruction-modal-container .modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.instruction-modal-container .completion-icon {
  color: #28a745;
  width: 60px;
  height: 60px;
}

.instruction-modal-container .completion-icon svg {
  width: 100%;
  height: 100%;
}

.instruction-modal-container h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #2d2d2d;
}

.instruction-modal-container .instructions-content {
  background-color: #f7f7fa;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  margin-top: 16px;
}

.instruction-modal-container .instructions-content h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.instruction-modal-container ul {
  list-style-position: inside;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.instruction-modal-container ul li::marker {
  color: var(--point-color);
}

.instruction-modal-container .modal-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
}

.instruction-modal-container .modal-buttons button.confirm-btn {
  width: 100%;
  max-width: 200px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
  background-color: var(--point-color);
  color: #fff;
}

.instruction-modal-container .modal-buttons button.confirm-btn:hover {
  background-color: #6241ea;
}