/* Submit page. Loaded after styles.css and channelmap.css. */

.panel-header a { color: #cdeede; }

.field-label {
  display: block;
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-muted); margin: 0.95rem 0 0.35rem;
}
.card > .field-label:first-child { margin-top: 0; }
.field-label .muted, .muted-h { text-transform: none; letter-spacing: 0; font-weight: 500; }
.section > h2 .muted-h { color: var(--text-muted); }

.card input[type="text"], .card textarea { width: 100%; }
textarea {
  font-family: inherit; font-size: 0.92rem; color: var(--text); background: var(--surface);
  padding: 0.6rem 0.85rem; border: 2px solid var(--border); border-radius: 9px;
  outline: none; resize: vertical; line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,79,0.12); }
textarea::placeholder { color: #aac0b4; }
.mono { font-family: "SF Mono","Fira Code","Consolas",monospace; }
.counter { text-align: right; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

.name-row { display: flex; align-items: stretch; }
.name-prefix {
  display: flex; align-items: center; padding: 0 0.7rem;
  font-weight: 800; font-size: 1.05rem; color: var(--green-dark);
  background: #edf7f1; border: 2px solid var(--border); border-right: none;
  border-radius: 9px 0 0 9px;
}
.name-prefix + input[type="text"] { border-radius: 0 9px 9px 0; }
.name-prefix.hidden + input[type="text"] { border-radius: 9px; }

.btn-group.small .seg-btn { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
.btn-block { width: 100%; padding: 0.8rem 1rem; font-size: 1rem; }
.btn-ghost.danger { color: #b91c1c; }

/* Messages */
.msg-list { margin: 0.75rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.msg-list li {
  font-size: 0.8rem; line-height: 1.4; padding: 0.45rem 0.7rem; border-radius: 0 6px 6px 0;
}
.msg-list li.error   { background: #fff4f4; color: #b91c1c; border-left: 3px solid #f87171; }
.msg-list li.warning { background: #fffbea; color: #92400e; border-left: 3px solid #fbbf24; }
.msg-list li.info    { background: #f0faf5; color: var(--green-dark); border-left: 3px solid var(--green-light); }

/* Area tools */
.tool-tabs { display: flex; gap: 0.35rem; margin: 0.8rem 0 0.7rem; flex-wrap: wrap; }
.tool-tab {
  flex: 1; min-width: 0; padding: 0.5rem 0.4rem; border-radius: 9px;
  border: 2px solid var(--border); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.tool-tab:hover { border-color: var(--green-light); background: #f5fbf7; }
.tool-tab.selected { border-color: var(--green); background: #edf7f1; color: var(--green-dark); }
.tool-pane { margin-bottom: 0.2rem; }

.place-result {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 0.45rem;
  padding: 0.5rem 0.65rem; border: 1.5px solid var(--border); border-radius: 9px; background: var(--surface);
}
.place-result:hover { border-color: var(--green-light); background: #f5fbf7; }
.place-result .pr-main { flex: 1; min-width: 0; }
.place-result .pr-name { font-weight: 700; font-size: 0.86rem; }
.place-result .pr-detail { font-size: 0.74rem; color: var(--text-muted); line-height: 1.35; margin-top: 0.1rem; }
.place-result .btn { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.place-result.added { border-color: var(--green); background: #edf7f1; }

.draw-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.6rem; }
.draw-actions .btn { padding: 0.45rem 0.8rem; font-size: 0.84rem; text-decoration: none; }

.part {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.6rem;
  border: 1.5px solid var(--border); border-radius: 9px; background: var(--bg); margin-bottom: 0.35rem;
}
.part-src {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.08rem 0.4rem; border-radius: 99px; background: rgba(45,106,79,0.12); color: var(--green-dark);
  flex-shrink: 0;
}
.part-name { flex: 1; min-width: 0; font-size: 0.84rem; font-weight: 600; overflow-wrap: anywhere; }
.part button {
  border: none; background: none; cursor: pointer; font-family: inherit;
  color: var(--text-muted); font-size: 0.78rem; padding: 0.2rem 0.35rem; border-radius: 5px;
}
.part button:hover { background: #fff; color: var(--text); }
.part button.remove:hover { color: #b91c1c; }
.part-empty { font-size: 0.82rem; color: var(--text-muted); padding: 0.55rem 0.7rem; border: 1px dashed var(--border); border-radius: 9px; }

.check-row { display: flex; gap: 0.55rem; align-items: flex-start; margin-top: 0.95rem; font-size: 0.84rem; line-height: 1.4; cursor: pointer; }
.check-row input { margin-top: 0.2rem; width: 16px; height: 16px; accent-color: var(--green); flex-shrink: 0; }

/* Honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Done */
.done-card { text-align: center; padding: 1.4rem 1.1rem; }
.done-icon {
  width: 46px; height: 46px; margin: 0 auto 0.6rem; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.done-title { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.done-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0.3rem 0; }
.done-card code { font-family: "SF Mono","Fira Code",monospace; font-weight: 700; color: var(--green-dark); background: #edf7f1; padding: 0.1rem 0.4rem; border-radius: 5px; }
.done-card .draw-actions { justify-content: center; margin-top: 1rem; }
.done-card .msg-list { text-align: left; }

/* Drawing handles */
.pe-vertex {
  background: #fff; border: 3px solid #b45309; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35); cursor: move;
}
.pe-mid {
  background: #b45309; border: 2px solid #fff; border-radius: 50%; opacity: 0.75; cursor: copy;
}
.pe-mid:hover { opacity: 1; }
.map-hint {
  background: rgba(27,67,50,0.88); color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.7rem; border-radius: 99px; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#map.mode-pick, #map.mode-draw { cursor: crosshair; }
#map.mode-pick .leaflet-grab, #map.mode-draw .leaflet-grab { cursor: crosshair; }
#areaNotes .msg-list { margin-top: 0.75rem; }
