@font-face {
  font-family: 'HakgyoansimWoojuR';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2307-2@1.0/HakgyoansimWoojuR.woff2')
    format('woff2');
  font-weight: normal;
  font-style: normal;
}

html {
  background: url('./background.png') no-repeat center center fixed;
  background-size: cover;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans KR', 'sans-serif';
  font-size: 18px;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #474747;
}

p {
  padding: 0;
  margin: 0;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

input,
select,
textarea {
  touch-action: manipulation; /* 터치 제스처 최소화 */
}

body {
  overscroll-behavior-y: contain; /* 스크롤 튐 방지 */
}

@media screen and (max-width: 767px) {
  #main {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  #contents {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #rightTop {
    width: 100%;
    height: 150px;
    background-image: url('./cloud.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    margin-top: -10%;
  }

  #main_top {
    width: 100%;
    height: 96px;
    background-image: url('./text1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin: 0 auto;
  }

  .form-wrapper {
    min-width: 60%;
    margin: 40px auto 20px;
    padding: 2vw 2vw 1vw 2vw;
    background-color: rgb(242 241 241 / 95%);
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    max-width: 90%;
  }

  .custom-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .form-group {
    display: flex;
    gap: 14px;
  }

  .form-group label {
    min-width: 58px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
  }

  input[type='text'],
  select {
    flex: 1;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.75rem;
    box-sizing: border-box;
  }

  .custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 33%;
  }

  .custom-dropdown input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    background-color: #fff;
  }

  .dropdown-options {
    display: none;
    position: absolute;
    z-index: 100;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dropdown-options li {
    padding: 10px;
    cursor: pointer;
    font-size: 0.75rem;
  }

  .dropdown-options li:hover {
    background-color: #f0f0f0;
  }

  input::placeholder {
    color: rgba(141, 134, 134, 0.95);
    opacity: 1;
  }

  input::-webkit-input-placeholder {
    color: rgba(141, 134, 134, 0.95);
  }

  input:-ms-input-placeholder {
    color: rgba(141, 134, 134, 0.95);
  }

  input::-moz-placeholder {
    color: rgba(141, 134, 134, 0.95);
    opacity: 1;
  }

  input:-moz-placeholder {
    color: rgba(141, 134, 134, 0.95);
    opacity: 1;
  }

  .contact-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .contact-group select,
  .contact-group input {
    flex: 1;
    /* min-width: 90px; */
  }

  .agreement-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px auto;
    gap: 7px;
  }

  .agreement-group label {
    font-size: 11px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
  }

  .agreement-group input[type='checkbox'] {
    transform: scale(1.3);
    accent-color: #39a14a;
  }

  .agreement-line {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .privacy-detail {
    background: white;
    padding: 10px 15px 10px 15px;
    border-radius: 12px;
    animation: slideDown 0.3s ease;
  }

  .privacy-detail p {
    color: #777;
    font-size: 1.05rem;
  }

  p.topDetail {
    text-align: center;
    color: grey;
    font-size: 0.7rem;
  }

  .middleDetail {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .bullet-list {
    list-style-type: disc;
    margin: 0;
    padding-left: 1.2em;
  }

  .bullet-list li {
    font-size: 0.8rem;
    color: #777;
  }

  .bullet-list-1 {
    list-style-type: disc;
    margin: 0;
    font-size: 0.8rem;
    color: #777;
  }

  .info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .info-label {
    flex: 0 0 100px;
    font-size: 0.8rem;
    color: #777;
  }

  .info-content {
    flex: 1;
    font-size: 0.8rem;
    color: #777;
  }

  .submit-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
  }

  #btnSend {
    width: 150px;
    cursor: pointer;
  }

  #footer {
    margin-top: auto;
  }

  #footer img {
    width: 100%;
    display: block;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 태블릿 (768px 이상) */
@media (min-width: 768px) {
  #main {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  #contents {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #rightTop {
    width: 100%;
    height: 260px;
    background-image: url('./cloud.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    margin-top: -10%;
  }

  #main_top {
    width: 100%;
    height: 160px;
    background-image: url('./text1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  .form-wrapper {
    width: 65%;
    margin: 40px auto 20px;
    padding: 2vw 2vw 1vw 2vw;
    background-color: rgb(242 241 241 / 95%);
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .custom-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .form-group {
    display: flex;
    gap: 14px;
  }

  .form-group label {
    min-width: 58px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
  }

  input[type='text'],
  select {
    flex: 1;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.8rem;
    box-sizing: border-box;
  }

  .custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 33%;
  }

  .custom-dropdown input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    background-color: #fff;
  }

  .dropdown-options {
    display: none;
    position: absolute;
    z-index: 100;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dropdown-options li {
    padding: 10px;
    cursor: pointer;
    font-size: 0.75rem;
  }

  .dropdown-options li:hover {
    background-color: #f0f0f0;
  }

  input::placeholder {
    color: rgba(141, 134, 134, 0.95);
    opacity: 1;
  }

  input::-webkit-input-placeholder {
    color: rgba(141, 134, 134, 0.95);
  }

  input:-ms-input-placeholder {
    color: rgba(141, 134, 134, 0.95);
  }

  input::-moz-placeholder {
    color: rgba(141, 134, 134, 0.95);
    opacity: 1;
  }

  input:-moz-placeholder {
    color: rgba(141, 134, 134, 0.95);
    opacity: 1;
  }

  .contact-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .contact-group select,
  .contact-group input {
    flex: 1;
    /* min-width: 90px; */
  }

  .agreement-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px auto;
    gap: 7px;
  }

  .agreement-group label {
    font-size: 13px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
  }

  .agreement-group input[type='checkbox'] {
    transform: scale(1.3);
    accent-color: #39a14a;
  }

  .agreement-line {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .privacy-detail {
    background: white;
    padding: 10px 15px 10px 15px;
    border-radius: 12px;
    animation: slideDown 0.3s ease;
  }

  .privacy-detail p {
    color: #777;
    font-size: 1.05rem;
  }

  p.topDetail {
    text-align: center;
    color: grey;
    font-size: 0.7rem;
  }

  .middleDetail {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .bullet-list {
    list-style-type: disc;
    margin: 0;
    padding-left: 1.2em;
  }

  .bullet-list li {
    font-size: 0.8rem;
    color: #777;
  }

  .bullet-list-1 {
    list-style-type: disc;
    margin: 0;
    font-size: 0.8rem;
    color: #777;
  }

  .info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .info-label {
    flex: 0 0 100px;
    font-size: 0.8rem;
    color: #777;
  }

  .info-content {
    flex: 1;
    font-size: 0.8rem;
    color: #777;
  }

  .submit-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px 0px;
  }

  #btnSend {
    width: 150px;
    cursor: pointer;
  }

  #footer {
    margin-top: auto;
  }

  #footer img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
  }
}

/* 데스크탑 (1024px 이상) */
@media (min-width: 1024px) {
  body {
    width: 80%;
    margin: 0 auto;
  }

  #main {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  #contents {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #rightTop {
    width: 100%;
    height: 320px;
    background-image: url('./cloud.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    margin-top: -10%;
  }

  #main_top {
    width: 100%;
    height: 215px;
    background-image: url('./text1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  .form-wrapper {
    width: 780px;
    margin: 20px auto 0px;
    padding: 2vw 2vw 1vw 2vw;
    background-color: rgb(242 241 241 / 95%);
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .custom-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .form-group {
    display: flex;
    gap: 14px;
  }

  .form-group label {
    min-width: 58px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
  }

  input[type='text'],
  select {
    flex: 1;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.8rem;
    box-sizing: border-box;
  }

  .custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 30%;
  }

  .custom-dropdown input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    background-color: #fff;
  }

  .dropdown-options {
    display: none;
    position: absolute;
    z-index: 100;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dropdown-options li {
    padding: 10px;
    cursor: pointer;
    font-size: 0.75rem;
  }

  .dropdown-options li:hover {
    background-color: #f0f0f0;
  }

  input::placeholder {
    color: rgba(141, 134, 134, 0.95);
    opacity: 1;
  }

  input::-webkit-input-placeholder {
    color: rgba(141, 134, 134, 0.95);
  }

  input:-ms-input-placeholder {
    color: rgba(141, 134, 134, 0.95);
  }

  input::-moz-placeholder {
    color: rgba(141, 134, 134, 0.95);
    opacity: 1;
  }

  input:-moz-placeholder {
    color: rgba(141, 134, 134, 0.95);
    opacity: 1;
  }

  .contact-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .contact-group select,
  .contact-group input {
    flex: 1;
    /* min-width: 90px; */
  }

  .agreement-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px auto;
    gap: 7px;
  }

  .agreement-group label {
    font-size: 13px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
  }

  .agreement-group input[type='checkbox'] {
    transform: scale(1.3);
    accent-color: #39a14a;
  }

  .agreement-line {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .privacy-detail {
    background: white;
    padding: 10px 15px 10px 15px;
    border-radius: 12px;
    animation: slideDown 0.3s ease;
  }

  .privacy-detail p {
    color: #777;
    font-size: 1.05rem;
  }

  p.topDetail {
    text-align: center;
    color: grey;
    font-size: 0.7rem;
  }

  .middleDetail {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .bullet-list {
    list-style-type: disc;
    margin: 0;
    padding-left: 1.2em;
  }

  .bullet-list li {
    font-size: 0.8rem;
    color: #777;
  }

  .bullet-list-1 {
    list-style-type: disc;
    margin: 0;
    font-size: 0.8rem;
    color: #777;
  }

  .info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .info-label {
    flex: 0 0 100px;
    font-size: 0.8rem;
    color: #777;
  }

  .info-content {
    flex: 1;
    font-size: 0.8rem;
    color: #777;
  }

  .submit-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px 0px;
  }

  #btnSend {
    width: 150px;
    cursor: pointer;
  }

  #footer {
    margin-top: auto;
  }

  #footer img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
  }
}
