@charset "UTF-8";
/* =============================================================
   quote.css
   견적문의(/quote-inquiry) 전용. common.css 의 .quote-inquiry__* 위에 얹는다.
   컬러(#1075D5 → #63A8EA), radius 999px, 흰 텍스트 등 기존 값을 그대로 승계한다.
   ============================================================= */

/* -------------------------------------------------------------
   1. 선택 항목 그룹
   ------------------------------------------------------------- */
.qi-group {
  width: 100%;
}

.qi-group__label {
  display: block;
  margin-bottom: 1.2rem;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.qi-group__label .qi-req {
  margin-left: 4px;
  color: #63A8EA;
  font-weight: 700;
}

/* -------------------------------------------------------------
   2. 칩(선택 버튼)
   라디오는 시각적으로만 숨기고 접근성은 유지한다.
   ------------------------------------------------------------- */
.qi-chips {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
}

.qi-chips input[type=radio] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qi-chips label {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.qi-chips label:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.qi-chips input[type=radio]:checked + label {
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
  background: -webkit-gradient(linear, left top, left bottom, from(#1075D5), to(#63A8EA));
  background: linear-gradient(to bottom, #1075D5, #63A8EA);
}

/* 키보드 탐색 시 초점 표시 (마우스 클릭에는 뜨지 않는다) */
.qi-chips input[type=radio]:focus-visible + label {
  outline: 2px solid #63A8EA;
  outline-offset: 2px;
}

/* -------------------------------------------------------------
   3. 개인정보 동의
   ------------------------------------------------------------- */
.qi-consent {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
  padding-top: 0.6rem;
}

.qi-consent input[type=checkbox] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qi-consent__label {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  cursor: pointer;
  -webkit-transition: color 0.25s ease;
  transition: color 0.25s ease;
}

.qi-consent__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  background: transparent;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

/* 체크 표시 */
.qi-consent__label::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  -webkit-transform: translateY(-60%) rotate(45deg) scale(0);
          transform: translateY(-60%) rotate(45deg) scale(0);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}

/* reset.css 의 * { color: black } 때문에 중첩 요소는 색을 상속받지 못한다.
   [필수] 표기는 강조 색으로 명시한다. */
.qi-consent__label strong {
  color: #63A8EA;
  font-weight: 700;
}

.qi-consent input[type=checkbox]:checked + .qi-consent__label {
  color: #ffffff;
}

.qi-consent input[type=checkbox]:checked + .qi-consent__label::before {
  border-color: transparent;
  background: -webkit-gradient(linear, left top, left bottom, from(#1075D5), to(#63A8EA));
  background: linear-gradient(to bottom, #1075D5, #63A8EA);
}

.qi-consent input[type=checkbox]:checked + .qi-consent__label::after {
  -webkit-transform: translateY(-60%) rotate(45deg) scale(1);
          transform: translateY(-60%) rotate(45deg) scale(1);
}

.qi-consent input[type=checkbox]:focus-visible + .qi-consent__label::before {
  outline: 2px solid #63A8EA;
  outline-offset: 2px;
}

.qi-consent__more {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-transition: color 0.25s ease;
  transition: color 0.25s ease;
}

.qi-consent__more:hover {
  color: #ffffff;
}

/* -------------------------------------------------------------
   4. 구분선 — 필수 입력과 선택 항목 사이
   ------------------------------------------------------------- */
.qi-divider {
  width: 100%;
  height: 1px;
  margin: 0.6rem 0;
  background: rgba(255, 255, 255, 0.12);
}

.qi-divider__text {
  display: block;
  margin-bottom: 1.4rem;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

/* =============================================================
   반응형 — 기존 breakpoint(1024px / 768px) 준수
   ============================================================= */
@media (max-width: 1024px) {
  .qi-chips {
    gap: 8px;
  }
  .qi-chips label {
    padding: 9px 15px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .qi-group__label,
  .qi-consent__label,
  .qi-divider__text {
    font-size: 14px;
  }
  .qi-chips label {
    padding: 8px 14px;
    font-size: 13px;
    white-space: normal;
  }
  .qi-consent__more {
    font-size: 13px;
  }
}
