/* 상담 문의 화면 (contact.php) — 2026-12-01 사장님 시안(상담문의_시안 "포레스트")을 거의 그대로 옮김.
   시안의 전역 규칙(:root·body·h1·a·input…)은 사이트 전체에 번지지 않게 모두 .bbct 안으로 가뒀다.
   테마와 상관없이 같은 모양(시안 그대로). 이 파일은 page_head(['head' => …]) 로 테마 CSS 보다 먼저 실리므로 규칙은 .bbct 로 세기를 올렸다.
   사장님 전역 규칙: 입력칸 포커스 때 밝은 테두리·외곽선 금지 → 포커스는 바탕색(흰색)으로만. */
.bbct {
  --ink: #1b2820;
  --muted: #516259;
  --accent: #1f6244;
  --accent-hover: #164c34;
  --line: #d5e1d6;
  --field-bg: #f7f9f6;
  --surface: #fff;
  --focus: #356e52;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  color: var(--ink);
  padding-block: 43px 66px;
  background: radial-gradient(ellipse at 14% 2%, #e8efe0 0, transparent 47%), #f3f7ef;
}

.bbct *, .bbct *::before, .bbct *::after { box-sizing: border-box; }
.bbct h1, .bbct h2, .bbct p, .bbct ul { margin: 0; }
.bbct h1, .bbct h2 { font-family: inherit; color: inherit; }
/* 테마의 body.theme-* h1, h2 { color } 를 이기도록 한 단계 더 (시안 글자색 그대로) */
.bbct .page-intro h1, .bbct .form-heading h2 { color: var(--ink); }
.bbct .contact-head h2 { color: #f8fff9; }
.bbct input, .bbct textarea, .bbct button { font: inherit; }
.bbct button, .bbct a { -webkit-tap-highlight-color: transparent; }
.bbct a, .bbct a:hover { color: inherit; }
.bbct button { cursor: pointer; }
.bbct [hidden] { display: none !important; }

.bbct .contact-shell { width: min(100% - 64px, 1120px); margin-inline: auto; }
.bbct .page-intro { margin-bottom: 33px; }
.bbct .brand-context { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: .85rem; font-weight: 750; }
.bbct .brand-context::before { content: ""; width: 16px; height: 2px; background: #497958; }
.bbct .page-intro h1 {
  margin: 7px 0 11px;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.075em;
  font-weight: 780;
}
.bbct .form-summary, .bbct .contact-summary { color: var(--muted); line-height: 1.65; }

.bbct .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: stretch;
  isolation: isolate;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 58px -33px #244a34aa, 0 0 0 1px #173d2322;
}

.bbct .contact-panel, .bbct .form-panel { min-width: 0; padding: clamp(28px, 4vw, 50px); }

.bbct .contact-head h2, .bbct .form-heading h2 {
  font-size: clamp(1.34rem, 2.8vw, 2rem);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -.055em;
}

.bbct .contact-summary, .bbct .form-summary { margin-top: 9px; font-size: .92rem; }
.bbct .contact-list { padding: 0; list-style: none; margin-top: 22px; }
.bbct .contact-row { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; }
.bbct .contact-row + .contact-row { border-top: 1px solid var(--line); }
.bbct .contact-detail { display: grid; min-width: 0; justify-items: start; gap: 4px; }

.bbct .icon-box {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #dbf2c019;
  color: #e1f5c7;
}

.bbct .icon-box svg, .bbct .send-button svg, .bbct .map-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bbct .contact-label { color: var(--muted); font-size: .81rem; font-weight: 680; }
.bbct .contact-value {
  color: inherit;
  font-size: 1rem;
  line-height: 1.48;
  font-style: normal;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.bbct a.contact-value { text-decoration: none; }
.bbct a.contact-value:hover { text-decoration: underline; text-underline-offset: 4px; }
.bbct address.contact-value { margin: 0; }
.bbct address.contact-value span { display: block; }

.bbct .map-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 31px;
  margin-top: 4px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 740;
  text-decoration: none;
}
.bbct .map-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.bbct .map-link svg { width: 14px; height: 14px; }

/* 왼쪽 짙은 초록 판 (시안 forest) */
.bbct .contact-panel {
  --muted: #d0e1d7;
  --line: #77958a55;
  --accent: #daefbc;
  --focus: #e3f4c6;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f8fff9;
  background: linear-gradient(148deg, #163e32 0%, #123a2f 60%, #194938 100%);
  border-radius: 28px 0 0 28px;
  padding-block: 39px 34px;
}
.bbct .contact-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 295px;
  aspect-ratio: 1;
  top: -184px;
  right: -112px;
  border: 1px solid #d5f3bb45;
  border-radius: 44% 56% 63% 37%;
  box-shadow:
    0 0 0 17px #c0e3a81b,
    0 0 0 35px #c0e3a813,
    0 0 0 54px #c0e3a80c,
    0 0 0 73px #c0e3a809;
  transform: rotate(31deg);
}
.bbct .contact-panel .contact-head h2 { font-size: clamp(1.35rem, 2.65vw, 1.86rem); }
.bbct .contact-phone .contact-value { font-size: clamp(1.18rem, 2.35vw, 1.7rem); line-height: 1.2; letter-spacing: -.035em; }
.bbct .contact-email .contact-value { font-size: clamp(.91rem, 1.9vw, 1.06rem); }
.bbct .contact-location { padding-bottom: 0; }
.bbct .contact-location .contact-value { font-weight: 510; color: #edf7f0; }

/* 오른쪽 문의 양식 */
.bbct .form-panel { padding-block: 38px 36px; }
.bbct .form-heading { margin-bottom: 25px; }
.bbct .contact-form { display: grid; gap: 19px; }
.bbct .identity-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.bbct .field { display: grid; min-width: 0; align-content: start; }
.bbct .field label { margin-bottom: 8px; color: var(--ink); font-size: .89rem; font-weight: 700; }
.bbct .required-mark { color: var(--accent); }

.bbct .field input, .bbct .field textarea {
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field-bg);
  color: var(--ink);
  padding: 11px 14px;
  line-height: 1.5;
  font-size: .94rem;
  box-shadow: none;
}
.bbct .field input { min-height: 49px; }
.bbct .field textarea { display: block; min-height: 132px; resize: vertical; }
.bbct .field input::placeholder, .bbct .field textarea::placeholder { color: #606d65; opacity: 1; }
.bbct .field input:focus, .bbct .field input:focus-visible, .bbct .field textarea:focus, .bbct .field textarea:focus-visible {
  outline: none !important; box-shadow: none !important; border-color: var(--line) !important; background: #fff;
}

.bbct .field input[aria-invalid="true"], .bbct .field textarea[aria-invalid="true"] { border-color: #b7433b !important; }
.bbct .field-error { margin-top: 6px; color: #9d2923; font-size: .8rem; line-height: 1.4; }

.bbct .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 13px; }
.bbct .send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 49px;
  min-width: 126px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: .92rem;
  font-weight: 720;
  transition: background-color 150ms ease-out;
}
.bbct .send-button:hover { background: var(--accent-hover); color: #fff; }
.bbct .send-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.bbct .send-button:disabled { cursor: default; opacity: .65; }
.bbct .send-button svg { width: 17px; height: 17px; }
/* 12-01 사장님: [보내기] 옆 안내 문구를 없애고 단추를 크게 꽉 차게 */
.bbct .form-actions .send-button { flex: 1 1 100%; width: 100%; min-height: 64px; gap: 14px; border-radius: 12px; font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; }
.bbct .form-actions .send-button svg { width: 22px; height: 22px; }
.bbct .form-feedback {
  border-radius: 7px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 13px;
  font-size: .88rem;
  line-height: 1.55;
}
.bbct .form-feedback.is-error { border-color: #e3b2ad; background: #fdf3f2; color: #9d2923; }

@media (max-width: 760px) {
  .bbct { padding-block: 30px 48px; }
  .bbct .contact-shell { width: calc(100% - 36px); }
  .bbct .page-intro { margin-bottom: 24px; }
  .bbct .contact-grid { grid-template-columns: minmax(0, 1fr); border-radius: 19px; }
  .bbct .contact-panel, .bbct .form-panel { padding-inline: 25px; }
  .bbct .contact-panel { border-radius: 19px 19px 0 0; padding-block: 30px 24px; }
  .bbct .form-panel { padding-block: 30px; }
}

@media (max-width: 500px) {
  .bbct .identity-fields { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .bbct .contact-panel, .bbct .form-panel { padding-inline: 21px; }
  .bbct .form-heading { margin-bottom: 20px; }
  .bbct .contact-summary, .bbct .form-summary { word-break: keep-all; }
  .bbct .field input, .bbct .field textarea { font-size: 1rem; }
  .bbct .form-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .bbct .send-button { transition: none; }
}
