/* 고객 견적 공유 페이지 · Open Circle 브랜드 (견적서와 같은 밝은 종이 톤 하나로 고정) */
:root {
  --paper: #F7F4EF; --card: #FBF9F6; --linen: #EAE3D9; --tint: #F2EDE6;
  --line: #E2DBD1; --line-2: #D9D1C6;
  --ink: #3B3431; --sub: #6E655E; --taupe: #9A8F86; --beige: #CFC5B8;
  --magenta: #B3325F; --magenta-dk: #83203F; --magenta-soft: #E9D3DB; --pink: #E7A9BE;
  --f-en: 'Marcellus', 'Times New Roman', serif;
  --f-title: 'Nanum Myeongjo', 'AppleMyungjo', 'Batang', serif;
  --f-body: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.6;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
.en { font-family: var(--f-en); letter-spacing: .08em; }
.num { font-variant-numeric: tabular-nums; }
h1, h2 { font-family: var(--f-title); font-weight: 700; text-wrap: balance; margin: 0; }
button { font: inherit; cursor: pointer; }
.sh-in, .sh-main { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* 상단 */
[hidden] { display: none !important; }
a.brand { color: inherit; text-decoration: none; }
a.brand:hover { color: inherit; } /* hidden 속성이 display 지정에 덮이지 않게 (공개 페이지 공통) */
.sh-top { border-bottom: 1px solid var(--line); background: var(--paper); }
.sh-top .sh-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-word { display: flex; flex-direction: column; gap: 4.4px; font-family: var(--f-en); line-height: 1; }
.brand-word .b1 { font-size: 17px; letter-spacing: .14em; }
.brand-word .b2 { font-size: 5.8px; letter-spacing: .52em; }
.sh-meta { font-size: 13px; color: var(--sub); }
.sh-meta .en { letter-spacing: .12em; }

.sh-main { display: flex; flex-direction: column; gap: 64px; padding-block: 56px 72px; }
.sh-loading { color: var(--sub); text-align: center; padding: 80px 0; }
.sh-empty { text-align: center; padding: 72px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sh-empty h1 { font-size: 24px; }
.sh-empty p { color: var(--sub); margin: 0; }
.arc { width: 70px; height: 25px; display: block; overflow: visible; }

.lab { font-size: 12px; letter-spacing: .26em; color: var(--magenta); }

/* 히어로 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.hero-l { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.3; font-weight: 800; }
.hero h1 .dot { color: var(--taupe); font-weight: 400; }
.hero h1 .ev { font-weight: 700; }
.facts { margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--taupe); font-size: 13px; padding-top: 1px; }
.facts dd { margin: 0; }

.total-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 28px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 0 rgba(59, 52, 49, .04), 0 18px 40px -28px rgba(59, 52, 49, .35);
}
.total-card .k { font-size: 13px; color: var(--sub); }
.total-card .total { font-size: 34px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.total-card .total small { font-size: 18px; font-weight: 600; margin-left: 2px; }
.total-card .sub { font-size: 13px; color: var(--sub); }
#confirm-box { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.btn-confirm {
  width: 100%; border: 0; border-radius: 3px; padding: 15px 18px;
  background: var(--magenta); color: #FFFFFF; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: background .15s;
}
.btn-confirm:hover { background: var(--magenta-dk); }
.btn-confirm:disabled { opacity: .6; cursor: default; }
.btn-confirm:focus-visible, .link:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
#confirm-box .hint { font-size: 12px; color: var(--taupe); line-height: 1.5; }
.confirmed { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--tint); border-radius: 3px; border: 1px solid var(--magenta-soft); }
.confirmed svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--magenta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.confirmed span { display: flex; flex-direction: column; gap: 2px; }
.confirmed small { font-size: 12px; color: var(--sub); }
.ask { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.ask span { color: var(--taupe); }
.ask b { font-weight: 500; user-select: all; }
.link { background: none; border: 0; padding: 0; color: var(--magenta); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* 섹션 */
.block { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.bh { display: flex; flex-direction: column; gap: 6px; }
.bh h2 { font-size: 24px; }
.bh p { margin: 0; color: var(--sub); font-size: 14px; }
.fine { margin: 0; font-size: 12.5px; color: var(--taupe); }

/* 메뉴 */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.mcourse { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mcourse > .en { font-size: 11.5px; letter-spacing: .26em; color: var(--magenta); }
.mcourse ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.mcourse li { display: flex; flex-direction: column; gap: 1px; }
.mcourse li b { font-family: var(--f-title); font-weight: 700; font-size: 15.5px; }
.mcourse li .en { font-size: 11px; letter-spacing: .14em; color: var(--taupe); }

/* 스타일링 */
.sty-txt { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.sty-txt b { font-family: var(--f-title); font-size: 18px; }
.sty-txt p { margin: 0; color: var(--sub); font-size: 14px; }
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }

/* 요약 · 일정 */
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.tbl { overflow-x: auto; }
table.sum { width: 100%; border-collapse: collapse; font-size: 14px; border-top: 1px solid var(--ink); }
.sum td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sum .cat { color: var(--taupe); font-size: 12px; margin-right: 8px; }
.sum .q { color: var(--sub); text-align: right; padding-right: 16px; white-space: nowrap; }
.sum .a { text-align: right; white-space: nowrap; }
.sum tr.disc td { color: var(--magenta); }
.sum tr.sep td { border-top: 1px solid var(--line-2); color: var(--sub); }
.sum tr.tot td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 700; font-size: 15.5px; padding-top: 14px; }
.sched { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.sched li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sched .when { color: var(--magenta); font-weight: 600; }
.sched li.day { background: var(--tint); margin-inline: -12px; padding-inline: 12px; }

/* 하단 */
.sh-foot { border-top: 1px solid var(--line); }
.sh-foot .sh-in { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 36px 44px; font-size: 13px; color: var(--sub); text-align: center; }
.sh-foot .en { font-size: 10.5px; letter-spacing: .3em; color: var(--taupe); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: #FFFFFF; padding: 11px 18px; border-radius: 3px; font-size: 14px; max-width: calc(100% - 32px);
}
.toast[hidden] { display: none; }

@media (max-width: 900px) {
  .hero, .two { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 32px; }
  .two { gap: 56px; }
}
@media (max-width: 560px) {
  .sh-in, .sh-main { padding-inline: 16px; }
  .sh-main { gap: 52px; padding-block: 36px 56px; }
  .total-card { padding: 22px; }
  .total-card .total { font-size: 30px; }
  .facts div { grid-template-columns: 80px minmax(0, 1fr); }
}

/* 개인정보 처리방침 */
.doc { max-width: 860px; gap: 40px; }
.doc-head { display: flex; flex-direction: column; gap: 12px; }
.doc-head h1 { font-size: clamp(28px, 4vw, 36px); }
.doc-head p { margin: 0; color: var(--sub); }
.doc-sec { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); min-width: 0; }
.doc-sec h2 { font-size: 19px; display: flex; gap: 12px; align-items: baseline; }
.doc-sec h2 .no { font-family: var(--f-body); font-size: 13px; color: var(--magenta); font-weight: 700; min-width: 18px; }
.doc-sec p { margin: 0; font-size: 14.5px; }
.doc-sec ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.doc-t { width: 100%; border-collapse: collapse; font-size: 13.5px; display: block; overflow-x: auto; }
.doc-t th, .doc-t td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.doc-t th { background: var(--tint); font-weight: 600; white-space: nowrap; }
.doc-dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.doc-dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.doc-dl dt { color: var(--taupe); }
.doc-dl dd { margin: 0; }
.sh-foot a { color: var(--sub); display: inline-block; padding: 6px 0; }

/* 확인 증빙 양식 · 결제 버튼 */
.cf { display: flex; flex-direction: column; gap: 10px; }
.cf-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
.cf label span { display: block; font-size: 12px; color: var(--sub); margin-bottom: 3px; }
.cf input[type="text"] { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 3px; background: #FFFFFF; font: inherit; font-size: 16px; color: var(--ink); }
.cf input[type="text"]:focus { outline: none; border-color: var(--magenta); }
.cf-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--sub); line-height: 1.5; cursor: pointer; }
.cf-agree input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--magenta); flex: none; }
.btn-pay { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 600; }
.btn-pay small { font-weight: 400; font-size: 12px; color: var(--sub); }
.btn-pay:hover { background: var(--ink); color: #FFFFFF; }
.btn-pay:hover small { color: var(--beige); }
@media (max-width: 480px) { .cf-row { grid-template-columns: minmax(0, 1fr); } }
