/* 견적문의 (views/html/contact.php) — 문의하기.html 디자인. 사이트 공통 스타일과 충돌하지 않게 .inq- 접두사, 리셋은 .inq-wrap 안으로만 */
.inq-wrap {
  --navy: #1b2a4a;
  --navy-2: #2c3e63;
  --ink: #222;
  --ink-2: #555;
  --ink-3: #8b8f99;
  --line: #dfe2e8;
  --line-soft: #eceef2;
  --bg-soft: #f4f6f9;
  --sel-bg: #eef2fa;
  --danger: #d9342b;
  --r: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 144px 24px 120px;
  /* 80px 고정 헤더 + 64px */
  box-sizing: border-box;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

.inq-wrap *,
.inq-wrap *::before,
.inq-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.inq-wrap a {
  color: inherit;
  text-decoration: none;
}

/* :where()로 우선순위를 낮춰 .inq-btn 등 개별 색상이 이기게 함 */
.inq-wrap :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

.inq-wrap :focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.inq-wrap fieldset {
  border: 0;
  min-width: 0;
}

.inq-wrap .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.inq-head {
  margin-bottom: 56px;
}

.inq-head h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy);
}

.inq-head p {
  color: var(--ink-3);
  margin-top: 8px;
  font-size: 15px;
}

/* 단계 제목 */
.inq-sec {
  margin-bottom: 40px;
}

.inq-sec-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.inq-sec-h h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.inq-sec-h small {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 2px;
}

.inq-sec.hide {
  display: none;
}

/* 아이콘 카드 */
.inq-cards {
  display: grid;
  gap: 12px;
}

.inq-cards.c5 {
  grid-template-columns: repeat(5, 1fr);
}

.inq-card {
  position: relative;
}

.inq-card input {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.inq-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: center;
  padding: 0 8px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.inq-card label svg {
  width: 34px;
  height: 34px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inq-card input:hover+label {
  border-color: var(--navy-2);
}

.inq-card input:focus-visible+label {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.inq-card input:checked+label {
  border-color: var(--navy);
  background: var(--sel-bg);
  box-shadow: 0 0 0 1px var(--navy) inset;
  color: var(--navy);
}

.inq-card label::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s, transform .15s;
}

.inq-card input:checked+label::after {
  opacity: 1;
  transform: scale(1);
}

/* 테이블형 입력 */
.inq-box {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 24px;
}

.inq-row {
  display: grid;
  grid-template-columns: minmax(96px, max-content) 1fr minmax(96px, max-content) 1fr;
  gap: 12px 20px;
  align-items: center;
  padding: 8px 0;
}

.inq-row+.inq-row {
  border-top: 1px solid var(--line-soft);
}

.inq-row.one {
  grid-template-columns: minmax(96px, max-content) 1fr;
}

.inq-lb {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.inq-lb .req {
  color: var(--danger);
  margin-left: 3px;
}

.inq-ctl input[type=text],
.inq-ctl input[type=tel],
.inq-ctl input[type=email],
.inq-ctl input[type=url],
.inq-ctl select,
.inq-ctl textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  transition: border-color .15s;
}

.inq-ctl input:hover,
.inq-ctl select:hover,
.inq-ctl textarea:hover {
  border-color: var(--ink-3);
}

.inq-ctl input:focus,
.inq-ctl select:focus,
.inq-ctl textarea:focus {
  border-color: var(--navy);
  outline: 0;
}

.inq-ctl input::placeholder,
.inq-ctl textarea::placeholder {
  color: #b3b7c0;
}

.inq-ctl select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23222' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.inq-ctl.tel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inq-ctl.tel select {
  width: 84px;
  flex: none;
}

.inq-ctl.tel input {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.inq-ctl.tel .dash {
  color: var(--ink-3);
}

.inq-ctl .err {
  display: none;
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
}

.inq-ctl.invalid input,
.inq-ctl.invalid textarea {
  border-color: var(--danger);
}

.inq-ctl.invalid .err {
  display: block;
}

/* 문의내용 */
.inq-ta {
  position: relative;
}

.inq-ta textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  resize: vertical;
  font-size: 14px;
  line-height: 1.6;
}

.inq-ta textarea:focus {
  border-color: var(--navy);
  outline: 0;
}

.inq-ta .cnt {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 12px;
  color: var(--ink-3);
}

/* 파일 */
.inq-drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  background: var(--bg-soft);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.inq-drop:hover,
.inq-drop.over {
  border-color: var(--navy);
  background: var(--sel-bg);
}

.inq-drop svg {
  width: 36px;
  height: 36px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.inq-drop b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.inq-drop span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
}

/* 스팸 */
.inq-spam {
  display: flex;
  align-items: center;
  gap: 20px;
}

.inq-spam .code {
  min-width: 110px;
  display: flex;
  align-items: center;
  user-select: none;
}

.inq-spam .code img {
  display: block;
  height: 25px;
}

.inq-spam input[type=text] {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}

.inq-spam input[type=text]:focus {
  border-color: var(--navy);
  outline: 0;
}

/* 개인정보 */
.inq-terms {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  max-height: 120px;
  overflow: auto;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
}

.inq-terms ul {
  margin-top: 6px;
  padding-left: 16px;
}

.inq-terms b {
  color: var(--ink);
}

.inq-agree {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  font-size: 14px;
}

.inq-agree label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.inq-agree input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

/* 버튼 */
.inq-submit {
  margin-top: 8px;
}

.inq-btn {
  width: 100%;
  height: 64px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--r);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: background .15s;
}

.inq-btn:hover {
  background: var(--navy-2);
}

.inq-btn svg {
  width: 28px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inq-submit p {
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 14px;
}

/* 완료 화면 */
.inq-done {
  display: none;
  text-align: center;
  padding: 100px 0;
}

.inq-done.on {
  display: block;
}

.inq-done h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  margin-bottom: 12px;
}

.inq-done p {
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  .inq-wrap * {
    transition: none !important;
  }
}

@media (max-width: 840px) {
  .inq-cards.c5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .inq-row {
    grid-template-columns: minmax(96px, max-content) 1fr;
  }
}

@media (max-width: 560px) {
  .inq-wrap {
    padding: 112px 16px 80px;
  }

  .inq-head h1 {
    font-size: 28px;
  }

  .inq-cards.c5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .inq-box {
    padding: 4px 16px;
  }

  .inq-row,
  .inq-row.one {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }

  .inq-spam {
    flex-wrap: wrap;
  }

  .inq-spam .code {
    width: 100%;
  }

  .inq-btn {
    font-size: 17px;
    height: 56px;
  }
}