/* MEDIGEO · NANUGEO · EDUGEO 공용 셀프 견적 (2026-12-05 개편)
   왼쪽 = 샘플 · 오른쪽 = 구성 · 옵션 · 문의 입력. 세 사이트가 같은 파일을 쓰고 색만 data-brand 로 갈린다.
   단위는 px 만 쓴다(사이트마다 html 글자 크기 기준이 다르다). 인라인 style 0. */
.sq-wrap {
  --sq-bg: #ffffff;
  --sq-soft: #f4f7f5;
  --sq-line: #e3e8e5;
  --sq-ink: #10241c;
  --sq-mut: #5e6b65;
  --sq-accent: #0e6a4e;
  --sq-accent-soft: #eaf5f0;
  --sq-on-accent: #ffffff;
  --sq-err: #b3261e;
  position: relative;
  color: var(--sq-ink);
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  word-break: keep-all;
}
.sq-wrap[data-brand='edugeo'] {
  --sq-soft: #faf5f0;
  --sq-line: #ece4dc;
  --sq-ink: #2a1a10;
  --sq-mut: #6b5f57;
  --sq-accent: #c9500f;
  --sq-accent-soft: #fff3ea;
}
.sq-wrap[data-brand='medigeo'] {
  --sq-bg: #0d1322;
  --sq-soft: #141c30;
  --sq-line: rgba(255, 255, 255, 0.14);
  --sq-ink: #f4f7ff;
  --sq-mut: rgba(244, 247, 255, 0.7);
  --sq-accent: #5a93ff;
  --sq-accent-soft: rgba(39, 102, 248, 0.2);
  --sq-on-accent: #06101f;
  --sq-err: #ff8a80;
}
.sq-wrap *,
.sq-wrap *::before,
.sq-wrap *::after {
  box-sizing: border-box;
}
.sq-wrap button,
.sq-wrap input,
.sq-wrap textarea {
  font: inherit;
  color: inherit;
}
.sq-wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sq-wrap p {
  margin: 0;
}
.sq-wrap :focus-visible {
  outline: 2px solid var(--sq-accent);
  outline-offset: 2px;
}

.sq-status {
  padding: 48px 16px;
  text-align: center;
  color: var(--sq-mut);
}
.sq-status .sq-more-btn {
  margin-top: 14px;
}
.sq-status-link {
  display: inline-block;
  margin: 14px 0 0 12px;
  color: var(--sq-accent);
  text-decoration: underline;
}

/* 품목 탭 */
.sq-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.sq-tabs[data-count='3'] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sq-tab {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--sq-line);
  border-radius: 14px;
  background: var(--sq-bg);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sq-tab:hover {
  border-color: var(--sq-accent);
}
.sq-tab.is-active {
  background: var(--sq-accent);
  border-color: var(--sq-accent);
  color: var(--sq-on-accent);
}
.sq-tab-name {
  font-size: 16px;
  font-weight: 700;
}
.sq-tab-meta {
  font-size: 12px;
  opacity: 0.75;
}
.sq-cat-desc {
  margin-top: 12px !important;
  font-size: 14px;
  color: var(--sq-mut);
}

/* 2단 */
.sq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.sq-samples-col {
  min-width: 0;
}
.sq-side {
  position: sticky;
  top: 96px;
  scroll-margin-top: 96px;
}
/* 스크롤은 상자 안에서 — 스크롤바가 둥근 상자 밖으로 나가지 않게 한다 */
.sq-side > .sq-card {
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.sq-card {
  padding: 20px;
  border: 1px solid var(--sq-line);
  border-radius: 18px;
  background: var(--sq-bg);
}
.sq-h {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sq-ink);
}
.sq-sub {
  margin-top: 4px !important;
  font-size: 14px;
  color: var(--sq-mut);
}
.sq-empty {
  margin-top: 16px !important;
  padding: 24px 16px;
  border: 1px solid var(--sq-line);
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--sq-mut);
}

/* 분야 칩 */
.sq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.sq-chip {
  appearance: none;
  padding: 6px 12px;
  border: 1px solid var(--sq-line);
  border-radius: 999px;
  background: var(--sq-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--sq-mut);
  cursor: pointer;
}
.sq-chip:hover {
  border-color: var(--sq-accent);
  color: var(--sq-ink);
}
.sq-chip.is-active {
  background: var(--sq-accent);
  border-color: var(--sq-accent);
  color: var(--sq-on-accent);
}
.sq-chip-more {
  border-style: dashed;
}

/* 샘플 카드 */
.sq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px !important;
}
.sq-sample {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sq-line);
  border-radius: 14px;
  background: var(--sq-bg);
  transition: border-color 0.15s ease;
}
.sq-sample:hover {
  border-color: var(--sq-accent);
}
.sq-sample.is-selected {
  border-color: var(--sq-accent);
  box-shadow: 0 0 0 2px var(--sq-accent);
}
.sq-sample-btn {
  appearance: none;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.sq-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sq-soft);
  font-size: 12px;
  color: var(--sq-mut);
}
.sq-thumb.is-banner {
  aspect-ratio: 1 / 1;
}
.sq-thumb.is-detail {
  aspect-ratio: 3 / 4;
}
.sq-thumb.is-ppt {
  aspect-ratio: 16 / 9;
}
.sq-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.sq-thumb.is-banner img {
  object-fit: contain;
  padding: 8px;
}
.sq-picked {
  position: absolute;
  top: 8px;
  left: 8px;
  display: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sq-accent);
  font-size: 11px;
  font-weight: 700;
  color: var(--sq-on-accent);
}
.sq-sample.is-selected .sq-picked {
  display: inline-block;
}
.sq-sample-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
}
.sq-sample-field {
  font-size: 11px;
  font-weight: 600;
  color: var(--sq-mut);
}
.sq-sample-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sq-ink);
}
.sq-preview {
  display: block;
  padding: 8px 12px;
  border-top: 1px solid var(--sq-line);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--sq-mut);
  text-decoration: none;
}
.sq-preview:hover {
  background: var(--sq-soft);
  color: var(--sq-ink);
}
.sq-more-wrap {
  margin-top: 20px;
  text-align: center;
}
.sq-more-btn {
  appearance: none;
  padding: 10px 20px;
  border: 1px solid var(--sq-line);
  border-radius: 999px;
  background: var(--sq-bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--sq-ink);
  cursor: pointer;
}
.sq-more-btn:hover {
  border-color: var(--sq-accent);
}

/* 오른쪽: 선택한 샘플 */
.sq-picked-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--sq-soft);
}
.sq-picked-thumb {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sq-bg);
}
.sq-picked-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.sq-picked-thumb.is-broken img {
  display: none;
}
.sq-picked-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.sq-picked-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sq-mut);
}
.sq-picked-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.sq-picked-clear {
  appearance: none;
  flex: none;
  padding: 4px;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--sq-mut);
  text-decoration: underline;
  cursor: pointer;
}
.sq-picked-none {
  font-size: 13px;
  color: var(--sq-mut);
}

/* 선택 항목 */
.sq-fs {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}
.sq-legend {
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--sq-ink);
}
.sq-help {
  margin-top: 4px !important;
  font-size: 12px;
  color: var(--sq-mut);
}
.sq-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--sq-line);
  border-radius: 12px;
  background: var(--sq-bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sq-choice:hover {
  border-color: var(--sq-accent);
}
.sq-choice.is-on {
  border-color: var(--sq-accent);
  background: var(--sq-accent-soft);
}
.sq-choice input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--sq-accent);
}
.sq-choice-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.sq-choice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
}
.sq-choice-title {
  font-size: 14px;
  font-weight: 700;
}
.sq-choice-price {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sq-choice-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--sq-mut);
}
.sq-includes {
  margin-top: 8px !important;
}
.sq-includes li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.6;
}
.sq-includes li::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sq-accent);
}

/* 수량 */
.sq-qty {
  margin-top: 22px;
}
.sq-qty-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.sq-qty-unit {
  font-size: 12px;
  color: var(--sq-mut);
}
.sq-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.sq-qty-step {
  appearance: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sq-line);
  border-radius: 50%;
  background: var(--sq-bg);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.sq-qty-step:disabled {
  opacity: 0.4;
  cursor: default;
}
.sq-qty-input {
  width: 76px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--sq-line);
  border-radius: 10px;
  background: var(--sq-bg);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* 예상 금액 */
.sq-sum {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--sq-line);
  border-radius: 14px;
  background: var(--sq-soft);
}
.sq-sum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sq-vat {
  font-size: 11px;
  font-weight: 600;
  color: var(--sq-mut);
}
.sq-lines {
  margin-top: 10px !important;
}
.sq-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 13px;
  color: var(--sq-mut);
}
.sq-line strong {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sq-ink);
}
.sq-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sq-line);
  font-size: 14px;
  font-weight: 700;
}
.sq-total-val {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--sq-accent);
}
.sq-lines-monthly {
  padding-top: 8px;
  border-top: 1px solid var(--sq-line);
}
.sq-total-monthly {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 0;
}
.sq-total-monthly strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.sq-note {
  margin-top: 12px !important;
  font-size: 12px;
  color: var(--sq-mut);
}

/* 문의 입력 */
.sq-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sq-line);
}
.sq-field {
  margin-top: 12px;
}
.sq-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}
.sq-req {
  color: var(--sq-err);
}
.sq-input {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--sq-line);
  border-radius: 10px;
  background: var(--sq-bg);
  font-size: 14px;
}
.sq-input::placeholder {
  color: var(--sq-mut);
  opacity: 0.7;
}
.sq-textarea {
  resize: vertical;
}
.sq-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--sq-mut);
  cursor: pointer;
}
.sq-consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--sq-accent);
}
.sq-consent a {
  color: inherit;
  text-decoration: underline;
}
.sq-submit {
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sq-accent);
  font-size: 15px;
  font-weight: 700;
  color: var(--sq-on-accent);
  cursor: pointer;
}
.sq-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.sq-msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.sq-msg.is-err {
  border: 1px solid var(--sq-err);
  color: var(--sq-err);
}
.sq-msg.is-ok {
  border: 1px solid var(--sq-accent);
  background: var(--sq-accent-soft);
  color: var(--sq-ink);
}

/* 모바일 하단 바 */
.sq-bar {
  display: none;
}

@media (max-width: 1080px) {
  .sq-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
  .sq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .sq-tabs,
  .sq-tabs[data-count='3'] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sq-side {
    position: static;
  }
  .sq-side > .sq-card {
    max-height: none;
    overflow: visible;
  }
  .sq-wrap {
    padding-bottom: 76px;
  }
  .sq-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* 오른쪽 아래 퀵메뉴(문의 · TOP 버튼)와 겹치지 않게 오른쪽을 비운다 */
    padding: 10px 76px 10px 16px;
    border-top: 1px solid var(--sq-line);
    background: var(--sq-bg);
  }
  .sq-bar-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .sq-bar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: var(--sq-mut);
  }
  .sq-bar-total {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    color: var(--sq-accent);
  }
  .sq-bar-btn {
    flex: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--sq-accent);
    font-size: 14px;
    font-weight: 700;
    color: var(--sq-on-accent);
    text-decoration: none;
  }
}
@media (max-width: 480px) {
  .sq-grid {
    gap: 10px;
  }
  .sq-card {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sq-wrap * {
    transition: none !important;
  }
}
