* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "GmarketSansMedium", sans-serif;
  background-color: #fff;
  line-height: 1.6;
}

@font-face {
  font-family: "GmarketSansMedium";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

.eventiro-body {
  margin: 0;
  padding: 0 0 100px 0;
}

.eventiro-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .eventiro-body {
    padding: 0;
  }
  .eventiro-layout {
    max-width: none;
  }
}

/* 이미지 */
.eventiro-images {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.eventiro-layout .eventiro-images img,
.eventiro-layout .eventiro-images video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

@media (min-width: 768px) {
  .eventiro-images img {
    border-radius: 12px 12px 0 0;
  }
}

/* 완료 페이지 */
.eventiro-complete {
  margin: 0 auto;
  max-width: 768px;
}

.eventiro-complete img {
  width: 100%;
}

/* 스크롤 박스 */
.eventiro-scroll-wrapper {
  width: 100%;
  height: 15vw;
  max-height: 200px;
  min-height: 130px;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eventiro-scroll-box {
  width: 70%;
  height: 80%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #fff;
}

.eventiro-scroll-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: eventiro-scroll-up 10s linear infinite;
}

.eventiro-scroll-item {
  width: 100%;
  white-space: nowrap;
  border-bottom: 1px solid #ccc;
  font-size: clamp(12px, 3vw, 20px);
  padding: 1%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

@keyframes eventiro-scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* 폼 스타일 */
.eventiro-layout .eventiroForm {
  font-family: "GmarketSansMedium", sans-serif;
  width: 100%;
  max-width: 600px;
  margin: 15px auto;
}

.eventiro-layout .input-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
}

.eventiro-layout .input-user,
.eventiro-layout .input-contact {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: transparent;
  border: 2px solid #e8ecf0;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 12px;
  gap: 12px;
  transition: border-color 0.2s ease;
}

@media (min-width: 768px) {
  .eventiro-layout .input-user,
  .eventiro-layout .input-contact {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
}

.eventiro-layout .input-user label,
.eventiro-layout .input-contact label {
  color: #555;
  font-weight: 700;
  width: 100%;
  text-align: left;
  font-size: clamp(14px, 3.5vw, 16px);
  margin-bottom: 5px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .eventiro-layout .input-user label,
  .eventiro-layout .input-contact label {
    width: 25%;
    margin-bottom: 0;
    margin-right: 15px;
  }
}

.eventiro-layout .input-user input,
.eventiro-layout .input-contact input {
  background: #f7f9fb;
  border: none;
  border-bottom: 2px solid #d0d7de;
  font-size: clamp(15px, 3.8vw, 17px);
  height: 48px;
  outline: none;
  padding: 12px 10px 10px 10px;
  text-align: left;
  width: 100%;
  border-radius: 0;
  color: #2c3e50;
  font-family: "GmarketSansMedium", sans-serif;
  transition: all 0.25s ease;
}

.eventiro-layout .input-user input:focus,
.eventiro-layout .input-contact input:focus {
  background: #ffffff;
  border-bottom-color: #007bff;
}

@media (min-width: 768px) {
  .eventiro-layout .input-user input,
  .eventiro-layout .input-contact input {
    height: 45px;
  }
}

.eventiro-layout .input-user input::placeholder,
.eventiro-layout .input-contact input::placeholder {
  color: #b0b0b0;
  opacity: 1;
}

.eventiro-layout .phone-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .eventiro-layout .phone-wrap {
    flex-wrap: nowrap;
  }
}

.eventiro-layout .phone-wrap input {
  text-align: center;
  background: #f7f9fb;
  border: none;
  border-bottom: 2px solid #d0d7de;
  font-size: clamp(15px, 3.8vw, 17px);
  height: 48px;
  outline: none;
  border-radius: 0;
  font-family: "GmarketSansMedium", sans-serif;
  transition: all 0.25s ease;
  flex: 1;
  min-width: 80px;
}

.eventiro-layout .phone-wrap input:focus {
  background: #ffffff;
  border-bottom-color: #007bff;
}

.eventiro-layout .phone-wrap input:first-child {
  background-color: #eef1f5;
  flex: 0 0 80px;
}

.eventiro-layout .phone-wrap input:nth-child(2),
.eventiro-layout .phone-wrap input:nth-child(3) {
  flex: 1;
  min-width: 100px;
}

@media (min-width: 768px) {
  .eventiro-layout .phone-wrap input {
    height: 45px;
  }

  .eventiro-layout .phone-wrap input:first-child {
    flex: 0 0 90px;
  }

  .eventiro-layout .phone-wrap input:nth-child(2),
  .eventiro-layout .phone-wrap input:nth-child(3) {
    flex: 1;
    min-width: 120px;
  }
}

/* 동의 영역 */
.eventiro-layout .consent-text {
  width: 100%;
  max-width: 600px;
  font-size: clamp(12px, 2.5vw, 14px);
  color: #666;
  font-family: "GmarketSansMedium", sans-serif;
  margin: 10px auto;
  text-align: center;
  line-height: 1.5;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .eventiro-layout .consent-text {
    font-size: 13px;
    text-align: left;
    padding: 0;
  }
}

.eventiro-layout .consent-area {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  text-align: left;
  margin: 25px auto;
  padding: 18px 20px;
  background-color: #fafbfc;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .eventiro-layout .consent-area {
    flex-wrap: nowrap;
    gap: 0;
  }
}

.eventiro-layout .consent-area label {
  cursor: pointer;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 500;
  text-align: left;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 767px) {
  .eventiro-layout .consent-area label br {
    display: block;
  }
}

@media (min-width: 768px) {
  .eventiro-layout .consent-area label br {
    display: none;
  }
}

.eventiro-layout .consent-area input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #007bff;
  cursor: pointer;
}

#toggle-detail {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0;
  font-size: clamp(9px, 1.5vw, 16px);
  font-weight: 700;
}

#detail-area {
  display: none;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: clamp(10px, 1.3vw, 13px);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 0 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1rem;
  background-color: #f9fafb;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
}

#detail-area.open {
  display: block;
  max-height: 400px;
  padding: 1rem;
}

/* 버튼 */
.eventiro-layout .btn-apply {
  width: 100%;
  max-width: 600px;
  background: white;
  border: none;
  padding: 0;
  cursor: pointer;
  margin: 30px auto 20px;
  overflow: hidden;
}

.eventiro-layout .btn-apply img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


/* 푸터 */
footer {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto 0;
}

.eventiro-layout footer img,
footer img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 3%;
  border-radius: 0;
}

@media (min-width: 768px) {
  footer img {
    border-radius: 0 0 12px 12px;
  }
}

/* 서비스 정보 */
.service-info {
  width: 100%;
  max-width: 600px;
  margin: 10px auto;
  padding: 0 20px;
}

.service-info p {
  font-size: clamp(11px, 2.4vw, 17px);
  color: #888;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-family: "GmarketSansMedium", sans-serif;
  white-space: nowrap;
}
