/* 홈페이지 생성기가 넣는 조각(문의·후기 양식, 쪽 번호, 갤러리 찾기, 상세 사진)의 모양.
   옛 사이트의 색·글꼴 변수(--hc-*)를 그대로 쓰고, 없으면 기본값을 쓴다. */
img[src=""] { display: none; }

.kws-form-box { max-width: 960px; margin: 0 auto; }
.kws-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.kws-form .kws-full, .kws-form .kws-consent, .kws-form .kws-form-message, .kws-form .kws-form-notice, .kws-form button[type=submit] { grid-column: 1 / -1; }
.kws-form .kws-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kws-form label, .kws-form .kws-label { color: var(--hc-ink, #131b2b); font-size: 15px; font-weight: 700; }
.kws-form .kws-required { color: var(--hc-primary, #00439f); }
.kws-form input:not([type=checkbox]):not([type=radio]), .kws-form select, .kws-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--hc-border, #dde3ec); border-radius: 6px;
  background: #fff; color: var(--hc-ink, #131b2b); font: inherit; font-size: 15px; box-sizing: border-box;
}
.kws-form textarea { min-height: 160px; resize: vertical; }
.kws-form input:focus-visible, .kws-form select:focus-visible, .kws-form textarea:focus-visible { outline: 2px solid var(--hc-primary, #00439f); outline-offset: 1px; }
.kws-form small, .kws-form .kws-form-notice { color: var(--hc-muted, #6b7688); font-size: 13px; font-weight: 400; line-height: 1.6; }
.kws-form .kws-choice { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-weight: 400; }
.kws-form .kws-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 400; line-height: 1.6; }
.kws-form .kws-consent input { margin-top: 4px; }
.kws-form .kws-consent + a { grid-column: 1 / -1; margin-top: -10px; color: var(--hc-primary, #00439f); font-size: 13px; text-decoration: underline; }
.kws-form button[type=submit] {
  justify-self: center; min-width: 220px; min-height: 52px; padding: 12px 28px; border: 0; border-radius: 6px;
  background: var(--hc-primary, #00439f); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.kws-form button[type=submit]:disabled { opacity: .6; cursor: wait; }
.kws-form .kws-form-message { margin: 0; min-height: 1.5em; text-align: center; font-size: 15px; }
.kws-form .kws-form-message[data-state=error] { color: #c62828; }
.kws-form .kws-form-message[data-state=done] { color: var(--hc-primary, #00439f); font-weight: 700; }
@media (max-width: 720px) { .kws-form { grid-template-columns: 1fr; } }

.kws-pager { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.kws-pager a, .kws-pager strong { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0 10px;
  border: 1px solid var(--hc-border, #ddd); border-radius: 4px; font-size: 14px; }
.kws-pager strong { background: var(--hc-primary, #00439f); border-color: var(--hc-primary, #00439f); color: #fff; }

.kws-search-box { display: block; max-width: 420px; margin: 40px auto 0; }
.kws-gallery-search { position: relative; display: flex; flex-direction: column; gap: 6px; }
.kws-gallery-search label { font-size: 14px; font-weight: 700; }
.kws-gallery-search input { height: 42px; padding: 0 12px; border: 1px solid var(--hc-border, #ddd); border-radius: 4px; font: inherit; font-size: 14px; }
.kws-gallery-search-results { margin: 0; padding: 0; list-style: none; }
.kws-gallery-search-results li a { display: block; padding: 8px 4px; border-bottom: 1px solid var(--hc-border, #eee); font-size: 14px; }

.kws-detail-text { line-height: 1.9; }
.kws-detail-photos { display: grid; gap: 16px; margin-top: 24px; }
.kws-detail-photos img, .kws-detail-text img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.kws-detail-photos figure, .kws-detail-text figure { margin: 0; }
.kws-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.kws-review-box { max-width: 760px; padding: 32px; border: 1px solid var(--hc-border, #e2eaf4); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(23, 53, 95, .06); }
@media (max-width: 720px) { .kws-review-box { padding: 20px 16px; } }

.kws-not-found { max-width: 720px; margin: 0 auto; padding: 160px 20px 120px; text-align: center; }
.kws-not-found h1 { margin: 0 0 16px; color: var(--hc-ink, #131b2b); font-size: clamp(26px, 4vw, 38px); }
.kws-not-found p { margin: 0; color: var(--hc-muted, #6b7688); font-size: 16px; line-height: 1.7; }
.kws-not-found-links { display: flex; justify-content: center; gap: 10px; margin-top: 32px !important; }
.kws-not-found .kws-not-found-links a[href] { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--hc-primary, #00439f); border-radius: 6px; color: var(--hc-primary, #00439f); font-weight: 700; }
.kws-not-found .kws-not-found-links a.kws-not-found-home[href] { background: var(--hc-primary, #00439f); color: #fff; }
@media (max-width: 720px) { .kws-not-found { padding: 110px 16px 80px; } }
