.required {
  position: relative;
}

.contact_wrapper h2 {
  margin-left: 0;
  margin-bottom: 2.125vw;
}

.article h2 {
  letter-spacing: 0;
  color: #ee001e;
  font-size: 6.66667vw;
}

.article h2 {
  background-color: transparent;
}
.article h3 {
  font-size: 22px;
}
.mwform-tel-field,
.mwform-zip-field {
  display: flex;
  align-items: center;
}

.contact_tel_detail {
  margin-bottom: 4.8vw;
}

.contact_tel_list dt {
  font-weight: bold;
}

.article dd {
  margin-left: 0;
}

.contact_tel_list p span.tel_no {
  font-size: 6.778vw;
  color: #ee001e;
  margin-right: 2vw;
}

.contact_tel_list p {
  font-size: 2.33333vw;
}

.mw_wp_form button {
  width: 20vw;
  margin: auto;
  display: block;
  border-radius: 3vw;
  background: #ee001e;
  color: #fff;
  transition: 0.3s;
  height: 50px;
  border: 0;
}

.mw_wp_form button:hover {
  background: #f44c61;
}

@media (min-width: 768px) {
  .contact_form_list dt.required:after {
    content: "*";
    position: absolute;
    right: 0;
    background: #fff;
    color: #ee001e;
    padding: 0 1vw;
    border: 1px solid #ee001e;
    border-radius: 2vw;
    font-weight: normal;
    font-size: .88vw;
    margin-top: 0.14vw;
  }

  .post_section_wrapper {
    margin: auto;
    width: 75vw;
    padding: 0 40px;
  }

  .article .post_section_wrapper h2,
  .article .post_section_wrapper h3 {
    margin-top: 4vw;
    margin-left: 0;
    margin-bottom: 2vw;
  }

  .article h2 {
    margin-left: 2.13542vw;
    font-size: 2.29167vw;
  }

  .contact_form_list {
    display: flex;
    flex-wrap: wrap;
  }

  .contact_form_list dt {
    padding: 34px 0;
    width: 220px;
  }

  .contact_form_list dt {
    font-weight: bold;
  }

  .contact_form_list dt,
  .contact_form_list dd {
    font-size: 20px;
  }


  .contact_form_list dd {
    padding-left: 3.02083vw;
    width: calc(100% - 11.45833vw);
    align-items: center;
    display: flex;
  }

  .contact_form_list dd {
    padding-left: 58px;
    width: calc(100% - 220px);
  }


  .contact_form_list dt,
  .contact_form_list dd {
    font-size: 20px;
  }

  .article .post_section_wrapper h3 {
    font-size: 1.6vw;
  }

  .article .post_section_wrapper h2,
  .article .post_section_wrapper h3 {
    margin-top: 4vw;
    margin-left: 0;
    margin-bottom: 2vw;
  }

  .contact_tel_list {
    display: flex;
    border-top: 4px solid #222;
    flex-wrap: wrap;
  }

  .contact_tel_list p {
    margin-bottom: 0;
  }
  .contact_tel_list dt {
    padding: 1.77083vw 0;
    width: 11.45833vw;
    justify-content: center;
  }

  .contact_tel_list dt,
  .contact_tel_list dd {
    display: inline-flex;
    border-bottom: 2px solid #dfe4e7;
    font-size: 1.04167vw;
  }

  .contact_tel_list dd {
    padding-left: 3.02083vw;
    width: calc(100% - 11.45833vw);
    align-items: center;
  }

  .contact_tel_list p span.tel_no {
    font-size: 1.778vw;
    margin-right: 2vw;
}

.article .post_section_wrapper p {
  font-size: 0.9375vw;
}
}

@media (min-width: 1920px) {
  .contact_form_list dt {
    padding: 34px 0;
    width: 220px;
  }

  .contact_form_list dt,
  .contact_form_list dd {
    font-size: 20px;
  }

  .contact_form_list dd {
    padding-left: 58px;
    width: calc(100% - 220px);
  }

  .contact_form_list dt,
  .contact_form_list dd {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .post_section_wrapper {
    padding: 0 1rem;
  }
  .page_content .post_section_wrapper > p, .article p {
    padding: 0;
  }
  h2.wp-block-heading {
    padding: 1rem 0;
  }
  h3.wp-block-heading {
    padding: 1rem 0;
    border-bottom: 3px solid #000;
  }
  .mw_wp_form button {
    margin: 0;
  }
}

/* KakaoTalk Inquiry Button */
.kakao_inquiry {
  margin: 2rem 0;
  text-align: left;
}

.btn-kakao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: #FEE500;
  color: #000000;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-kakao:hover {
  background-color: #F5DC00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #000000;
  text-decoration: none;
}

.btn-kakao:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .btn-kakao {
    padding: 14px 24px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
  }
}

/* reCAPTCHA v3 badge - 플로팅 버튼과 겹침 방지 */
.grecaptcha-badge {
  width: 70px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  left: 4px !important;
  right: unset !important;
}
.grecaptcha-badge:hover {
  width: 256px !important;
}

/* File upload styles */
.file-list {
  margin-top: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 5px;
}

.btn-remove-file {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
}

.btn-remove-file:hover {
  background: #c82333;
}
