/* ═══════════════════════════════════════════════════════════════
   문의폼 견적 빌더 모듈 (2026-07-18 전면 리라이트)
   배경: inquiry.css 위 오버라이드 누적으로 스타일 스파게티화 → Luna 지시로 재작성.
   원칙:
     · 이 파일 하나가 빌더(.ll-bx) 스타일의 유일한 소스 — !important 금지
     · 타입 스케일 4단계 고정: 18/800(섹션) · 14/700(항목·가격) · 12.5/500(설명) · 11.5/600(라벨)
     · 색: 잉크 #1d2021 · 본문회색 #8a8d94 · 라벨회색 #a6a8ae · 라인 #e9e7e1 · 라임 #cfff24
   마크업: template-parts/inquiry-modal.php 의 .ll-bx 블록 (칩 + 패널)
═══════════════════════════════════════════════════════════════ */

/* ── 서비스 카드 (선택) ───────────────────────────────────────
   초기 화면을 채우는 주인공 — 아이콘 + 이름 + 설명의 카드 2열.
   (칩으로 축소했다가 첫 화면이 비어 보이는 문제로 카드형 복원, 2026-07-20) */
.ll-bx-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 2px 0 0;
}
.ll-bx-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1.5px solid #e9e7e1;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.ll-bx-chip:hover { border-color: #c9c7c0; }
/* 네이티브 체크박스는 시각적으로 숨김 (기능·접근성 유지) */
.ll-bx-chip .ll-service-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.ll-bx-chip__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #1d2021;
    color: #cfff24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}
.ll-bx-chip__icon svg { width: 21px; height: 21px; }
.ll-bx-chip__txt { min-width: 0; flex: 1 1 auto; padding-right: 26px; }
.ll-bx-chip__txt b {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 800;
    color: #1d2021;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
.ll-bx-chip__txt small {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #8a8d94;
    margin-top: 3px;
    line-height: 1.5;
}
.ll-bx-chip__soon {
    font-size: 10px;
    font-weight: 700;
    color: #a6a8ae;
    background: #f1efe9;
    border-radius: 99px;
    padding: 3px 8px;
}
/* 선택 틱 — 구성요소 카드와 동일한 문법 (우상단 라임 사각) */
.ll-bx-chip__tick {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 21px;
    height: 21px;
    border: 1.6px solid #d6d4cd;
    border-radius: 7px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.ll-bx-chip__tick::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid #1d2021;
    border-bottom: 2px solid #1d2021;
    transform: rotate(-45deg) translateY(-1px);
    opacity: 0;
    transition: opacity 0.12s;
}
.ll-bx-chip.is-on { border-color: #1d2021; }
.ll-bx-chip.is-on .ll-bx-chip__tick { background: #cfff24; border-color: #1d2021; }
.ll-bx-chip.is-on .ll-bx-chip__tick::after { opacity: 1; }

/* ── 패널 (서비스별 빌더) ───────────────────────────────────
   목업 원칙: 빌더 전체가 '하나의 흰 카드' 안에 담긴다.
   요소가 배경 위에 흩어져 보이던 어설픔의 원인 제거 (2026-07-20) */
.ll-bx-panel { display: none; }
.ll-bx-panel.is-on {
    display: block;
    margin-top: 14px;
    background: #fff;
    border: 1.5px solid #e9e7e1;
    border-radius: 18px;
    padding: 4px 22px 22px;
}
.ll-bx-panel + .ll-bx-panel.is-on { margin-top: 16px; }

/* 패널 헤더 — 카드의 타이틀 바 (서비스명 + 기본 포함 안내) */
.ll-bx-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 0 16px;
    border-bottom: 1px solid #efede7;
}
.ll-bx-head__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #1d2021;
    color: #cfff24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    flex: 0 0 auto;
}
.ll-bx-head__icon svg { width: 20px; height: 20px; }
.ll-bx-head__txt { min-width: 0; }
.ll-bx-head__txt b {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #1d2021;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.ll-bx-head__txt small {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #8a8d94;
    margin-top: 2px;
    line-height: 1.5;
}

/* ── 행 (페이지 스테퍼) ───────────────────────────────────── */
.ll-bx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #efede7;
}
.ll-bx-row__txt b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1d2021;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.ll-bx-row__txt small {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #8a8d94;
    margin-top: 3px;
    line-height: 1.5;
}
.ll-bx-stepper {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1.5px solid #e9e7e1;
    border-radius: 10px;
    padding: 3px;
    flex: 0 0 auto;
}
.ll-bx .ll-stp-btn {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: #f4f2ec;
    color: #1d2021;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ll-bx .ll-stp-btn:hover { background: #1d2021; color: #fff; }
.ll-bx-stepper__val {
    min-width: 44px;
    text-align: center;
}
.ll-bx-stepper__val b {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #1d2021;
    line-height: 1.1;
}
.ll-bx-stepper__val small {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    color: #a6a8ae;
    margin-top: 1px;
}

/* ── 존 라벨 ─────────────────────────────────────────────── */
.ll-bx-zone { padding: 18px 0 0; }
.ll-bx-zone + .ll-bx-zone { margin-top: 20px; border-top: 1px solid #efede7; }
.ll-bx-lbl {
    margin: 0 0 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #a6a8ae;
    letter-spacing: 0.04em;
}
.ll-bx-lbl span { margin-left: 8px; color: #c3c4c9; font-weight: 500; }

/* ── 구성 요소 그리드 (수량형, 2026-07-20) ───────────────────
   게시판·갤러리·문의폼 등은 있음/없음이 아니라 개수를 세는 항목이라
   -/+ 스테퍼로 변경. 개수만큼 견적에 가산. */
.ll-bx-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.ll-bx-comp {
    position: relative;
    padding: 11px 12px;
    border: 1.5px solid #e9e7e1;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.ll-bx-comp.is-on { border-color: #1d2021; }
.ll-bx-comp__info { padding-right: 2px; }
.ll-bx-comp b {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #1d2021;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.ll-bx-comp em {
    display: block;
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: #8a8d94;
    margin-top: 2px;
    line-height: 1.4;
}
/* 수량 컨트롤 — 페이지 스테퍼와 같은 문법의 축소판 */
.ll-bx-comp__ctrl {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 9px;
}
.ll-bx-comp .ll-comp-stp-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #e9e7e1;
    border-radius: 6px;
    background: #f9f8f5;
    color: #1d2021;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ll-bx-comp .ll-comp-stp-btn:hover { background: #1d2021; color: #fff; }
.ll-comp-stp-num {
    min-width: 22px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 800;
    color: #1d2021;
}
.ll-bx-comp__price {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #a6a8ae;
    letter-spacing: -0.01em;
    transition: color 0.15s;
}
.ll-bx-comp.is-on .ll-bx-comp__price { color: #1d2021; }

/* ── 주관식 ──────────────────────────────────────────────── */
.ll-bx-free textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e9e7e1;
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    min-height: 64px;
    resize: vertical;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #1d2021;
    line-height: 1.55;
    outline: none;
    transition: border-color 0.15s;
}
.ll-bx-free textarea::placeholder { color: #bcbdc3; }
.ll-bx-free textarea:focus { border-color: #1d2021; }
.ll-bx-note {
    margin: 9px 0 0;
    font-size: 11.5px;
    font-weight: 500;
    color: #a6a8ae;
    line-height: 1.5;
}
.ll-bx-note b { font-weight: 600; color: #6d7077; }

/* ── 준비중·폴백 안내 ─────────────────────────────────────── */
.ll-bx-soon {
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 1.5px dashed #ddd9d0;
    border-radius: 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: #8a8d94;
    line-height: 1.6;
}

/* ── 모바일 ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ll-bx-chips { grid-template-columns: 1fr; gap: 8px; }
    .ll-bx-chip { padding: 14px 16px; }
    .ll-bx-grid { grid-template-columns: 1fr; }
    .ll-bx-comp em { min-height: 0; }
    .ll-bx-row { flex-wrap: wrap; }
}
