@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;
}

* {
  box-sizing: border-box;
}

/* ── 레이아웃 ── */
.style-504.dentaleventhub-layout {
  max-width: 768px;
  padding: 0;
  margin: 0 auto;
}

.style-504 .dentaleventhub-images {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.style-504 .content-wrapper {
  position: relative;
  z-index: 1;
  padding: 400px 20px 20px;
}

/* ── 질문 박스 ── */
.style-504 .area-question-box {
  background-color: #fff;
  padding: 5%;
  border-radius: 30px;
}

.style-504 .title-box {
  display: flex;
  gap: 10px;
  margin-bottom: 5%;
}

.style-504 .title-box h3 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: normal;
}

.style-504 .area-question-box span {
  background: linear-gradient(135deg, #01A5FB, #00A4FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(45px, 5vw, 60px);
  font-weight: bold;
  display: inline-block;
  line-height: 1.1;
}

.style-504 .area-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.style-504 .area-options .option-btn {
  padding: 20px 10px;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ── 하단 영역 ── */
.style-504 .bottom-wrapper {
  padding: 20px;
  background-color: #fff;
}

.style-504.dentaleventhub-layout .dentaleventhubForm {
  background: #ffffff;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
}

/* ── 입력 폼 ── */
.style-504 .input-wrap,
.style-504 .dentaleventhub-input-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
}

.style-504 .input-user,
.style-504 .input-contact {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 1px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  gap: 12px;
}

.style-504 .input-user label,
.style-504 .input-contact label {
  color: #333;
  font-weight: 600;
  width: 100%;
  text-align: left;
  font-size: clamp(16px, 4vw, 18px);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.style-504 .input-user input,
.style-504 .input-contact input {
  background: white;
  border: 1px solid #e0e0e0;
  font-size: clamp(14px, 3.5vw, 16px);
  height: 50px;
  outline: none;
  padding: 0 15px;
  text-align: left;
  width: 100%;
  border-radius: 10px;
  color: #333;
  font-family: "GmarketSansMedium", sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.style-504 .input-user input::placeholder,
.style-504 .input-contact input::placeholder {
  color: #b0b0b0;
  opacity: 1;
}

.style-504 .phone-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.style-504 .phone-wrap input {
  text-align: center;
  background: white;
  border: 1px solid #e0e0e0;
  font-size: clamp(14px, 3.5vw, 16px);
  height: 50px;
  outline: none;
  border-radius: 10px;
  font-family: "GmarketSansMedium", sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  flex: 1;
  min-width: 80px;
}

.style-504 .phone-wrap input:first-child {
  background-color: #f0f0f0;
  flex: 0 0 80px;
}

.style-504 .phone-wrap input:nth-child(2),
.style-504 .phone-wrap input:nth-child(3) {
  flex: 1;
  min-width: 100px;
}

/* ── 동의 영역 ── */
.style-504.dentaleventhub-layout .consent-area {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 20px;
  border-radius: 4px;
  text-align: left;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto;
  background-color: #f8f9fa;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

.style-504.dentaleventhub-layout .consent-area label {
  font-size: 16px;
}

.style-504 .dentaleventhub-layout .consent-area input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* ── 상세/토글 ── */
.style-504 #toggle-detail {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
}

.style-504 #detail-area {
  display: none;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  line-height: 1.4;
  margin-bottom: 1rem;
  padding: 0 1rem;
  max-width: 100%;
  font-size: 14px;
}

.style-504 #detail-area.open {
  display: block;
  max-height: 400px;
  padding: 1rem;
}

/* ── 서비스 안내 ── */
.style-504 .service-info {
  background: white;
  color: #495057;
  padding: 15px;
  border: none;
  border-radius: 4px 4px 0 0;
  max-width: 100%;
  margin: 0;
}

.style-504 .service-info p {
  font-size: clamp(11px, 3vw, 16px);
  color: #666;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
  margin: 0;
  white-space: normal;
}

/* ── 신청 버튼 ── */
.style-504.dentaleventhub-layout .btn-apply {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 10px 0;
  box-sizing: border-box;
  cursor: pointer;
  background: white;
  border: none;
}

.style-504.dentaleventhub-layout .btn-apply img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── 푸터 ── */
.style-504 .dentaleventhub-footer {
  width: 100%;
  background-color: #000;
  color: white;
  text-align: center;
  padding: 10px 25px;
  line-height: 1.4;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 0;
  margin: 0;
}

.style-504 .dentaleventhub-footer .footer-content {
  width: 100%;
  max-width: 100%;
}

.style-504 .dentaleventhub-footer .footer-content p {
  margin: 0 0 4px 0;
  font-size: 12px;
}

.style-504 .dentaleventhub-footer .footer-content p:last-child {
  margin: 0;
}

/* ── 반응형: 모바일 ── */
@media (max-width: 575px) {
  .style-504 .content-wrapper {
    padding: 210px 10px 0px;
  }
  .style-504 .area-question-box span {
    font-size: 36px;
  }
  .style-504 .title-box h3 {
    font-size: 18px;
  }
  .style-504 .area-options {
    grid-template-columns: 1fr;
  }
  .style-504 .area-options .option-btn {
    font-size: 16px;
  }
  .style-504.dentaleventhub-layout .dentaleventhubForm {
    padding: 10px;
  }
  .style-504.dentaleventhub-layout .consent-area {
    padding: 10px;
  }
  .style-504.dentaleventhub-layout .consent-area label {
    font-size: 13px;
  }
  .style-504 .service-info p {
    font-size: clamp(10px, 3vw, 15px);
  }
}

@media screen and (max-width: 480px) {
  .style-504 .dentaleventhub-footer {
    padding: 8px 15px;
    min-height: 50px;
  }
  .style-504 .dentaleventhub-footer .footer-content p {
    font-size: 10px;
  }
}

@media screen and (max-width: 360px) {
  .style-504 .dentaleventhub-footer {
    padding: 6px 10px;
    min-height: 45px;
  }
  .style-504 .dentaleventhub-footer .footer-content p {
    font-size: 9px;
    line-height: 1.3;
  }
}

/* ── 반응형: PC ── */
@media (min-width: 768px) {
  .style-504.dentaleventhub-layout .input-user,
  .style-504.dentaleventhub-layout .input-contact {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
  }

  .style-504.dentaleventhub-layout .input-user label,
  .style-504.dentaleventhub-layout .input-contact label {
    width: 25%;
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }

  .style-504.dentaleventhub-layout .input-user input {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .style-504.dentaleventhub-layout .input-contact .phone-wrap {
    flex: 1;
    min-width: 0;
  }
}
