.modal {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease, background-color 0.3s ease, visibility 0.3s ease;
}

.modal.open {
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 454px;
  width: calc(100% - 32px);
  max-height: 90vh;
  padding: 24px 24px 32px 24px;
  background-color: white;
  border-radius: 12px;
  transform: scale(0.8);
  opacity: 0;
  overflow-y: auto;
  transition: transform 0.3s ease, opacity 0.6s ease;
}
.modal-content .form {
  padding-top: 32px;
  border-top: 1px solid #E9E9EA;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-content .input, .modal-content .textarea {
  width: 100%;
}
.modal-content .input-wrapper .input {
  margin-top: 4px;
}
.modal-content label span {
  color: #FF5656;
}
.modal-content input[type=checkbox]:checked + label::before {
  background-color: #1582E7;
  border-color: #1582E7;
}
.modal-content .privacy-text {
  color: #64666E;
}
.modal-content a {
  color: #1582E7;
}

.modal.open .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
}
.modal-close svg {
  width: 16px;
  height: 16px;
  fill: #212530;
  transition: ease 0.3s;
}
.modal-close:hover {
  cursor: pointer;
}
.modal-close:hover svg {
  fill: #1582E7;
}

.modal-title {
  margin-bottom: 24px;
  text-align: center;
}

.modal-submit {
  margin: 24px 0;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 24px;
  }
  .modal-content .form {
    padding-top: 24px;
    gap: 12px;
  }
  .modal-submit {
    margin: 16px 0;
  }
}
@media (max-width: 480px) {
  .modal-content {
    max-width: 100vw;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
}
.tour-tip-wrapper {
  margin: 8px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tip-svg {
  flex: 0 0 auto;
  position: relative;
  width: 40px;
  height: 40px;
  background: #E8F2FD;
  border-radius: 8px;
}
.tip-svg svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 20px;
  fill: #1582E7;
}

.tour-tip {
  color: #64666E;
}

.tour-time-wrapper .tour-time-btn {
  display: block;
}
.tour-time-wrapper .select-wrapper {
  display: none;
}
.tour-time-wrapper.active .tour-time-btn {
  display: none;
}
.tour-time-wrapper.active .select-wrapper {
  display: flex;
}

.select-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tour-time-btn {
  padding: 8px 12px;
  cursor: pointer;
}

.tour-time-wrapper:has(~ .tour-time-wrapper) .tour-time-btn {
  margin-bottom: 8px;
}

.time-close {
  cursor: pointer;
}
.time-close svg {
  width: 16px;
  height: 16px;
  fill: #212530;
  transition: ease 0.3s;
}
.time-close:hover svg {
  fill: #1582E7;
}

.tour-time-wrapper ~ .tour-time-wrapper .tour-time-btn {
  pointer-events: none;
  color: #D9D9D9;
}

.tour-time-wrapper.active + .tour-time-wrapper .tour-time-btn {
  pointer-events: auto;
  color: #212530;
}

.tour-slider-date {
  position: relative;
  max-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
}

.slider-date {
  width: 100%;
  margin: 0 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.tour-day {
  width: 92px;
  height: 92px;
  padding: 20px;
  background: white;
  border: 1px solid #E9E9EA;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}
.tour-day:not(:last-child) {
  margin-right: 8px;
}
.tour-day.selected {
  background: #E8F2FD;
  border: 1px solid #1582E7;
}

.tour-date {
  color: #4D5159;
}

.slider-arrow {
  cursor: pointer;
}
.slider-arrow svg {
  width: 13px;
  height: 13px;
  fill: #212530;
}
.slider-arrow:first-child svg {
  transform: rotate(180deg);
}