/* 견적 요청 (products/quote.html) — 2026-11-25
   바탕은 흰색. 본문 전체가 교육 및 A/S, 기술 역량 페이지와 같은 4칸 격자(칸 간격 --edu-gap) 위에 놓인다.
   견적 대상과 모델은 하나씩만 고른다(둥근 선택 표시). 모든 줄이 같은 규칙이다: 첫 칸에 이름, 둘째부터 넷째 칸에 내용.
   견적 대상 카드 여섯 장(3 x 2)도 둘째부터 넷째 칸에 한 칸에 하나씩 놓여, 카드와 그 아래 입력 칸의 좌우 끝이 같은 세로선에 맞는다. 카드 상자는 견적 대상에만 쓰고 나머지는 선과 여백으로 구분한다.
   화면 동작은 assets/js/quote-page.js. */

.qt-sec { padding-top: 0; border-top: 0; }
.qt-crumb { padding: 18px 0 0; }
.qt-sec .plt-head { margin-top: clamp(36px, 4vw, 56px); margin-bottom: clamp(36px, 4vw, 56px); align-items: end; }
.qt-sec .plt-title { font-size: clamp(34px, 3.6vw, 52px); }
.qt-tel { font-size: 15px; color: var(--text-muted); }
.qt-tel a { color: var(--navy); font-weight: 800; text-decoration: none; }
.qt-tel a:hover { color: var(--blue); }

/* ---- 공통 격자 ---- */
.qt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--edu-gap); row-gap: 0; }
.qt-row > * { min-width: 0; }
.qt-form { margin: 0; }

/* ---- 견적 대상 ---- */
.qt-pick { padding-top: 28px; border-top: 2px solid var(--navy); }
.qt-pick-head { grid-column: 1; }
.qt-pick-body { grid-column: 2 / -1; display: grid; grid-template-columns: subgrid; }
.qt-pick-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: #000; letter-spacing: -0.01em; line-height: 1.45; }
.qt-pick-head h2 em, .qt-field label em, .qt-agree em { font-style: normal; color: var(--accent-red); margin-left: 3px; }
.qt-pick-head p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--text-muted); word-break: keep-all; text-wrap: pretty; }
.qt-cards { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 0; margin: 0; padding: 0; list-style: none; }
/* 카드 한 장은 세 줄(사진, 이름, 설명)을 차지하고 같은 줄의 카드끼리 줄 높이를 나눠 쓴다: 이름이 두 줄이 되는 카드가 있어도 이름과 설명의 위 끝이 맞는다 */
.qt-cards > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; }
.qt-cards > li:nth-child(n+4) { margin-top: var(--edu-gap); }
.qt-card { position: relative; display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; border: 1.5px solid var(--gray-line); border-radius: 14px; background: #fff; overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .25s; }
.qt-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qt-card-media { position: relative; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.qt-card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
.qt-card-media.is-fit img { object-fit: contain; padding: 10px 0; box-sizing: border-box; }
.qt-card-name { position: relative; display: block; padding: 16px 52px 0 18px; border-top: 1px solid var(--gray-line); font-size: 16.5px; font-weight: 800; color: #000; letter-spacing: -0.01em; line-height: 1.4; word-break: keep-all; transition: background-color .2s; }
.qt-card-name sub { line-height: 0; }
.qt-card-desc { display: block; padding: 4px 18px 18px; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); word-break: keep-all; transition: background-color .2s; }
.qt-check { position: absolute; right: 18px; top: 17px; width: 22px; height: 22px; border: 1.5px solid #b9bcc9; border-radius: 50%; background: #fff; box-sizing: border-box; transition: border-color .18s; }
.qt-check::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.qt-card:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(22, 32, 74, .08); }
.qt-card:hover .qt-card-media img { transform: scale(1.04); }
.qt-card:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.qt-card:has(input:checked) .qt-card-name, .qt-card:has(input:checked) .qt-card-desc { background: var(--ice-pale); }
.qt-card:has(input:checked) .qt-check { border-color: var(--navy); }
.qt-card:has(input:checked) .qt-check::after { transform: scale(1); }
.qt-card:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.qt-pick.is-bad .qt-pick-head p { color: var(--accent-red); font-weight: 700; }
.qt-note { grid-column: 1 / -1; display: none; margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--navy); word-break: keep-all; }
.qt-note.is-on { display: block; }
.qt-note b { font-weight: 800; }

/* ---- 질문 묶음: 첫 칸에 이름, 둘째부터 넷째 칸에 입력 칸 ---- */
.qt-groups { margin-top: clamp(40px, 4.2vw, 60px); border-bottom: 1px solid rgba(22, 32, 74, .2); }
.qt-group { padding: 30px 0 34px; border-top: 1px solid rgba(22, 32, 74, .2); }
.qt-group.is-off { display: none; }
.qt-group.is-in { animation: qtIn .45s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes qtIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qt-ghead { grid-column: 1; }
.qt-ghead h3 { margin: 0; font-size: 18px; font-weight: 800; color: #000; letter-spacing: -0.01em; line-height: 1.45; word-break: keep-all; }
.qt-ghead h3 sub { line-height: 0; }
.qt-ghead p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--text-muted); word-break: keep-all; text-wrap: pretty; }
.qt-ghead a { color: var(--navy); font-weight: 800; text-decoration: none; white-space: nowrap; }
.qt-ghead a i { display: inline-block; margin-left: 5px; font-style: normal; color: var(--accent-red); transition: transform .3s cubic-bezier(.22, .61, .36, 1); }
.qt-ghead a:hover { color: var(--blue); }
.qt-ghead a:hover i { transform: translateX(4px); }
.qt-ghead .qt-links { display: grid; gap: 4px; margin-top: 10px; font-size: 14px; }
.qt-fields { grid-column: 2 / -1; display: grid; grid-template-columns: subgrid; row-gap: 18px; align-content: start; }
.qt-field { display: grid; grid-template-rows: auto auto; row-gap: 7px; align-content: start; }
.qt-field.is-2 { grid-column: span 2; }
.qt-field.is-3 { grid-column: 1 / -1; }
.qt-field label sub, .qt-lbl sub { line-height: 0; }
.qt-field > label, .qt-field > .qt-lbl { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.45; }
.qt-field > .qt-lbl small { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.qt-field input[type="text"], .qt-field input[type="tel"], .qt-field input[type="email"], .qt-field select, .qt-field textarea { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1.5px solid var(--gray-line); border-radius: 10px; background-color: #fff; color: var(--text-dark); font: inherit; font-size: 15px; line-height: 1.4; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.qt-field textarea { height: auto; min-height: 132px; padding: 13px 14px; line-height: 1.6; resize: vertical; }
.qt-field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316204a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; cursor: pointer; }
.qt-field input::placeholder, .qt-field textarea::placeholder { color: #9a9db0; }
.qt-field input:hover, .qt-field select:hover, .qt-field textarea:hover { border-color: #b9bcc9; }
.qt-field input:focus, .qt-field select:focus, .qt-field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(62, 104, 179, .18); }
.qt-field.is-bad input, .qt-field.is-bad select, .qt-field.is-bad textarea { border-color: var(--accent-red); }
.qt-err { display: none; font-size: 12.5px; line-height: 1.4; color: var(--accent-red); }
.is-bad > .qt-err { display: block; }

/* 고르는 칸: 입력 칸과 같은 세 칸에 맞춰 놓는다 */
.qt-field.is-opts { grid-column: 1 / -1; grid-template-columns: subgrid; }
.qt-field.is-opts > * { grid-column: 1 / -1; }
.qt-opts { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; row-gap: 10px; margin: 0; padding: 0; list-style: none; }
.qt-opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px; border: 1.5px solid var(--gray-line); border-radius: 10px; background: #fff; box-sizing: border-box; cursor: pointer; transition: border-color .2s, background-color .2s; }
.qt-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qt-opt i { position: relative; flex: none; width: 18px; height: 18px; border: 1.5px solid #b9bcc9; border-radius: 50%; background: #fff; box-sizing: border-box; transition: border-color .18s; }
.qt-opt i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.qt-opt b { min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--text-dark); line-height: 1.35; word-break: keep-all; }
.qt-opt b sub { line-height: 0; }
.qt-opt small { margin-left: auto; padding-left: 8px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.qt-opt:hover { border-color: var(--blue); }
.qt-opt:has(input:checked) { border-color: var(--navy); background: var(--ice-pale); }
.qt-opt:has(input:checked) i { border-color: var(--navy); }
.qt-opt:has(input:checked) i::after { transform: scale(1); }
.qt-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 아직 고른 항목이 없을 때 */
.qt-empty .qt-fields p { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-muted); word-break: keep-all; }

/* ---- 보내기 ---- */
.qt-send { padding: 30px 0 0; }
.qt-sum h3 { margin: 0; font-size: 18px; font-weight: 800; color: #000; letter-spacing: -0.01em; line-height: 1.45; }
.qt-sum ul { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.55; color: var(--navy); font-weight: 700; }
.qt-sum li { position: relative; padding-left: 14px; word-break: keep-all; }
.qt-sum li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-red); }
.qt-sum li.is-none { padding-left: 0; color: var(--text-muted); font-weight: 500; }
.qt-sum li.is-none::before { display: none; }
.qt-sum sub { line-height: 0; }
.qt-agree { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: start; cursor: pointer; }
.qt-agree input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.qt-agree i { position: relative; width: 22px; height: 22px; border: 1.5px solid #b9bcc9; border-radius: 6px; background: #fff; box-sizing: border-box; transition: background-color .18s, border-color .18s; }
.qt-agree i::after { content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(0); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.qt-agree:has(input:checked) i { background: var(--navy); border-color: var(--navy); }
.qt-agree:has(input:checked) i::after { transform: rotate(45deg) scale(1); }
.qt-agree:has(input:focus-visible) i { outline: 2px solid var(--blue); outline-offset: 2px; }
.qt-agree.is-bad i { border-color: var(--accent-red); }
.qt-agree .qt-err { margin-top: 6px; font-weight: 700; }
.qt-agree.is-bad .qt-err { display: block; }
.qt-agree b { display: block; font-size: 15px; font-weight: 800; color: var(--text-dark); line-height: 1.47; }
.qt-agree small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--text-muted); word-break: keep-all; }
.qt-submit { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; margin-top: 8px; }
.qt-submit .cta-btn { justify-content: center; height: 54px; padding: 0 24px; border: 0; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.qt-submit .cta-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.qt-submit p { grid-column: 2 / -1; margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-muted); word-break: keep-all; text-wrap: pretty; }
.qt-msg { grid-column: 1 / -1; display: none; margin-top: 6px; padding: 16px 18px; border: 1px solid var(--navy); border-radius: 10px; background: var(--ice-pale); font-size: 14.5px; line-height: 1.7; color: var(--navy); word-break: keep-all; }
.qt-msg b { display: block; font-weight: 800; }
.qt-msg.is-on { display: block; }
.qt-msg.is-err { border-color: var(--accent-red); background: #fdf1f2; color: #8f1420; }
.qt-msg a, .qt-msg .qt-copy { color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.qt-msg .qt-copy { display: inline; padding: 0; border: 0; background: none; cursor: pointer; }
.qt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- 접수 완료 창 ---- */
.qt-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(13, 19, 51, .55); opacity: 0; transition: opacity .25s; }
.qt-modal[hidden] { display: none; }
.qt-modal.is-on { opacity: 1; }
.qt-modal-box { width: min(440px, 100%); padding: 36px 32px 32px; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(13, 19, 51, .28); text-align: center; transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.22, .61, .36, 1); }
.qt-modal.is-on .qt-modal-box { transform: none; }
.qt-modal-mark { position: relative; display: block; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); }
.qt-modal-mark::after { content: ""; position: absolute; left: 19px; top: 12px; width: 11px; height: 21px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.qt-modal-box h2 { margin: 0; font-size: 21px; font-weight: 800; color: #000; letter-spacing: -0.01em; line-height: 1.4; word-break: keep-all; }
.qt-modal-box p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-body); word-break: keep-all; }
.qt-modal-box .cta-btn { justify-content: center; width: 100%; height: 52px; margin-top: 26px; padding: 0 24px; border: 0; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
body.qt-lock { overflow: hidden; }
html.qt-lock { overflow: hidden; scrollbar-gutter: stable; } /* 2026-11-28: 이 페이지는 html 이 스크롤을 맡으므로 html 도 잠근다 */

/* ---- 마지막 안내(다른 페이지와 같은 규칙) ---- */
/* 양식 섹션과 바탕색이 같으므로 섹션 사이의 가는 선(.bls-sec 기본값)을 그대로 둔다 */
#qt-final .cmp-h2 { font-size: clamp(30px, 2.9vw, 42px); }
#qt-final .cmp-h2 span { white-space: nowrap; }
#qt-final .cmp-lead p { word-break: keep-all; text-wrap: pretty; }
@media (min-width: 1101px) { #qt-final .bls-final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--edu-gap); } } /* 오른쪽 글의 왼쪽 끝을 본문 격자 3번째 칸에 맞춘다 */

@media (max-width: 1100px) {
  /* 두 칸 격자: 카드는 두 장씩, 묶음 이름은 위에, 입력 칸은 두 칸 */
  .qt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qt-cards > li:nth-child(n+3) { margin-top: var(--edu-gap); }
  .qt-ghead, .qt-pick-head { grid-column: 1 / -1; margin-bottom: 18px; }
  .qt-pick-body { grid-column: 1 / -1; }
  .qt-ghead .qt-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .qt-fields { grid-column: 1 / -1; }
  .qt-field.is-2 { grid-column: 1 / -1; }
  .qt-sum { grid-column: 1 / -1; margin-bottom: 18px; }
  .qt-submit p { grid-column: 2; }
}
@media (max-width: 640px) {
  .qt-sec .plt-head { margin-top: 28px; margin-bottom: 28px; }
  .qt-cards > li:nth-child(n+3) { margin-top: 14px; }
  .qt-row { column-gap: 14px; }
  .qt-card-name { padding: 12px 38px 0 12px; font-size: 14.5px; }
  .qt-card-desc { padding: 3px 12px 14px; font-size: 12.5px; }
  .qt-check { right: 10px; top: 12px; width: 20px; height: 20px; }
  .qt-fields { grid-template-columns: minmax(0, 1fr); }
  .qt-field input[type="text"], .qt-field input[type="tel"], .qt-field input[type="email"], .qt-field select, .qt-field textarea { font-size: 16px; } /* iOS 는 16px 미만 칸을 누르면 화면을 확대한다 */
  .qt-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; row-gap: 8px; }
  .qt-opts.is-wide { grid-template-columns: minmax(0, 1fr); }
  .qt-opt { gap: 8px; padding: 6px 10px; }
  .qt-opt b { font-size: 13.5px; }
  .qt-group { padding: 26px 0 28px; }
  .qt-submit { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .qt-submit p { grid-column: 1; }
  .qt-submit .cta-btn { width: 100%; }
  #qt-final .cmp-h2 span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .qt-group.is-in { animation: none; }
  .qt-modal, .qt-modal-box { transition: none; }
  .qt-card, .qt-card-media img, .qt-check, .qt-check::after, .qt-card-name, .qt-card-desc, .qt-opt i::after, .qt-agree i::after, .qt-ghead a i { transition: none; }
}

/* 터치 화면은 어느 폭이든 입력 글자를 16px 이상으로 해 누를 때 화면이 확대되지 않게 한다 (2026-11-28) */
@media (pointer: coarse) {
  .qt-field input[type="text"], .qt-field input[type="tel"], .qt-field input[type="email"], .qt-field select, .qt-field textarea { font-size: 16px; }
}

/* 사업자등록증 첨부 칸 (2026-12-04: 사업자등록번호 입력 대신 파일을 받는다). 높이는 옆의 입력 칸(48px)과 같다 */
.qt-file { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; height: 48px; padding: 0 14px 0 5.5px; border: 1.5px dashed #b9bcc9; border-radius: 10px; background: #fff; box-sizing: border-box; cursor: pointer; transition: border-color .2s, background-color .2s; }
.qt-file input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.qt-file-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 7px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.qt-file-name { min-width: 0; font-size: 14.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-file.has-file { border-style: solid; border-color: var(--navy); background: var(--ice-pale); }
.qt-file.has-file .qt-file-name { color: var(--text-dark); font-weight: 700; }
.qt-file:hover, .qt-file.is-over { border-color: var(--blue); }
.qt-file.is-over { border-style: solid; background: var(--ice-pale); }
.qt-file:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.qt-field.is-bad .qt-file { border-color: var(--accent-red); }
@media (prefers-reduced-motion: reduce) { .qt-file { transition: none; } }
.qt-file.is-over .qt-file-name { color: var(--navy); font-weight: 700; }
.qt-field > label small { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.qt-fnote { margin: 3px 0 0; font-size: 13px; line-height: 1.65; color: var(--text-muted); word-break: keep-all; text-wrap: pretty; }
.qt-fnote a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.qt-fnote a:hover { color: var(--navy); }
.qt-field[hidden] { display: none; }
/* 끌어다 놓기 안내는 터치 화면(끌어다 놓을 수 없음)에서 숨긴다. 좁은 화면에서는 이름표 옆의 안내를 다음 줄로 내린다 */
@media (max-width: 640px) {
  .qt-drag { display: none; }
  .qt-field > label small { display: block; margin: 2px 0 0; }
}
