/* ══════════════════════════════════════════
   estimate.css — 견적 문의 페이지 전용 스타일
══════════════════════════════════════════ */

/* ── Header ── */
.s-est-header {
  padding: 148px 0 72px;
}
.est-header-inner { max-width: 640px; }

.est-h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.est-h1 em {
  color: var(--accent);
  font-style: normal;
}
.est-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
  color: var(--text-2);
  margin-top: 20px;
}
.est-kakao-quick {
  margin-top: 28px;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 214, 10, 0.26);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.18), rgba(255, 214, 10, 0.06));
  color: var(--text);
  text-decoration: none;
}
.est-kakao-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.est-kakao-quick strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ── Main Layout ── */
.s-estimate {
  padding: 0 0 120px;
}
.est-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
.est-mobile-top,
.est-mobile-info-toggle,
.est-sidebar-backdrop,
.sidebar-mobile-head {
  display: none;
}
.step-indicator-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Step Indicator ── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--text-3);
  transition: border-color .35s, background .35s, color .35s;
  position: relative;
}
.step-done {
  display: none;
  font-size: 13px;
  color: #0A0A0A;
}
.step-node.active .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #0A0A0A;
}
.step-node.active .step-num { display: block; }
.step-node.done .step-circle {
  border-color: var(--accent);
  background: var(--accent);
}
.step-node.done .step-num { display: none; }
.step-node.done .step-done { display: block; }
.step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color .35s;
}
.step-node.active .step-label,
.step-node.done .step-label { color: var(--text-2); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
  margin-bottom: 22px; /* align with circle center */
  transition: background .35s;
}
.step-line.done { background: var(--accent); }

/* ── Form Steps ── */
.form-step {
  display: none;
  animation: stepIn .4s var(--ease-expo) both;
}
.form-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step-header { margin-bottom: 32px; }
.form-step-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.form-step-desc {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 8px;
}
.label-req { color: var(--accent); }
.alt-contact-banner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 214, 10, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.12), rgba(255, 214, 10, 0.04));
}
.alt-contact-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.alt-contact-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}
.alt-contact-link {
  flex-shrink: 0;
}

/* ── Service Grid ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.service-option { display: block; cursor: none; }
.service-option input { display: none; }

.service-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    border-color .2s,
    background .2s,
    transform .35s var(--ease-expo);
}
.service-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.service-option input:checked + .service-card {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent);
}

.svc-icon {
  color: var(--text-3);
  transition: color .2s;
}
.service-option input:checked + .service-card .svc-icon { color: var(--accent); }
.svc-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.svc-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── Step Navigation ── */
.step-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
  position: relative;
  z-index: 2;
}
.next-btn, .submit-btn { gap: 8px; }
.submit-btn { gap: 10px; }

/* ── Success State ── */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 64px 32px;
  animation: stepIn .5s var(--ease-expo) both;
}
.form-success.visible { display: flex; }
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.success-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.success-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}

/* ── Sidebar ── */
.est-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--bg-2);
}
.sidebar-kakao {
  display: none;
  border-color: rgba(255, 214, 10, 0.24);
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.12), rgba(255, 214, 10, 0.04));
}
.sb-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.sidebar-kakao-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sidebar-kakao-desc {
  margin: 10px 0 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

/* Sidebar process steps */
.sidebar-process { display: flex; flex-direction: column; gap: 18px; }
.sb-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sb-step-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.sb-step-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.005em;
  margin-bottom: 2px;
}
.sb-step-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--text);
}
.stat-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
}
.stat-desc {
  font-size: 12px;
  color: var(--text-3);
}

/* Reassure list */
.reassure-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reassure-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  align-items: flex-start;
}
.reassure-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Live badge */
.sidebar-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  padding: 0 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .est-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .est-sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  body.estimate-mobile {
    overflow: hidden;
  }
  .s-est-header {
    display: none;
  }
  .s-estimate {
    padding: 0;
    min-height: calc(100svh - 64px);
  }
  .s-estimate .container {
    height: calc(100svh - 64px);
    padding-left: 16px;
    padding-right: 16px;
  }
  .est-layout {
    height: 100%;
    gap: 0;
  }
  .est-form-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .est-mobile-top {
    display: block;
    position: sticky;
    top: 64px;
    z-index: 12;
    padding: 12px 0 10px;
    background: linear-gradient(180deg, var(--bg) 78%, rgba(10,10,10,0));
  }
  .est-mobile-kakao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 214, 10, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.16), rgba(255, 214, 10, 0.05));
  }
  .est-mobile-kakao span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: -.01em;
  }
  .est-mobile-kakao strong {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -.02em;
  }
  .step-indicator-wrap {
    position: sticky;
    top: 130px;
    z-index: 11;
    margin-bottom: 0;
    padding: 10px 0 14px;
    background: linear-gradient(180deg, var(--bg) 82%, rgba(10,10,10,0));
  }
  .step-indicator {
    flex: 1;
    margin-bottom: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .est-mobile-info-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .est-form {
    flex: 1;
    min-height: 0;
  }
  .form-step.active {
    display: block;
    height: calc(100svh - 64px - 162px);
    overflow-y: auto;
    padding: 18px 2px 120px;
    scrollbar-width: none;
  }
  .form-step.active::-webkit-scrollbar {
    display: none;
  }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card {
    min-height: 142px;
    padding: 18px 14px;
  }
  .svc-name {
    font-size: 13px;
  }
  .svc-desc {
    font-size: 11px;
  }
  .step-label { display: none; }
  .alt-contact-banner {
    flex-direction: column;
    align-items: stretch;
    display: none;
  }
  .alt-contact-link {
    width: 100%;
    justify-content: center;
  }
  .step-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom));
    margin-top: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10,10,10,0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.35);
  }
  .step-nav .btn {
    flex: 1;
    min-width: 0;
  }
  .est-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(0,0,0,0.52);
  }
  .est-sidebar-backdrop.open {
    display: block;
  }
  .est-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 40;
    gap: 14px;
    padding: 14px 16px 20px;
    border-top: 1px solid var(--border);
    border-radius: 22px 22px 0 0;
    background: var(--bg);
    transform: translateY(calc(100% + 20px));
    transition: transform .35s var(--ease-expo);
    max-height: min(72svh, 720px);
    overflow-y: auto;
  }
  .est-sidebar.open {
    transform: translateY(0);
  }
  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px 2px;
  }
  .sidebar-mobile-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.02em;
  }
  .sidebar-mobile-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
  }
  .sidebar-block {
    padding: 20px;
  }
  .sidebar-live {
    padding: 4px;
  }
}
@media (max-width: 480px) {
  .step-indicator-wrap {
    top: 124px;
  }
  .step-indicator {
    gap: 0;
    padding: 10px 12px;
  }
  .step-circle {
    width: 32px;
    height: 32px;
  }
  .step-line {
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 18px;
  }
  .form-step-title {
    font-size: 24px;
  }
}
