/* Submit page — reuses body/header/map rules from style.css */

/* ── Back link ───────────────────────────────────────── */

#back-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8600a;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
}

#back-btn:hover {
  background: #fde8d0;
}

/* ── Mode buttons ────────────────────────────────────── */

#mode-btns {
  display: flex;
  gap: 6px;
}

.mode-btn {
  background: #fff;
  border: 1.5px solid #f5d08a;
  border-radius: 10px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a4a00;
  cursor: pointer;
  line-height: 15px;
}

.mode-btn.active {
  background: #f5a623;
  border-color: #f5a623;
  color: #fff;
}

.mode-btn:hover:not(.active) {
  background: #fffbf2;
  border-color: #f5a623;
}

/* ── Clear button ────────────────────────────────────── */

#clear-btn {
  background: #fff;
  border: 1.5px solid #f5d08a;
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a4a00;
  cursor: pointer;
  line-height: 15px;
}

#clear-btn:hover {
  background: #fffbf2;
  border-color: #f5a623;
}

/* ── Draw hint ───────────────────────────────────────── */

#draw-hint {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: #b07040;
}

/* ── Submit panel ────────────────────────────────────── */

#submit-panel {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding-top: 4px;
}

#submit-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

#submit-fields input {
  width: 100%;
  border: 1.5px solid #f5d08a;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  color: #2a1500;
  background: #fff;
  outline: none;
}

#submit-fields input:focus {
  border-color: #f5a623;
}

#submit-fields input::placeholder {
  color: #c8a87a;
}

#submit-btn {
  flex-shrink: 0;
  background: #e8600a;
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  height: 68px; /* matches two inputs + gap */
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

#submit-btn:hover    { background: #d05000; }
#submit-btn:disabled { opacity: 0.6; cursor: default; }

/* ── Status message ──────────────────────────────────── */

#submit-status {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.78rem;
  min-height: 1em;
}

#submit-status.status-ok    { color: #2e7d32; }
#submit-status.status-error { color: #c62828; }
