/* contact */
:root {
  --contact-main-color: #155d89;
}
main#cantact {
}

.contactus_top {
  height: 30vh;
  width: 100%;
  background: var(--contact-main-color) url("/img/contactus_top.svg") left
    bottom no-repeat;
  background-size: auto;
}
.contactus_top img {
}

.contactus_title_area {
  height: auto;
  width: 100%;
  background-color: var(--contact-main-color);
}

.contact_copy {
  font-size: 1.3rem;
  padding-top: 1.5rem;
}

.contact_copy strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--contact-main-color);
  margin-bottom: 1rem;
}

.formmail_wrap {
  padding: 2rem 0;
}
.input_row {
  opacity: 0;
  transition: opacity 0.5s ease;
  height: 0;
  overflow: hidden;
  padding: 1em 0;
}

.input_row.visible {
  opacity: 1;
  height: auto;
}
#Content {
  resize: none;
  overflow-y: hidden; /* 처음엔 스크롤 숨김 */
  line-height: 1.5em;
  max-height: calc(1.5em * 10); /* 최대 10줄까지 */
  box-sizing: border-box;
  transition: height 0.2s ease;
}

/*  */
/* input 텍스트 필드 (라인 스타일) */
.input_row input[type="text"],
.input_row input[type="email"],
.input_row textarea {
  width: 100%;
  color: var(--contact-main-color);
  border: none;
  border-bottom: 2px solid #ccc;
  padding: 12px 8px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background-color: transparent;
}
.input_row input:focus,
.input_row textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--contact-main-color); /* 강조색 */
}

/* textarea 스타일 */
.input_row textarea {
  resize: none;
}

/* 라벨 공통 */
.input_row label {
  display: block;
  font-weight: 500;
  color: #777777;
  font-size: 0.9rem;
}

/* 라디오 버튼 스타일 (버튼처럼 보이게) */
.radio-label {
  display: inline-block !important;
  margin: 10px 8px 0px 0px;
  position: relative;
  cursor: pointer;
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 30px;
  transition: all 0.2s ease;
  user-select: none;
  background: #f9f9f9;
  font-size: 14px;
}
.radio-label input[type="radio"] {
  display: none;
}
.radio-label input[type="radio"]:checked + span,
.radio-label:has(input[type="radio"]:checked) {
  background-color: var(--contact-main-color);
  color: white;
  border-color: var(--contact-main-color);
}

/* 체크박스 */
.input_row label.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 1.1rem !important;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.checkbox-label input[type="checkbox"] {
  margin-right: 6px;
}

/* 버튼 */
.btn-primary {
  background-color: #2290b3;
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--contact-main-color);
}

/* 반응형 */
@media (max-width: 480px) {
  .radio-label {
    display: block;
    margin-bottom: 8px;
  }
}

/*볼뱅글뱅글*/

.rotation_ani_box {
  position: relative;
  width: 80%;
  margin: auto;
  background-color: aqua;
}

.ball {
  height: 45vw;
  max-height: 250px;
  max-width: 250px;
  width: 45vw;
  position: absolute;
  /* left: 50%; */
  bottom: 0;
}
.ball:before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  /* background: rgba( 0, 255, 0, .5);*/
  /* border-radius: 50%;*/
  /* margin-left: -50%; */
  /* margin-top: -50%; */
  left: -100%;
  animation: position 16s infinite cubic-bezier(0.25, 0, 0.75, 1),
    size 16s infinite cubic-bezier(0.25, 0, 0.75, 1);
}
.ball-1 {
}
.ball-1:before {
  animation-delay: 0s, 4s;
  opacity: 0;
  background-image: url("../img/c_cartoon-1.png");
  background-size: contain;
}
.ball-2 {
}
.ball-2:before {
  opacity: 0;
  animation-delay: 4s, 8s;
  background-image: url("../img/c_cartoon-2.png");
  background-size: contain;
}
.ball-3 {
}
.ball-3:before {
  opacity: 0;
  background-image: url("../img/c_cartoon-3.png");
  background-size: contain;
  animation-delay: 8s, 12s;
}
.ball-4 {
}
.ball-4:before {
  opacity: 0;
  background-image: url("../img/c_cartoon-4.png");
  background-size: contain;
  animation-delay: 12s, 16s;
}
.spinner {
  /* height: 50%; */
  /* width: 45%; */
  position: absolute;
  bottom: 0;
  left: 5%;
}
@keyframes position {
  10% {
    opacity: 1;
  }
  50% {
    left: 100%;
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
}
@keyframes size {
  50% {
    transform: scale(0.5, 0.5);
  }
}

/*  */
.agree_info {
  height: 80px;
  overflow-y: auto;
  padding: 12px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

#style-line::-webkit-scrollbar {
  width: 3px;
  /*background-color: #fff;*/
  /*스크롤바전체*/
}
#style-line::-webkit-scrollbar-track {
  /*-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);*/
  background-color: #c5c5c5;
  /*스크롤바빽그라운드*/
}
#style-line::-webkit-scrollbar-thumb {
  background-color: #222;
  border: none;
  /*스크롤버튼*/
}
