@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/Paperozi.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}
:root {
  --ink: #111111;
  --bg: #ffffff;
  --accent: #111111;
  --soft: #f8f8f8;
  --muted: #888888;
  --border: #e0e0e0;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans KR', sans-serif; background: var(--bg); color: var(--ink); }

/* ── HEADER ── */
.page-header {
  color: white;
  padding: 52px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(/img/estimate/flower-mural-wall-painting-korea03.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.page-header .tag,
.page-header h1,
.page-header p {
  position: relative;
  z-index: 1;
}
.page-header .header-text-wrap {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 28px 40px 32px;
  max-width: 400px;
  width: 100%;
}
.page-header .tag {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: #555; font-weight: 600; margin-bottom: 8px;
}
.page-header h1 {
  font-family: 'Paperozi', sans-serif;
  color: #111;
  font-size: clamp(28px, 8vw, 48px);
  line-height: 1.15; margin-top: 6px;
}
.page-header p {
  word-break: keep-all;
  font-size: 13px; color: rgba(0,0,0,0.6);
  margin-top: 10px; line-height: 1.75; font-weight: 500;
}

/* ── CATEGORY BAR ── */
.category-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.category-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 20px;
  gap: 4px;
}
.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin: 10px 2px;
  min-width: 0;
}
.cat-btn:hover {
  border-color: #aaa;
  color: #111;
}
.cat-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.cat-label { font-size: 13px; font-weight: 500; white-space: nowrap; }

/* ── PC WRAPPER ── */
.pc-wrapper { max-width: 1200px; margin: 0 auto; background: white; }
.form-wrap { padding: 24px 16px 48px; }

/* ── SECTION ── */
.section {
  background: white;
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 14px;
  border: 1.5px solid var(--border);
  transition: border-color 0.3s;
}
.section.filled { border-color: #aaa; }
.section-num { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #aaa; margin-bottom: 4px; }
.section-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.section-desc { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }

/* ── NUMBER INPUT ── */
.num-input-wrap { position: relative; }
.num-input-wrap input {
  width: 100%;
  padding: 14px 52px 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
  background: #fafafa;
  transition: border-color 0.2s;
}
.num-input-wrap input:focus { outline: none; border-color: #111; background: white; }
.num-suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--muted); }
.warn-msg { margin-top: 8px; font-size: 12px; color: #555; font-weight: 600; display: none; }

/* ── OPTION GRID ── */
.opts { display: grid; gap: 10px; }
.opts.col2 { grid-template-columns: 1fr 1fr; }
.opts.col3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── OPTION CARD (text) ── */
.opt {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px;
  background: white;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}
.opt:active { transform: scale(0.97); }
.opt:hover { border-color: #111; }
.opt.sel { background: #111; border-color: #111; }
.opt.sel .ol { color: #fff; }
.opt.sel .mult-inline { color: rgba(255,255,255,0.6); }
.opt .ol { font-size: 0.8rem; font-weight: 600; color: var(--ink); line-height: 1.35; flex: 1; transition: color 0.18s; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ── 계수 배지 ── */
.mult-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 7px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.5px;
}
.opt-img.sel .mult-badge {
  background: #333;
  color: #fff;
}
/* 텍스트 옵션 안의 인라인 계수 */
.mult-inline {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}
.mult-inline,
#exp-price-note {
  display: none !important;
}
/* ── 단가 안내 ── */
.price-note {
  margin-top: 10px;
  padding: 10px 14px;
  background: #f8f8f8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  display: none;
  border: 1px solid #e0e0e0;
}

/* ── OPTION CARD (image) ── */
.opt-img {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  position: relative;
}
.opt-img:active { transform: scale(0.98); }
.opt-img:hover { border-color: #111; }
.opt-img.sel { border-color: #111; box-shadow: 0 0 0 2px #111; }
.opt-img.sel::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: #111;
  color: white;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 22px; text-align: center;
  z-index: 2;
}

/* ── IMAGE SLOT ── */
.img-slot {
  width: 100%;
  aspect-ratio: 16/10;  
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-slot img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}
.opt-img:hover .img-slot img { transform: scale(1.04); }
.img-slot .placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; color: var(--muted);
}
.img-slot .placeholder svg { opacity: 0.4; }
.img-slot .placeholder span { font-size: 11px; opacity: 0.6; }

.opt-img-label { padding: 12px 12px 14px; }
.opt-img-label .ol { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; }

/* ── CONDITIONAL SECTIONS ── */
.cond-section { display: none; }
.cond-section.show { display: block; }

/* ── 탭 컨텐츠 ── */
.cat-content { display: none; }
.cat-content.show { display: block; }

/* ── SUBMIT BUTTON ── */
.submit-wrap { padding: 8px 0 20px; }
.btn-submit {
  width: 100%;
  padding: 18px;
  background: #111;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.btn-submit:hover { opacity: 0.75; }
.btn-submit:active { transform: scale(0.98); }

/* ── RESULT OVERLAY ── */
.result-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: flex-end; justify-content: center;
}
.result-overlay.show { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.result-sheet {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 600px;
  padding: 28px 22px 52px;
  animation: slideUp 0.35s cubic-bezier(.22,1,.36,1);
  max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.result-handle { width: 40px; height: 4px; background: #ddd; border-radius: 99px; margin: 0 auto 22px; }

.result-hero {
  background: #111;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center; color: white;
  margin-bottom: 18px;
}
.rh-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.result-price { font-family: 'Black Han Sans', sans-serif; font-size: 46px; color: #fff; line-height: 1; }
.result-unit { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.65); margin-top: 4px; }
.result-note { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 14px; line-height: 1.7; }

.alert-big { background: #f8f8f8; border: 1.5px solid #ddd; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; display: none; }
.alert-big .at { font-weight: 700; color: #111; font-size: 14px; margin-bottom: 4px; }
.alert-big p { font-size: 13px; line-height: 1.6; color: #444; }

.bk-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.bk-head { background: #f8f8f8; padding: 11px 18px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #888; }
.bk-row { display: flex; justify-content: space-between; padding: 11px 18px; border-top: 1px solid var(--border); font-size: 14px; }
.bk-row.total { border-top: 2px solid #111; font-weight: 700; }
.bk-k { color: var(--muted); }
.bk-v { font-weight: 600; }
.bk-v.ac { color: #111; }

.btn-reset { width: 100%; padding: 15px; border: 1.5px solid var(--border); border-radius: var(--radius); background: white; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; margin-top: 10px; transition: all 0.2s; }
.btn-reset:hover { border-color: #111; color: #111; }

/* ── PC LAYOUT ── */
@media (min-width: 900px) {
  body { background: #fff; }
  .page-header { padding: 72px 48px 64px; }
  .pc-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 40px 32px 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
  }
  .pc-sidebar { position: sticky; top: 90px; }
  .pc-sidebar-card {
    background: white;
    border-radius: 18px;
    padding: 22px 18px;
    border: 1.5px solid var(--border);
    margin-bottom: 14px;
  }
  .pc-sidebar-card h3 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #aaa; margin-bottom: 14px; }
  .pi-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
  .pi-row:last-child { border-bottom: none; }
  .pi-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; flex-shrink: 0; margin-top: 4px; transition: background 0.3s; }
  .pi-row.done .pi-dot { background: #111; }
  .pi-label { color: var(--muted); flex: 1; }
  .pi-val { font-weight: 600; font-size: 12px; color: #111; text-align: right; max-width: 100px; line-height: 1.4; }
  .form-wrap { padding: 0; }
  .pc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
  .pc-grid-2 .section { margin-bottom: 0; }
  .opts.col2 { grid-template-columns: 1fr 1fr; }
  .opts.col3 { grid-template-columns: 1fr 1fr 1fr; }
  .opts.img-col2 { grid-template-columns: 1fr 1fr; }
  .opts.img-col3 { grid-template-columns: 1fr 1fr 1fr; }
  .result-overlay { align-items: center; }
  .result-sheet { border-radius: 24px; max-width: 520px; max-height: 85vh; }
}

/* ── 태블릿 ── */
@media (max-width: 899px) {
  .pc-sidebar { display: none; }
  .pc-wrapper { display: block; }
  .pc-grid-2 { display: contents; }
  .opts.img-col2,
  .opts.img-col3 { grid-template-columns: 1fr 1fr; }
}

/* ── 모바일: 이미지 옵션 1열 ── */
@media (max-width: 600px) {
  .opts.col3 { grid-template-columns: 1fr 1fr; }
  /* 이미지 그리드 → 모바일 1열 */
  .opts.img-col2,
  .opts.img-col3 { grid-template-columns: 1fr; }
  .cat-btn { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
  .opts.col3 { grid-template-columns: 1fr 1fr; }
}
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 30px;
  border-top: 1px solid #eeeeee;
  text-align: center;
  gap: 0;
  background: #f5f5f5;   /* var(--color-light-gray) 대신 실제 색상값 직접 지정 */
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-blog-link {
  display: inline-flex;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-blog-link:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

.footer-blog-link svg {
  width: 34px;
  height: 34px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 24px;
}

.footer-info p {
  font-size: 13px;
  color: #777777;
  line-height: 1.7;
}

.footer-copy {
  font-size: 12px;
  color: #aaaaaa;
}
/* ========================
   플로팅 버튼
======================== */
.floating-buttons {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 999;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 200px;             /* 두 버튼 가로폭 통일 */
  padding: 16px 20px;       /* 아이콘 대비 여유 있게 박스 확대 */
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  animation: floatBob 2.6s ease-in-out infinite;
  transition: transform 0.2s;
}

.floating-btn:hover {
  transform: scale(1.05);
}

.floating-call {
  background: #111111;
}

.floating-kakao {
  background: #fee500;
  animation-delay: 0.3s;
}

.floating-btn svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.floating-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.floating-call .floating-label {
  color: #ffffff;
}

.floating-kakao .floating-label {
  color: #3c1e1e;
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 767px) {
  .floating-buttons {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }
  .floating-btn {
    width: 150px;
    padding: 12px 16px;
    gap: 10px;
  }
  .floating-btn svg {
    width: 34px;
    height: 34px;
  }
  .floating-label {
    font-size: 13px;
  }
}