/* ============ 마인드클린 공통 스타일 (Tailwind 보조) ============ */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
* { font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
::selection { background: #111; color: #fff; }
body { background: #fcfcf9; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; }

/* 헤더 */
#mc-header.is-scrolled { background: rgba(255,255,255,.88); border-bottom-color: rgba(0,0,0,.06); box-shadow: 0 6px 24px -18px rgba(0,0,0,.25); }
.mc-nav.is-active { background: #111; color: #fff; }
.mc-bar { display: block; height: 1.5px; background: #111; transition: transform .3s, opacity .3s; }
#mc-burger[aria-expanded="true"] .mc-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
#mc-burger[aria-expanded="true"] .mc-bar:nth-child(2) { opacity: 0; }
#mc-burger[aria-expanded="true"] .mc-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 히어로 */
.mc-slide { opacity: 0; z-index: 1; pointer-events: none; }
.mc-slide.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
.mc-dot.is-on { width: 2rem; background: #fff; }
.mc-pf-dot.is-on { width: 2rem; background: #111; }
#mc-hero-progress { transform: scaleX(0); }
#mc-hero-progress.run { animation: mcProgress 4s linear forwards; }
#mc-hero.is-paused #mc-hero-progress.run { animation-play-state: paused; }
@keyframes mcProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 견적 폼 */
.mc-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.4); }
.mc-input { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; background: #f7f7f5; border: 1px solid rgba(0,0,0,.05); font-size: 15px; outline: none; transition: background .2s, border-color .2s; }
.mc-input:focus { background: #fff; border-color: rgba(0,0,0,.18); }
.mc-input.is-error { border-color: #ef4444; background: #fff5f5; }
.mc-type { background: #f7f7f5; border-color: rgba(0,0,0,.05); color: rgba(0,0,0,.6); }
.mc-type:hover { background: #fff; }
.mc-type.is-on { background: #111; color: #fff; border-color: #111; }

/* 이미지 팝업(.image-modal / .modal-overlay) 스타일은 index.php <head> 안 <style id="mc-modal-css"> 에 있습니다. */

/* 공정 카드 - 이미지 없는 경우 일반 방문자에게는 영역 숨김 */
body:not(.admin-mode) .mc-step-media.mc-empty { display: none; }

/* 지도 */
#mc-map.is-ready + #mc-map-fallback { display: none; }

/* ================= 관리자 모드 ================= */
body.admin-mode [data-editable] {
  outline: 2px dashed #facc15; outline-offset: 3px; border-radius: 4px; cursor: text; position: relative;
  transition: outline-color .2s, background-color .2s;
}
body.admin-mode [data-editable]:hover { outline-color: #eab308; background-color: rgba(250,204,21,.08); }
body.admin-mode [data-editable]:focus { outline: 2px solid #eab308; background-color: rgba(250,204,21,.14); }
body.admin-mode [data-editable]::after {
  content: "✏️"; position: absolute; top: -12px; right: -12px; font-size: 11px; line-height: 1;
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px;
  background: #facc15; box-shadow: 0 2px 6px rgba(0,0,0,.25); pointer-events: none; z-index: 5;
  font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; color: #000;
}
body.admin-mode [data-editable].is-saving { outline-color: #60a5fa; }
body.admin-mode [data-editable].is-saved { outline-color: #22c55e; }
body.admin-mode [data-editable].is-failed { outline-color: #ef4444; }
body.admin-mode [data-editable-img] { outline: 2px dashed rgba(250,204,21,.9); outline-offset: -2px; }
body.admin-mode .truncate[data-editable] { overflow: visible; text-overflow: clip; }
body.admin-mode .mc-input[data-ph] { outline: 2px dashed #facc15; outline-offset: 2px; }

.mc-img-btn {
  position: absolute; top: 10px; right: 10px; z-index: 15; height: 34px; padding: 0 12px; border-radius: 999px;
  background: #facc15; color: #111; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.45); cursor: pointer; border: 0;
}
.mc-img-btn:hover { background: #fde047; }
.mc-admin-btn {
  position: relative; height: 34px; padding: 0 14px; border-radius: 999px; background: #facc15; color: #111;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; border: 0;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.45); z-index: 15;
}
.mc-admin-btn--ghost { background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.mc-link-btn {
  position: fixed; z-index: 300; height: 30px; padding: 0 12px; border-radius: 999px; background: #111; color: #fff;
  font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); display: none; border: 0; cursor: pointer;
}
.mc-link-btn.is-on { display: inline-flex; align-items: center; gap: 4px; }
#mc-admin-bar.is-error #mc-save-state { color: #fca5a5; }
.mc-pf-card .mc-img-btn { top: auto; bottom: 10px; left: 10px; right: auto; }
.mc-admin-btn.hidden, .mc-img-btn.hidden, .mc-link-btn.hidden { display: none !important; }
#mc-hero .mc-img-btn { right: auto; left: 14px; top: 14px; }

/* ===== 고객센터 FAQ / 지도 패널 ===== */
.mc-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.mc-faq.is-open .mc-faq-a, body.admin-mode .mc-faq-a { grid-template-rows: 1fr; }
.mc-faq-icon::before { content: "+"; }
.mc-faq.is-open .mc-faq-icon { background: #111; color: #fff; border-color: #111; }
.mc-faq.is-open .mc-faq-icon::before { content: "−"; }
.mc-map-panel #mc-map iframe { filter: saturate(.85); }
body.admin-mode .mc-faq-a > div { overflow: visible; }

/* ===== 글자 꾸미기 (관리자에서 지정한 크기·색깔·굵기) ===== */
[data-fs] { font-size: var(--mc-fs) !important; line-height: 1.25; }
@media (max-width: 639px) { [data-fs] { font-size: calc(var(--mc-fs) * 0.82) !important; } }
[data-c] { color: var(--mc-c) !important; }
[data-fw] { font-weight: var(--mc-fw) !important; }
.mc-tb { position: fixed; z-index: 310; display: none; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; background: #111; color: #fff;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); font-size: 12px; max-width: calc(100vw - 16px); flex-wrap: wrap; }
.mc-tb.is-on { display: flex; }
.mc-tb button { height: 28px; min-width: 28px; padding: 0 8px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; border: 0; cursor: pointer; }
.mc-tb button:hover { background: rgba(255,255,255,.22); }
.mc-tb .mc-tb-color { min-width: 22px; width: 22px; height: 22px; padding: 0; border-radius: 999px; border: 2px solid rgba(255,255,255,.35); }
.mc-tb-size { min-width: 40px; text-align: center; opacity: .8; }
.mc-tb-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); margin: 0 2px; }
.mc-tb-pick { position: relative; height: 28px; width: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.1); cursor: pointer; }
.mc-tb .mc-tb-pick { width: 30px; padding: 0; background: conic-gradient(#e11d48,#f59e0b,#16a34a,#2b5bff,#a855f7,#e11d48); }
.mc-tb-cin { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }

/* 헤더 로고 사진 변경 버튼 (작게) */
.mc-logo .mc-img-btn { top: 40px; right: auto; left: -6px; height: 22px; padding: 0 8px; font-size: 10px; white-space: nowrap; }
