/* =========================================================
   코라임비즈센터 (K-Biz Center) — 공통 스타일시트
   비상주 사무실 서비스 소개 + 기본 정보 입력 페이지
   ========================================================= */

/* ---------- 디자인 토큰 ---------- */
:root {
  --brand: #e01f26;          /* 브랜드 레드 */
  --brand-dark: #b2151b;
  --brand-soft: #fff1f1;
  --ink: #14181f;            /* 본문 잉크 */
  --ink-soft: #5a6472;       /* 보조 텍스트 */
  --line: #e6e9ee;           /* 경계선 */
  --bg: #ffffff;
  --bg-alt: #f6f8fb;         /* 섹션 배경 */
  --sky: #0b5cff;            /* 포인트 블루 */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(20, 24, 31, .06);
  --shadow-md: 0 10px 34px rgba(20, 24, 31, .10);
  --shadow-lg: 0 24px 60px rgba(20, 24, 31, .16);
  --wrap: 1160px;
  --header-h: 76px;
}

/* ---------- 리셋 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans KR", "Poppins", -apple-system, BlinkMacSystemFont,
    "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 접근성 유틸 ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- 레이아웃 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 64px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-block; font-family: "Poppins", sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); }
.section-head p { color: var(--ink-soft); margin-top: 16px; font-size: 17px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand__sub { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .06em; font-family: "Poppins", sans-serif; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 10px 15px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--ink-soft); transition: .18s;
}
.nav__link:hover { color: var(--ink); background: var(--bg-alt); }
.nav__link.is-active { color: var(--brand); font-weight: 700; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; transition: .2s;
  box-shadow: 0 6px 18px rgba(224, 31, 38, .28);
}
.header-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ink);
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(224, 31, 38, .30); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--danger { background: #fff; color: var(--brand); border-color: #f3c9cb; }
.btn--danger:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--block { width: 100%; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: #10141b center/cover no-repeat;
  min-height: 620px; display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(9, 12, 18, .93) 0%, rgba(9, 12, 18, .74) 48%, rgba(9, 12, 18, .42) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 96px 0; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .28);
  padding: 8px 17px; border-radius: 999px; font-size: 14px; font-weight: 500;
  margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero__badge i { color: #ff4d53; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); max-width: 15em; }
.hero h1 .accent { color: #ff4d53; }
.hero__lead { margin-top: 24px; font-size: clamp(16px, 2.2vw, 20px); color: #d5dae2; max-width: 40em; }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.price-card {
  margin-top: 44px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius); padding: 20px 28px; backdrop-filter: blur(10px);
}
.price-card__main { font-size: 30px; font-weight: 700; color: #ffd23f; letter-spacing: -.02em; }
.price-card__sub { font-size: 15px; color: #e7ebf1; }
.price-card__divider { width: 1px; height: 34px; background: rgba(255, 255, 255, .25); }

/* ---------- 신뢰 지표 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-top: -68px; position: relative; z-index: 5;
}
.stat { background: #fff; padding: 30px 22px; text-align: center; }
.stat__num { font-family: "Poppins", sans-serif; font-size: 30px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.stat__label { font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 카드 그리드 ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: .24s; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8dDE6; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 23px; margin-bottom: 20px;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card__list { margin-top: 16px; }
.card__list li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-soft); margin-top: 7px; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* 이미지 카드 (서비스) */
.media-card { border-radius: var(--radius); overflow: hidden; background: #10141b; position: relative; min-height: 330px; display: flex; align-items: flex-end; }
.media-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: .5s; }
.media-card:hover img { transform: scale(1.05); opacity: .7; }
.media-card__body { position: relative; z-index: 2; padding: 30px 28px; color: #fff; width: 100%; background: linear-gradient(to top, rgba(8, 11, 16, .92), rgba(8, 11, 16, 0)); }
.media-card__body h3 { font-size: 21px; }
.media-card__body p { color: #cdd4dd; font-size: 15px; margin-top: 8px; }

/* ---------- 이용 방법 (스텝) ---------- */
.steps { counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px 30px; transition: .24s; }
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step__num {
  counter-increment: step; font-family: "Poppins", sans-serif; font-size: 15px; font-weight: 700;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; margin-bottom: 20px;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 위치 / 지도 ---------- */
.location { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: center; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: #e9edf3; height: 380px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 지도 클릭 시 네이버지도로 이동 */
.map-frame--linked { position: relative; }
.map-frame__link {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: flex-end; padding: 14px;
  text-decoration: none; pointer-events: none;
}
.map-frame__hint {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16, 20, 27, .88); color: #fff;
  font-size: 14px; font-weight: 700; padding: 11px 18px; border-radius: 999px;
  box-shadow: var(--shadow-sm); transition: .2s; backdrop-filter: blur(4px);
  pointer-events: auto; cursor: pointer;
}
.map-frame__link:hover .map-frame__hint { background: #03c75a; color: #fff; transform: translateY(-2px); }
.map-frame__hint i { font-size: 15px; }

.info-list { margin-top: 26px; }
.info-list li { display: flex; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list i { color: var(--brand); font-size: 18px; width: 22px; text-align: center; margin-top: 4px; flex: none; }
.info-list dt { font-weight: 700; font-size: 15px; }
.info-list dd { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- CTA 밴드 ---------- */
.cta-band {
  background: linear-gradient(120deg, #171c25 0%, #242c39 60%, #171c25 100%);
  color: #fff; border-radius: var(--radius); padding: 58px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -70px; top: -70px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(224, 31, 38, .55), transparent 68%);
}
.cta-band__text { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); }
.cta-band p { color: #c3cad4; margin-top: 12px; font-size: 16px; }
.cta-band__actions { position: relative; z-index: 2; display: flex; gap: 13px; flex-wrap: wrap; }

/* ---------- 폼 ---------- */
.form-shell { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow-sm); }

.fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.fieldset:last-of-type { margin-bottom: 0; }
.fieldset > legend { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); padding: 0 0 16px; }

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 9px; }
.field .req { color: var(--brand); margin-left: 3px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 13.5px; margin-left: 6px; }

.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: .16s; font-size: 15.5px;
}
.input:hover, .select:hover, .textarea:hover { border-color: #cfd6e0; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(11, 92, 255, .12);
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6472' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}

/* 라디오/체크 그룹 */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: block; padding: 11px 19px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: .16s; background: #fff; cursor: pointer;
}
.chip input:hover + span { border-color: #cfd6e0; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

/* 동의 */
.agree { display: flex; gap: 13px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; cursor: pointer; }
.agree label { font-size: 14.5px; font-weight: 500; cursor: pointer; }
.agree small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 5px; }

.field-error { color: var(--brand); font-size: 13.5px; margin-top: 7px; display: none; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--brand); background: var(--brand-soft); }
.field.has-error .field-error { display: block; }

/* 사이드 요약 */
.aside-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: sticky; top: calc(var(--header-h) + 22px); }
.aside-card h3 { font-size: 18px; margin-bottom: 18px; }
.aside-card ol { counter-reset: a; margin: 0; padding: 0; list-style: none; }
.aside-card ol li { counter-increment: a; position: relative; padding-left: 34px; margin-bottom: 15px; font-size: 14.5px; color: var(--ink-soft); }
.aside-card ol li::before {
  content: counter(a); position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--brand); font-weight: 700; font-size: 12.5px;
  display: grid; place-items: center; font-family: "Poppins", sans-serif;
}
.aside-note { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-soft); }
.aside-note strong { display: block; color: var(--ink); font-size: 19px; margin-top: 5px; font-family: "Poppins", sans-serif; letter-spacing: -.02em; }

/* 폼 하단 액션 */
.form-actions { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .note { font-size: 13.5px; color: var(--ink-soft); }

/* 완료 메시지 */
.result {
  display: none; text-align: center; padding: 62px 30px;
}
.result.is-visible { display: block; }
.result__icon { width: 78px; height: 78px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 34px; display: grid; place-items: center; margin: 0 auto 24px; }
.result h2 { font-size: 27px; }
.result p { color: var(--ink-soft); margin-top: 14px; }
.result__meta { margin-top: 22px; display: inline-block; text-align: left; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 24px; font-size: 14.5px; }
.result__meta div { margin: 5px 0; }
.result__meta b { display: inline-block; min-width: 96px; }

/* ---------- 페이지 히어로 (서브) ---------- */
.page-hero { background: linear-gradient(120deg, #171c25, #2a3341); color: #fff; padding: 66px 0; }
.page-hero .eyebrow { background: rgba(255, 255, 255, .14); color: #ff8a8f; }
.page-hero h1 { font-size: clamp(28px, 4.6vw, 42px); }
.page-hero p { color: #c3cad4; margin-top: 14px; max-width: 46em; }
.crumbs { font-size: 13.5px; color: #98a2b0; margin-bottom: 16px; font-family: "Poppins", sans-serif; }
.crumbs a:hover { color: #fff; }

/* ---------- 푸터 ---------- */
.site-footer { background: #10141b; color: #9aa4b2; padding: 56px 0 30px; font-size: 14.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer p { margin: 0 0 6px; }
.site-footer a:hover { color: #fff; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer__brand img { height: 36px; }
.site-footer__brand strong { color: #fff; font-size: 16px; }
.footer-list li { margin-bottom: 9px; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid #232a35; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #6f7a89; }

/* ---------- 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 헤더 전화 연결 버튼 ---------- */
/* 전화 버튼은 데스크톱 메뉴 안의 .nav__tel 하나만 사용합니다. */
.nav__tel {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 17px; border-radius: 999px; font-size: 15px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid #f6d3d5; transition: .18s; white-space: nowrap;
}
.nav__tel:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.nav__tel i { font-size: 15px; }
.header-tel__num { font-family: "Poppins", sans-serif; letter-spacing: -.01em; }

/* ---------- 전화번호 텍스트 링크 ---------- */
.tel-link {
  color: #fff; font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
  white-space: nowrap;
}
.tel-link:hover { color: #ffd23f; }
.tel-link--dark { color: var(--brand); }
.tel-link--dark:hover { color: var(--brand-dark); }

/* ---------- 하단 플로팅 버튼 (전화 + 신청) ---------- */
.float-actions {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; gap: 10px; align-items: center;
}
.float-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; padding: 14px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg); transition: .2s; white-space: nowrap;
}
.float-btn i { font-size: 16px; }
.float-btn--call { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.float-btn--call:hover { background: var(--brand-soft); transform: translateY(-2px); }
.float-btn--apply { background: var(--brand); color: #fff; }
.float-btn--apply:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1024px) {
  .form-shell { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .location { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  /* 모바일 내비게이션 */
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 12px; border-radius: 10px; font-size: 16px; }
  .header-cta { display: flex; justify-content: center; margin-top: 6px; }

  /* 모바일: 메뉴 안의 전화 버튼은 숨김 (헤더는 로고 + 햄버거만) */
  .nav__tel { display: none; }

  .section { padding: 64px 0; }
  .hero { min-height: 520px; }
  .hero__inner { padding: 64px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -44px; }
  .price-card { padding: 18px 20px; }
  .price-card__main { font-size: 25px; }
  .price-card__divider { display: none; }
  .cta-band { padding: 40px 26px; }
  .form-card { padding: 28px 22px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .map-frame { height: 300px; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero__actions .btn { width: 100%; }
  .float-actions { right: 12px; bottom: 12px; gap: 8px; }
  .float-btn { padding: 12px 16px; font-size: 14px; gap: 7px; }
  .float-btn i { font-size: 15px; }
  .chip span { padding: 10px 15px; font-size: 14px; }
  .stat { padding: 24px 16px; }
  .stat__num { font-size: 25px; }
}

/* =========================================================
   관리자 페이지 (admin.html)
   ========================================================= */
/* hidden 속성이 항상 우선하도록 (display 규칙 덮어쓰기 방지) */
[hidden] { display: none !important; }

.admin-body { background: var(--bg-alt); }
.admin-noscroll { overflow: hidden; }

/* ---------- 관리자 전용 헤더 (일반 사이트 헤더와 구분) ---------- */
.admin-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(100deg, #171c25, #262f3d);
  color: #fff;
}
.admin-header__inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-brand__logo { height: 38px; width: auto; background: #fff; border-radius: 9px; padding: 4px 7px; }
.admin-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.admin-brand__text strong { font-size: 16.5px; color: #fff; }
.admin-brand__text span { font-size: 12.5px; color: #a9b3c1; }
.admin-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(224, 31, 38, .92); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.admin-header__actions { display: flex; align-items: center; gap: 10px; }
.admin-header__btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  cursor: pointer; transition: .18s; white-space: nowrap;
}
.admin-header__btn:hover { background: rgba(255, 255, 255, .2); }
.admin-header__btn--quit { background: #fff; color: var(--ink); border-color: #fff; }
.admin-header__btn--quit:hover { background: #e9edf3; }

/* ---------- 잠금 화면 ---------- */
.admin-gate { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 46px 22px; }
.admin-gate__card {
  width: 100%; max-width: 430px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 42px 34px; text-align: center;
}
.admin-gate__icon {
  width: 66px; height: 66px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-size: 26px; display: grid; place-items: center; margin: 0 auto 20px;
}
.admin-gate__card h1 { font-size: 25px; }
.admin-gate__card > p { color: var(--ink-soft); margin-top: 10px; font-size: 15.5px; }
.admin-gate__card form { margin-top: 26px; display: grid; gap: 12px; }
.admin-gate__error { color: var(--brand); font-size: 14px; margin-top: 4px; }
.admin-gate__warn {
  margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-soft); text-align: left; line-height: 1.65;
}
.admin-gate__warn i { color: var(--brand); margin-right: 4px; }

/* ---------- 페이지 제목 ---------- */
.admin-panel { padding: 34px 0 80px; }
.admin-page-head { margin-bottom: 20px; }
.admin-page-head h1 { font-size: 26px; }
.admin-page-head p { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }
.admin-page-head strong { color: var(--ink); }

/* ---------- 요약 지표 ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-stat {
  display: flex; align-items: center; gap: 15px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: left; cursor: pointer; transition: .18s; font: inherit;
  border-left: 5px solid var(--line);
}
.admin-stat:hover { border-color: #cfd6e0; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.admin-stat__icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 19px;
  background: var(--bg-alt); color: var(--ink-soft);
}
.admin-stat__body { display: flex; flex-direction: column; }
.admin-stat__num { font-family: "Poppins", sans-serif; font-size: 29px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.admin-stat__label { font-size: 14px; color: var(--ink-soft); margin-top: 3px; }

.admin-stat--total { border-left-color: #6b7686; }
.admin-stat--total .admin-stat__icon { background: #eef1f6; color: #4a5364; }
.admin-stat--total.is-active { border-color: #4a5364; box-shadow: 0 0 0 3px rgba(74, 83, 100, .12); }

.admin-stat--new { border-left-color: var(--brand); }
.admin-stat--new .admin-stat__icon { background: var(--brand-soft); color: var(--brand); }
.admin-stat--new .admin-stat__num { color: var(--brand); }
.admin-stat--new.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(224, 31, 38, .12); }

.admin-stat--ing { border-left-color: #e8a600; }
.admin-stat--ing .admin-stat__icon { background: #fff6e0; color: #a06800; }
.admin-stat--ing .admin-stat__num { color: #a06800; }
.admin-stat--ing.is-active { border-color: #e8a600; box-shadow: 0 0 0 3px rgba(232, 166, 0, .14); }

.admin-stat--done { border-left-color: #0f9950; }
.admin-stat--done .admin-stat__icon { background: #e7f7ee; color: #0f7a45; }
.admin-stat--done .admin-stat__num { color: #0f7a45; }
.admin-stat--done.is-active { border-color: #0f9950; box-shadow: 0 0 0 3px rgba(15, 153, 80, .14); }

.admin-stat.is-active .admin-stat__label { color: var(--ink); font-weight: 700; }

/* ---------- 도구 모음 ---------- */
.admin-toolbar { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.admin-search { position: relative; flex: 1 1 300px; max-width: 420px; }
.admin-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 15px; }
.admin-search .input { padding-left: 42px; }
.admin-toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-select-wrap .select { min-width: 140px; }
.admin-toolbar .btn { padding: 12px 20px; font-size: 14.5px; }

.admin-note {
  margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft);
}
.admin-note--error { border-color: #f3c9cb; background: var(--brand-soft); color: var(--brand-dark); }
.admin-note--ok { border-color: #bfe6d0; background: #eefaf3; color: #0f7a45; }
.admin-note i { margin-right: 6px; }

/* ---------- 표시 건수 · 갱신 시각 ---------- */
.admin-summary {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft);
}
.admin-summary__count strong { color: var(--brand); font-family: "Poppins", sans-serif; font-size: 16px; }
.admin-summary__time { font-size: 13.5px; }

/* ---------- 로딩 · 빈 상태 ---------- */
.admin-loading { margin-top: 40px; text-align: center; color: var(--ink-soft); font-size: 15px; }
.admin-loading i { margin-right: 7px; color: var(--brand); }
.admin-empty { margin-top: 48px; text-align: center; }
.admin-empty__icon {
  width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 27px; display: grid; place-items: center; margin: 0 auto 20px;
}
.admin-empty h2 { font-size: 21px; }
.admin-empty p { color: var(--ink-soft); margin-top: 9px; font-size: 15px; }

/* ---------- 표 ---------- */
.admin-table-wrap { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 15px 16px; text-align: left; font-size: 14.5px; vertical-align: middle; }
.admin-table thead th {
  background: #f8fafc; border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap;
}
.admin-table tbody tr { border-bottom: 1px solid #f1f4f8; }
.admin-table tbody tr:last-child { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fbfcfe; }
.admin-table td { color: var(--ink); }
.admin-table td[data-label="접수일시"] { white-space: nowrap; }
.admin-when {
  display: inline-block; font-family: "Poppins", "Noto Sans KR", sans-serif;
  font-size: 13.5px; font-weight: 600; color: #3c4655;
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 8px;
}
.admin-company { font-size: 15px; font-weight: 700; }
.admin-tel { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.admin-tel:hover { color: var(--brand); }

/* 행 관리 버튼 */
.admin-row-actions { display: flex; align-items: center; gap: 8px; }
.st-del-btn {
  border: 1px solid #f3c9cb; background: #fff; color: var(--brand);
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer; transition: .16s;
  display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 14px;
}
.st-del-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 상태 배지 */
.st-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st-new  { background: #fff1f1; color: var(--brand-dark); }
.st-ing  { background: #fff6e0; color: #a06800; }
.st-done { background: #e7f7ee; color: #0f7a45; }

.st-detail-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: .16s;
}
.st-detail-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 상세 보기 ---------- */
.admin-detail {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(12, 16, 22, .55); padding: 24px; overflow-y: auto;
}
.admin-detail__card {
  width: 100%; max-width: 620px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: 90vh; display: flex; flex-direction: column;
}
.admin-detail__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.admin-detail__head h2 { font-size: 20px; }
.admin-detail__close {
  border: 0; background: var(--bg-alt); color: var(--ink); width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer; font-size: 17px; flex: none;
}
.admin-detail__close:hover { background: var(--line); }
.admin-detail__body { padding: 22px 26px; overflow-y: auto; }
.admin-detail__row { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid #f1f4f8; }
.admin-detail__row:last-of-type { border-bottom: 0; }
.admin-detail__row dt { flex: 0 0 130px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.admin-detail__row dd { margin: 0; font-size: 15px; }
.admin-detail__row--full { flex-direction: column; gap: 7px; }
.admin-muted { color: var(--ink-soft); }
.admin-call { margin-top: 16px; }
.admin-detail__foot {
  padding: 20px 26px; border-top: 1px solid var(--line); background: var(--bg-alt);
  border-radius: 0 0 var(--radius) var(--radius);
  display: grid; gap: 14px;
}
.admin-detail__statusline label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.admin-detail__status { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-detail__status .select { flex: 1 1 160px; }
#detail-delete { width: 100%; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tbody tr {
    padding: 16px 18px; border-bottom: 8px solid var(--bg-alt);
  }
  .admin-table td { padding: 6px 0; display: flex; gap: 14px; }
  .admin-table td::before {
    content: attr(data-label); flex: 0 0 92px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
  }
  .admin-table td[data-label="관리"]::before { content: ""; }
  .admin-table td[data-label="관리"] { padding-top: 12px; }
  .admin-row-actions { width: 100%; }
  .st-detail-btn { flex: 1 1 auto; padding: 11px; }
  .st-del-btn { width: 46px; height: 46px; font-size: 15px; }

  .admin-header__inner { height: auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 22px; }
  .admin-brand { flex-wrap: wrap; }
  .admin-header__actions { width: 100%; }
  .admin-header__btn { flex: 1 1 auto; justify-content: center; }
  .admin-page-head h1 { font-size: 22px; }
  .admin-stat { padding: 16px; gap: 12px; }
  .admin-stat__icon { width: 40px; height: 40px; font-size: 17px; }
  .admin-stat__num { font-size: 25px; }

  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-search { max-width: none; flex: 1 1 auto; }
  .admin-toolbar__right { justify-content: stretch; }
  .admin-toolbar__right > * { flex: 1 1 auto; }
  .admin-select-wrap .select { width: 100%; }

  .admin-detail__row { flex-direction: column; gap: 4px; }
  .admin-detail__row dt { flex: none; }
  .admin-detail__body { padding: 18px 20px; }
  .admin-detail__head, .admin-detail__foot { padding: 18px 20px; }
}

