/* 전체 적용 */
* {
  box-sizing: border-box;
  margin: 0 auto;
}
li {
  list-style: none;
}
body {
  background-color: #333;
}
#wrap {
  max-width: 818px;
  background-color: #F5F5F5;
}
.hospital-box {
  position: relative;
}
.hospital-img {
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  width: 100%;
  top: 50%;
  left: 32%;
  transform: translate(-32%, -50%);
}
.hospital-img img {
  max-width: 24%;            /* 최대 너비 설정 */
  height: auto;                /* 비율 유지 */
  object-fit: contain;         /* 이미지 왜곡 방지 */
}
.scroll-wrapper {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.scroll-wrapper img {
  display: inline-block;
  margin-right: 10px; /* 이미지 간 간격 */
}

/* 애니메이션 정의 */
@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

section {
  position: relative;
  /* border: 1px solid red; */
}

.sec1 {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 58%;
  left: 50%;
  width: 90%;
  height: 50%;
  /* border: 1px solid red; */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
/* 
.sec1 img {
  width: 48%;
  cursor: pointer;
}
*/
.sec1 label {
	position: relative;
	width: 48%;
	cursor: pointer;
}
.sec1 label::after{
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: no-repeat 50% 50%/cover;
}
.sec1 label:nth-child(1):has(input[type=radio]:checked)::after {background-image: url(./select-on-1.png);}
.sec1 label:nth-child(2):has(input[type=radio]:checked)::after {background-image: url(./select-on-2.png);}
.sec1 label:nth-child(3):has(input[type=radio]:checked)::after {background-image: url(./select-on-3.png);}
.sec1 label:nth-child(4):has(input[type=radio]:checked)::after {background-image: url(./select-on-4.png);}
.sec1 label input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	opacity: 0;
}

.sec2 {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 52%;
  left: 50%;
  width: 80%;
  height: 46%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ip1 {
  width: 100%;
  height: 34%;
  display: flex;
  justify-content: space-between;
}
.ip1 input {
  width: 49%;
  height: 90%;
  text-align: center;
  font-size: 30px;
  border-radius: 8px;
}
.ip2 {
  width: 100%;
  height: 34%;
}
.ip2 input {
  width: 100%;
  height: 90%;
  text-align: center;
  font-size: 30px;
  border-radius: 8px;
}
.ip3 {
  height: 36%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* border: 1px solid red; */
}
.chk {
  font-size: 25px;
  text-align: center;
}
.chk label input {
  width: 25px;
  height: 25px;
}
.chk label {
  cursor: pointer;
}
.chk span {
  cursor: pointer;
  font-weight: bold;
}
.btnimg {
  border: none;
  outline: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  margin-top: 6%
}

@media screen and (max-width:818px) {
  body {
    background-color: #fff;
  }
  .chk {
    font-size: 3vw;
  }
  .chk label input {
    width: 3vw;
    height: 3vw;
  }
  .sec2 input {
    border-radius: 1.5vw;
    font-size: 3.7vw;
  }
  .ip1 input,
  .ip2 input{
    font-size: 3.7vw;
  }

}