.titleCtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* sec 01 */

section.sec01 {
  background-image: url(/public/images/inquiry-bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

form {
  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.accordionTitle {
  display: flex;
  padding: 24px 40px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: var(--br-10);
  background: var(--l-1);

  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.accordionTitle:hover {
  transform: translateY(-5%);
}
.accordionTitle p {
  font-size: var(--fs-30);
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 42px */
}
.accordionTitle img {
  height: auto;
  aspect-ratio: 1/1;
}

/* 처음엔 내용 숨김 */
.accordion .accordionContent {
  display: none;
}

/* 열렸을 때 보여주기 */
.accordion.is-open .accordionContent {
  display: block;
}

/* 화살표 회전 애니메이션 */
.accordion .accordionTitle img {
  transition: transform 0.3s ease;
  transform: rotate(0deg); /* 기본: 가로 방향 (예: 아래 화살표) */
}

/* 닫힌 상태에서 세로로 보이게 하고 싶으면 여기 조정 */
.accordion:not(.is-open) .accordionTitle img {
  transform: rotate(90deg); /* 필요에 따라 90 / -90 / 180 조절 */
}

.accordionContent {
  display: flex;
  padding: 50px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;

  border-radius: var(--br-20);
  border: 1px solid var(--c-border);
  background: var(--c-white);
}

.accordionContent .form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 34px;
}

.form .row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.form .inputCtn {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.form label {
  color: var(--c-black-3);
  font-size: var(--fs-22);
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 30.8px */
}

.form label span.required {
  color: var(--c-blue-4);
  font-size: var(--fs-22);
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
}

.form input[type="text"],
.form input[type="email"] {
  width: 100%;
  display: flex;
  padding: 17px 20px;
  align-items: center;
  align-self: stretch;
  border: none;

  border-radius: var(--br-10);
  background: var(--c-bg-1);

  font-size: var(--fs-18);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}
.form input[type="text"]::placeholder,
.form input[type="email"]::placeholder,
.form .placeholder {
  color: var(--c-ph) !important;
  font-size: var(--fs-18);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}
.form select {
  width: 100%;
  display: flex;
  padding: 17px 40px 17px 20px;
  align-items: center;
  align-self: stretch;
  border: none;

  border-radius: var(--br-10);
  background: var(--c-bg-1);

  font-size: var(--fs-18);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  cursor: pointer;
}
/* placeholder처럼 보이게 */
.form select:invalid {
  color: var(--c-ph);
}

/* 실제 선택된 옵션 */
.form select:not(:invalid) {
  color: var(--c-black-1);
}

/* 옵션 색상 */
.form select option {
  color: var(--c-text);
}

.form select option[value=""] {
  color: var(--c-ph) !important;
}

/* 래퍼 & 커스텀 화살표 */
.form .selectWrap {
  width: 100%;
  position: relative;
}

/* 포커스 시 아웃라인 */
.form select:focus {
  outline: 2px solid var(--c-blue, #3372ff);
  outline-offset: 2px;
}

/* 드롭다운 안 옵션 스타일 (브라우저마다 약간 차이는 있음) */
.form select option {
  background: var(--c-bg-1);
  font-size: var(--fs-16);
}

.form .selectArrow {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  pointer-events: none; /* 클릭 방해하지 않게 */
  color: var(--c-ph); /* stroke에 currentColor로 먹음 */
}

.form textarea {
  display: flex;
  height: 200px;
  padding: 20px;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  border: none;

  background-color: var(--c-bg-1);
}

.optionGroup {
  width: 100%;
  display: flex;

  align-items: center;
  gap: 24px;
}

.optionGroup .option {
  width: 100%;
}

.option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__label {
  width: 100%;
  display: flex;
  padding: 17px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;

  border-radius: var(--br-10);
  background-color: var(--c-bg-1);

  cursor: pointer;

  transition: all 0.3s ease-in-out;
}

.option__labelText {
  color: var(--c-ph);
  font-size: var(--fs-18);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.option__label:hover {
  background-color: var(--c-blue-1);
  color: var(--c-white);
}
.option__label:hover .option__labelText {
  color: var(--c-white);
}

/* 선택된 상태 */
.option__input:checked + .option__label {
  background: var(--c-blue-1);
}
.option__input:checked + .option__label .option__labelText {
  color: var(--c-white);
}

/* 키보드 포커스 */
.option__input:focus-visible + .option__label {
  box-shadow: 0 0 0 3px rgba(0, 79, 255, 0.4);
  outline: none;
}

/* 비활성화 */
.option__input:disabled + .option__label,
.option__label--disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

/* 텍스트만 따로 필요하면 */
.option__labelText {
  white-space: nowrap;
}

form .inquiryButton {
  align-self: auto;
}
form .bottomCtn {
  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 80px;
}
form .termsOfUseCtn {
  width: 100%;
  display: flex;
  gap: 8px;
  justify-content: start;
  align-items: center;
}
form .termsOfUseCtn label {
  font-size: var(--fs-20-3);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: capitalize;
}
form .termsOfUseCtn label .bold {
  font-weight: 500;
}

/* 진짜 체크박스는 숨기기 */
.termsOfUseCtn input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 라벨에 가짜 체크박스 박스 만들기 */
.termsOfUseCtn label {
  position: relative;
  padding-left: 28px; /* 체크박스 들어갈 여백 */
  cursor: pointer;
}

/* 빈 체크박스 모양 */
.termsOfUseCtn label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  width: 20px;
  height: 20px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  aspect-ratio: 1/1;

  box-sizing: border-box;

  border-radius: 2px;
  border: 1px solid var(--c-black-1);
}

/* 체크되었을 때: 박스 배경 + 체크 SVG 넣기 */
.termsOfUseCtn input[type="checkbox"]:checked + label::before {
  border-color: var(--c-black-1);
  background-image: url("/public/icons/terms-of-use-check.svg"); /* 원하는 SVG 경로 */
  background-repeat: no-repeat;
  background-position: center;
}

@media all and (max-width: 1400px) {
  .optionGroup {
    flex-wrap: wrap;
  }
  .accordionTitle {
    padding: 24px 32px;
  }
  .accordionTitle img {
    height: 40px;
  }
  .accordionContent {
    padding: 40px;
  }
  form {
    gap: 60px;
  }
  form .bottomCtn {
    gap: 60px;
  }
  .optionGroup {
    gap: 20px;
  }

  .form input[type="text"],
  .form input[type="email"] {
    padding: 16px 20px;
  }
  .form select {
    padding: 16px 32px 16px 20px;
  }
}
@media all and (max-width: 1023px) {
  .accordionTitle {
    padding: 24px 28px;
  }
  .accordionTitle img {
    height: 30px;
  }
  .accordionContent {
    padding: 32px;
  }
  .optionGroup {
    gap: 16px;
  }
}
@media all and (max-width: 767px) {
  form {
    gap: 40px;
  }
  .accordionTitle {
    padding: 14.5px 16px;
  }
  .form .row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .accordionContent {
    padding: 24px;
  }
  form .bottomCtn {
    gap: 50px;
  }
  .form textarea {
    height: 150px;
    padding: 20px 16px;
  }
  .option__label {
    padding: 10px 17px;
  }
  .form input[type="text"],
  .form input[type="email"] {
    padding: 11px 16px;
  }
  .form select {
    padding: 11px 24px 11px 16px;
  }
  .titleCtn {
    gap: 12px;
  }
  section.sec01 {
    gap: 30px;
  }
  .accordion {
    gap: 12px;
  }
}
@media (max-width: 481px) {
  .accordionContent {
    padding: 24px 16px;
  }
  form {
    gap: 20px;
  }
  form .bottomCtn {
    gap: 40px;
  }
  .optionGroup {
    gap: 10px;
  }
}
