/* /watch — 인접 공사 알림 신청 */

.why {
  background: var(--concrete);
}
.why-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 34px;
  align-items: start;
}
.why-main h3 {
  font-size: clamp(19px, 2.4vw, 24px);
  margin-bottom: 14px;
}
.why-main p {
  font-size: 15.5px;
  line-height: 1.78;
  color: #33363b;
  margin-bottom: 12px;
}
.why-side {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 20px 20px 14px;
}
.why-side h4 {
  font-size: 15px;
  margin-bottom: 14px;
}
.kinds {
  list-style: none;
}
.kinds li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid #eceded;
}
.kinds li:first-child {
  border-top: 0;
}
.kinds i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-top: 4px;
}
.kinds b {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.kinds span {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.55;
}

/* ── 신청 ── */
.apply-h {
  font-size: 16.5px;
  margin: 30px 0 12px;
  padding-left: 11px;
  border-left: 4px solid var(--orange);
}
.apply-h:first-child {
  margin-top: 0;
}

.searchrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.searchrow input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
}
.searchrow input:focus {
  outline: 0;
  border-color: var(--orange);
}
.hint {
  font-size: 13px;
  color: var(--steel);
  margin-top: 7px;
  min-height: 18px;
}
.hint.ng {
  color: #b3261e;
  font-weight: 700;
}

.mapwrap {
  position: relative;
  margin-top: 14px;
}
#map {
  width: 100%;
  height: 380px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #eceded;
}
.maphint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(27, 29, 33, 0.82);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 3px;
  pointer-events: none;
}

/* ── 반경 ── */
.radiusbox {
  background: var(--concrete);
  border-radius: 4px;
  padding: 18px 20px 14px;
}
#radius {
  width: 100%;
  accent-color: var(--orange);
  cursor: pointer;
}
.radiuslabels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.radiuslabels span {
  font-size: 11.5px;
  color: var(--steel);
}
.radiusnow {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.radiusnow b {
  font-size: 22px;
  color: var(--orange-deep);
}
.radiusnow span {
  font-size: 14px;
  color: #33363b;
}
#rAdvice {
  margin-top: 6px;
}
#rAdvice.warn {
  color: var(--warn);
  font-weight: 700;
}

/* ── 폼 ── */
.formgrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.formgrid label {
  display: block;
}
.formgrid span {
  display: block;
  font-size: 13px;
  color: #44474c;
  margin-bottom: 5px;
}
.formgrid em {
  color: var(--orange);
  font-style: normal;
}
.formgrid small {
  color: var(--steel);
  font-weight: 400;
}
.formgrid input {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
}
.formgrid input:focus {
  outline: 0;
  border-color: var(--orange);
}

.agree {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 16px 0 18px;
  cursor: pointer;
}
.agree input {
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
}
.agree span {
  font-size: 13px;
  color: #44474c;
  line-height: 1.6;
}

.btn.big {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}
.btn.big:disabled {
  background: #c9cbce;
  border-color: #c9cbce;
  cursor: not-allowed;
}
.submsg {
  margin-top: 11px;
  font-size: 14px;
  font-weight: 700;
  min-height: 22px;
}
.submsg.ok {
  color: var(--ok);
}
.submsg.ng {
  color: #b3261e;
}

/* ── 다음 단계 ── */
.next {
  background: var(--concrete);
}
.next h3 {
  font-size: clamp(19px, 2.4vw, 24px);
  margin-bottom: 16px;
}
.steps {
  list-style: none;
  counter-reset: s;
  margin-bottom: 22px;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 13px 0 13px 44px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.72;
  color: #33363b;
}
.steps li:first-child {
  border-top: 0;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 14px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.notice-sect {
  padding-top: 0;
}

@media (max-width: 820px) {
  .why-grid,
  .formgrid {
    grid-template-columns: 1fr;
  }
  .searchrow {
    grid-template-columns: 1fr;
  }
  #map {
    height: 300px;
  }
  .radiuslabels span:nth-child(even) {
    display: none;
  }
}

/* ── 주소 후보 목록 ──
   결과가 여럿일 때 첫 번째를 말없이 고르면 엉뚱한 동네가 잡힌다.
   ('★ 부동산정보 수집기.py' 의 중복 주소 선택 다이얼로그와 같은 취지) */
/* ⚠️ display 를 지정하면 브라우저 기본 [hidden]{display:none} 을 덮어써서
   hidden 을 걸어도 목록이 그대로 남는다. 아래 규칙이 반드시 있어야 한다. */
.candlist[hidden] {
  display: none;
}
.candlist {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: 262px;
  overflow-y: auto;
  padding: 4px;
  background: var(--concrete);
  border-radius: 4px;
}
.cand {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 10px 13px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}
.cand:hover,
.cand:focus-visible {
  border-color: var(--orange);
  outline: 0;
}
.cand b {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.cand span {
  display: block;
  font-size: 13.5px;
  color: #33363b;
}
.cand em {
  display: block;
  font-size: 12.5px;
  color: var(--steel);
  font-style: normal;
  margin-top: 2px;
}

/* 못 하는 것을 밝히는 문구 — 지우지 마세요.
   철거 자료가 2020년에서 멈춰 있어 알림을 보낼 수 없습니다. */
.kindnote {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #eceded;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--steel);
}

/* 설명이 길면 아무도 안 읽는다. 무엇을 알려주는지 한 줄로만. */
.whyline {
  font-size: clamp(19px, 2.6vw, 26px);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.whyline span {
  font-size: 15px;
  font-weight: 500;
  color: var(--orange-deep);
}
